{"id":36979629,"url":"https://github.com/flaviu-chelaru/phantomjs-cloud","last_synced_at":"2026-01-13T22:49:15.495Z","repository":{"id":62500817,"uuid":"89717711","full_name":"flaviu-chelaru/phantomjs-cloud","owner":"flaviu-chelaru","description":"PhantomJS API Library - Register on https://phantomjscloud.com/ for an API key. This is NOT an official release. This is usefull to save a screenshot of a webpage or export a webpage as a PDF file","archived":false,"fork":false,"pushed_at":"2018-01-14T09:49:11.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-24T22:27:21.878Z","etag":null,"topics":["api","phantom","phantom-js","phantomjs","php-sdk"],"latest_commit_sha":null,"homepage":"https://phantomjscloud.com/","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/flaviu-chelaru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-28T15:10:16.000Z","updated_at":"2022-03-16T12:40:38.000Z","dependencies_parsed_at":"2022-11-02T12:01:29.714Z","dependency_job_id":null,"html_url":"https://github.com/flaviu-chelaru/phantomjs-cloud","commit_stats":null,"previous_names":["flaviu-chelaru/phantomjs-cloud","cfv1000/phantomjs-cloud"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/flaviu-chelaru/phantomjs-cloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviu-chelaru%2Fphantomjs-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviu-chelaru%2Fphantomjs-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviu-chelaru%2Fphantomjs-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviu-chelaru%2Fphantomjs-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flaviu-chelaru","download_url":"https://codeload.github.com/flaviu-chelaru/phantomjs-cloud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaviu-chelaru%2Fphantomjs-cloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","phantom","phantom-js","phantomjs","php-sdk"],"created_at":"2026-01-13T22:49:14.811Z","updated_at":"2026-01-13T22:49:15.482Z","avatar_url":"https://github.com/flaviu-chelaru.png","language":"PHP","readme":"# PhantomJS Cloud\n\nA library to interact with the Phantom JS Cloud\n\nExamples and extensive documentation on the API\nhttps://phantomjscloud.com/docs/http-api/\n\n### Simple example\n\nWrite the web page to a JPG file:\n\n```php\n\ninclude_once 'vendor/autoload.php';\n\n$request = new \\PhantomJS\\PageRequest('http://www.example.com');\nfile_put_contents('example.com.jpg', $request-\u003egetResponse());\n\n```\nThis example shouldn't be used in production. If you need to perform advanced HTTP requests to the api, please address a dedicated library for that.\nThis library should be used only to write your requests\n\n### Guzzle Example\n\n```php \n\ninclude_once __DIR__ . '/vendor/autoload.php';\n\n/**\n * write your phantom js request\n * @see https://phantomjscloud.com/docs/\n */\n$request = new \\PhantomJS\\PageRequest('http://www.example.com');\n\n/**\n * Initialize Guzzle to perform HTTP requests\n * @see http://docs.guzzlephp.org/en/stable\n * The request url will be https://phantomjscloud.com/api/browser/v2/a-demo-key-with-low-quota-per-ip-address/?request={url:%22http://www.example.com%22}\n */\n$client = new GuzzleHttp\\Client();\n$response = $client-\u003eget($request-\u003egetApiUrl() . '?request=' . $request-\u003etoJSON());\nprint $response-\u003egetBody();\n\n```\n\n### TODO - What we plan next for this code\n* have a directory structure that will allow you to separate PhantomJS classes from helper classes\n* migrate public arguments to protected arguments where possible and use setters and getters.\n* see TODO's in the class comments\n* add examples in the documentation","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaviu-chelaru%2Fphantomjs-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaviu-chelaru%2Fphantomjs-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaviu-chelaru%2Fphantomjs-cloud/lists"}