{"id":13594171,"url":"https://github.com/rialto-php/puphpeteer","last_synced_at":"2026-10-19T14:08:10.077Z","repository":{"id":41283686,"uuid":"118182130","full_name":"rialto-php/puphpeteer","owner":"rialto-php","description":"A Puppeteer bridge for PHP, supporting the entire API.","archived":true,"fork":false,"pushed_at":"2023-01-01T15:05:38.000Z","size":2602,"stargazers_count":1332,"open_issues_count":64,"forks_count":210,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2026-08-23T03:37:40.773Z","etag":null,"topics":["automation","developer-tools","headless-chrome","php","puppeteer","testing","web"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rialto-php.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-19T21:48:19.000Z","updated_at":"2026-07-20T02:01:19.000Z","dependencies_parsed_at":"2023-01-31T23:15:47.841Z","dependency_job_id":null,"html_url":"https://github.com/rialto-php/puphpeteer","commit_stats":null,"previous_names":["nesk/puphpeteer","extractr-io/puphpeteer"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/rialto-php/puphpeteer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rialto-php%2Fpuphpeteer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rialto-php%2Fpuphpeteer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rialto-php%2Fpuphpeteer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rialto-php%2Fpuphpeteer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rialto-php","download_url":"https://codeload.github.com/rialto-php/puphpeteer/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rialto-php%2Fpuphpeteer/sbom","scorecard":{"id":388632,"data":{"date":"2025-08-11","repo":{"name":"github.com/rialto-php/puphpeteer","commit":"ac3705e876ec4a6fb844c423be89638df35fa78e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/tests.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/rialto-php/puphpeteer/tests.yaml/dev?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/rialto-php/puphpeteer/tests.yaml/dev?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/rialto-php/puphpeteer/tests.yaml/dev?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/tests.yaml:19","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'dev'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T17:16:19.150Z","repository_id":41283686,"created_at":"2025-08-18T17:16:19.150Z","updated_at":"2025-08-18T17:16:19.150Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38357901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-19T02:00:06.414Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","developer-tools","headless-chrome","php","puppeteer","testing","web"],"created_at":"2024-08-01T16:01:29.700Z","updated_at":"2026-10-19T14:08:09.637Z","avatar_url":"https://github.com/rialto-php.png","language":"PHP","funding_links":[],"categories":["Alumni","PHP","Web"],"sub_categories":["Browser Adapters","Scraping and Crawling"],"readme":"# 🚨 This project is not maintained anymore\n\nAs I write these lines, it's been nearly two years since the latest release of PuPHPeteer. Despite the enthusiasm around this project, I no longer have the motivation to support its development, mainly because it never really had any use to me. So its time to be honest with you, PuPHPeteer is no longer maintained.\n\nHowever, here's a list of forks maintained by the community:\n\n- [zoonru/puphpeteer](https://github.com/zoonru/puphpeteer)\n- [NigelCunningham/puphpeteer](https://github.com/NigelCunningham/puphpeteer)\n\nIf you create a fork and plan to maintain it, let me know and I will link it here.\n\n# PuPHPeteer\n\n\u003cimg src=\"https://user-images.githubusercontent.com/817508/100672192-dd258500-3361-11eb-845f-e8b5109752e4.png\" style=\"max-width:100%;\" width=\"190px\" align=\"right\"\u003e\n\n[![PHP Version](https://img.shields.io/packagist/php-v/nesk/puphpeteer.svg?style=flat-square)](http://php.net/)\n[![Composer Version](https://img.shields.io/packagist/v/nesk/puphpeteer.svg?style=flat-square\u0026label=Composer)](https://packagist.org/packages/nesk/puphpeteer)\n[![Node Version](https://img.shields.io/node/v/@nesk/puphpeteer.svg?style=flat-square\u0026label=Node)](https://nodejs.org/)\n[![NPM Version](https://img.shields.io/npm/v/@nesk/puphpeteer.svg?style=flat-square\u0026label=NPM)](https://www.npmjs.com/package/@nesk/puphpeteer)\n[![Build Status](https://img.shields.io/travis/nesk/puphpeteer.svg?style=flat-square\u0026label=Build%20Status)](https://travis-ci.org/nesk/puphpeteer)\n\nA [Puppeteer](https://github.com/GoogleChrome/puppeteer/) bridge for PHP, supporting the entire API. Based on [Rialto](https://github.com/nesk/rialto/), a package to manage Node resources from PHP.\n\nHere are some examples [borrowed from Puppeteer's documentation](https://github.com/GoogleChrome/puppeteer/blob/master/README.md#usage) and adapted to PHP's syntax:\n\n**Example** - navigating to https://example.com and saving a screenshot as *example.png*:\n\n```php\nuse Nesk\\Puphpeteer\\Puppeteer;\n\n$puppeteer = new Puppeteer;\n$browser = $puppeteer-\u003elaunch();\n\n$page = $browser-\u003enewPage();\n$page-\u003egoto('https://example.com');\n$page-\u003escreenshot(['path' =\u003e 'example.png']);\n\n$browser-\u003eclose();\n```\n\n**Example** - evaluate a script in the context of the page:\n\n```php\nuse Nesk\\Puphpeteer\\Puppeteer;\nuse Nesk\\Rialto\\Data\\JsFunction;\n\n$puppeteer = new Puppeteer;\n\n$browser = $puppeteer-\u003elaunch();\n$page = $browser-\u003enewPage();\n$page-\u003egoto('https://example.com');\n\n// Get the \"viewport\" of the page, as reported by the page.\n$dimensions = $page-\u003eevaluate(JsFunction::createWithBody(\"\n    return {\n        width: document.documentElement.clientWidth,\n        height: document.documentElement.clientHeight,\n        deviceScaleFactor: window.devicePixelRatio\n    };\n\"));\n\nprintf('Dimensions: %s', print_r($dimensions, true));\n\n$browser-\u003eclose();\n```\n\n## Requirements and installation\n\nThis package requires PHP \u003e= 7.3 and Node \u003e= 8.\n\nInstall it with these two command lines:\n\n```shell\ncomposer require nesk/puphpeteer\nnpm install @nesk/puphpeteer\n```\n\n## Notable differences between PuPHPeteer and Puppeteer\n\n### Puppeteer's class must be instantiated\n\nInstead of requiring Puppeteer:\n\n```js\nconst puppeteer = require('puppeteer');\n```\n\nYou have to instantiate the `Puppeteer` class:\n\n```php\n$puppeteer = new Puppeteer;\n```\n\nThis will create a new Node process controlled by PHP.\n\nYou can also pass some options to the constructor, see [Rialto's documentation](https://github.com/nesk/rialto/blob/master/docs/api.md#options). PuPHPeteer also extends these options:\n\n```php\n[\n    // Logs the output of Browser's console methods (console.log, console.debug, etc...) to the PHP logger\n    'log_browser_console' =\u003e false,\n]\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003e⏱ Want to use some timeouts higher than 30 seconds in Puppeteer's API?\u003c/strong\u003e\u003c/summary\u003e \u003cbr\u003e\n\nIf you use some timeouts higher than 30 seconds, you will have to set a higher value for the `read_timeout` option (default: `35`):\n\n```php\n$puppeteer = new Puppeteer([\n    'read_timeout' =\u003e 65, // In seconds\n]);\n\n$puppeteer-\u003elaunch()-\u003enewPage()-\u003egoto($url, [\n    'timeout' =\u003e 60000, // In milliseconds\n]);\n```\n\u003c/details\u003e\n\n### No need to use the `await` keyword\n\nWith PuPHPeteer, every method call or property getting/setting is synchronous.\n\n### Some methods have been aliased\n\nThe following methods have been aliased because PHP doesn't support the `$` character in method names:\n\n- `$` =\u003e `querySelector`\n- `$$` =\u003e `querySelectorAll`\n- `$x` =\u003e `querySelectorXPath`\n- `$eval` =\u003e `querySelectorEval`\n- `$$eval` =\u003e `querySelectorAllEval`\n\nUse these aliases just like you would have used the original methods:\n\n```php\n$divs = $page-\u003equerySelectorAll('div');\n```\n\n### Evaluated functions must be created with `JsFunction`\n\nFunctions evaluated in the context of the page must be written [with the `JsFunction` class](https://github.com/nesk/rialto/blob/master/docs/api.md#javascript-functions), the body of these functions must be written in JavaScript instead of PHP.\n\n```php\nuse Nesk\\Rialto\\Data\\JsFunction;\n\n$pageFunction = JsFunction::createWithParameters(['element'])\n    -\u003ebody(\"return element.textContent\");\n```\n\n### Exceptions must be caught with `-\u003etryCatch`\n\nIf an error occurs in Node, a `Node\\FatalException` will be thrown and the process closed, you will have to create a new instance of `Puppeteer`.\n\nTo avoid that, you can ask Node to catch these errors by prepending your instruction with `-\u003etryCatch`:\n\n```php\nuse Nesk\\Rialto\\Exceptions\\Node;\n\ntry {\n    $page-\u003etryCatch-\u003egoto('invalid_url');\n} catch (Node\\Exception $exception) {\n    // Handle the exception...\n}\n```\n\nInstead, a `Node\\Exception` will be thrown, the Node process will stay alive and usable.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n## Logo attribution\n\nPuPHPeteer's logo is composed of:\n\n- [Puppet](https://thenounproject.com/search/?q=puppet\u0026i=52120) by Luis Prado from [the Noun Project](http://thenounproject.com/).\n- [Elephant](https://thenounproject.com/search/?q=elephant\u0026i=954119) by Lluisa Iborra from [the Noun Project](http://thenounproject.com/).\n\nThanks to [Laravel News](https://laravel-news.com/) for picking the icons and colors of the logo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frialto-php%2Fpuphpeteer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frialto-php%2Fpuphpeteer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frialto-php%2Fpuphpeteer/lists"}