Browser control via PHP
I created a browser management framework in PHP!
I was inspired by Selenium from Python, but there was a problem: it required the built-in Chromedriver, and as we know, Python isn't exactly known for its speed!
I decided to write a Selenium "killer" in PHP, but wait, how can I do it without Chromedriver?
Easy! Just use the CDP protocol used by Chrome/Chromium, and we'll manage the page via JS (it's simple and doesn't limit the possibilities as it might seem).
For the implementation, I'm using Swoole for various code snippets and using pure PHP. It provides a good combination of both, and I can start coding...
I've finally done it! The project is now available on GitHub and Composer!
You can visit the project page below.
composer require wert1209yt/php-autonomous-browser
Project in active development, and you contribute!
Top comments (0)