Registry / networking / chrome-php-chrome

chrome-php-chrome

JSON →
library1.15.0phppackagistunverified

Instrument headless Chrome/Chromium instances from PHP.

composer require chrome-php/chrome
INSTALL
IMPORT
SIG · CHROME-PHP-CHROME
C
chrome-php-chrome
networkingphpv1.15.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BrowserFactory
use HeadlessChromium\BrowserFactory;

Launch a headless browser and fetch page HTML

use HeadlessChromium\BrowserFactory; $factory = new BrowserFactory(); $browser = $factory->createBrowser(); $page = $browser->createPage(); $page->navigate('https://example.com')->waitForNavigation(); echo $page->getHtml(); $browser->close();
Debug
Known issues
breakingRequires Chrome or Chromium binary installed on the system.
fix
Install Chrome/Chromium and ensure it's in PATH or set the binary path.
affects: >=1.0.0
Upgrade
Version history
1.15.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
38
Amazon
1
OpenAI (training)
1
Resources
chrome-php-chrome — pip install chrome-php-chrome · libregistry