jakubkulhan / chrome-devtools-protocol

Chrome Devtools Protocol client for PHP
MIT License
171 stars 49 forks source link

how to start using? #30

Open feniksbot opened 3 years ago

feniksbot commented 3 years ago

what steps do you need to follow from this resource? https://chromedevtools.github.io/devtools-protocol/ how to install via composer?

alexongh commented 3 years ago

https://packagist.org/packages/jakubkulhan/chrome-devtools-protocol composer require jakubkulhan/chrome-devtools-protocol

There is very little documentation, you are basically on your on. Puppeteer also uses the Chrome DevTools Protocol so you might be able to build your solution with reference to the Puppeteer source code.

feniksbot commented 3 years ago

thanks, it turned out to run the example pdf page.

but I don't understand how to call the rest of the methods. How do I get the entire page into a variable? tried all dom, didn't work. I don't understand what to specify in the second parameter. Can I have at least 1 example?