{"id":18710759,"url":"https://github.com/apify/actor-example-php","last_synced_at":"2025-11-03T16:32:34.414Z","repository":{"id":103060451,"uuid":"108306211","full_name":"apify/actor-example-php","owner":"apify","description":"Example of Apify actor using PHP","archived":false,"fork":false,"pushed_at":"2022-07-25T12:33:43.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T22:11:25.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-25T18:00:28.000Z","updated_at":"2024-04-23T09:47:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"49e24de5-e637-4daf-a0fa-7076f4ac01d3","html_url":"https://github.com/apify/actor-example-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-example-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-example-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-example-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Factor-example-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apify","download_url":"https://codeload.github.com/apify/actor-example-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248560651,"owners_count":21124695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-07T12:35:35.865Z","updated_at":"2025-11-03T16:32:34.362Z","avatar_url":"https://github.com/apify.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is simple example how to use PHP in Apify. It uses custom Dockerfile based on `php:7.0-cli` image.\n\n## Dockerfile\n\n```Dockerfile\nFROM php:7.0-cli\n\nCOPY ./* ./\n\nCMD [ \"php\", \"./main.php\" ]\n```\n\n## main.php\n\n```php\n\u003c?php\nprint \"Starting ...\\n\";\nprint \"ENV vars:\\n\";\nprint_r($_ENV);\nprint \"Fetching http://example.com ...\\n\";\n$exampleComHtml = file_get_contents('http://example.com');\nprint \"Searching for \u003ch1\u003e tag contents ...\\n\";\npreg_match_all('/\u003ch1\u003e(.*?)\u003c\\/h1\u003e/', $exampleComHtml, $matches);\nprint \"Found: \" . $matches[1][0] . \"\\n\";\nprint \"I am done!\\n\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-example-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapify%2Factor-example-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Factor-example-php/lists"}