{"id":15732788,"url":"https://github.com/nilportugues/php-parallel_request_playground","last_synced_at":"2025-10-29T06:06:55.700Z","repository":{"id":71784228,"uuid":"52205636","full_name":"nilportugues/php-parallel_request_playground","owner":"nilportugues","description":"Testing fastest parallel HTTP requests with the existing PHP technologies.","archived":false,"fork":false,"pushed_at":"2018-05-23T09:53:17.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T15:05:48.284Z","etag":null,"topics":["coroutines","curl","http","parallel","parallelization","php","php7","playground","psr-7"],"latest_commit_sha":null,"homepage":"http://nilportugues.com","language":"PHP","has_issues":true,"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/nilportugues.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":"2016-02-21T12:34:34.000Z","updated_at":"2018-05-23T09:53:18.000Z","dependencies_parsed_at":"2023-07-11T05:34:03.930Z","dependency_job_id":null,"html_url":"https://github.com/nilportugues/php-parallel_request_playground","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/nilportugues%2Fphp-parallel_request_playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-parallel_request_playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-parallel_request_playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-parallel_request_playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilportugues","download_url":"https://codeload.github.com/nilportugues/php-parallel_request_playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246413229,"owners_count":20773053,"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":["coroutines","curl","http","parallel","parallelization","php","php7","playground","psr-7"],"created_at":"2024-10-04T00:22:41.185Z","updated_at":"2025-10-29T06:06:55.608Z","avatar_url":"https://github.com/nilportugues.png","language":"PHP","readme":"# PHP HTTP Request Coroutines\n\nPlayground to test how to make the fastest parallel HTTP requests with the existing PHP technologies.\n\n\n## Install\n\nThis repository assumes that you're developing using modern tools such as `composer` and `docker`.\n\nJust copy \u0026 paste this in your terminal. \n\n```sh\ncomposer install \u0026\u0026 sh docker.sh start\n```\n\n## The Experiment\n\nThe test consists in firing 5 requests to a slow site, `http://localhost:8000`.  This page by default, will load after `5 seconds`, so firing up 5 request leaves us with the following:\n\n- Fastest parallel processing theoretical time: `5 seconds`.\n- Fastest serial processing theoretical time: `25 seconds`.\n\n\n## Configuration\n\nYou may modify the delay time by modifying the `index.php` file found in `public/index.php`.\n\nIts contents just simulate a slow loading website:\n\n```php\n\u003c?php\n\n$delay = 5;\nsleep($delay);\necho 'You waited for '.$delay.' seconds.'; \n```\n\n## Running it\n\nOn a terminal window run: \n\n```\nsh docker.sh start\n```\n\nNow on **ANOTHER** terminal window, you may run: \n\n```sh\nphp withCoroutines.php\nphp withoutCoroutines.php\n```\n\nAnd see the difference in timings between implementations. \n\n## Experiments: \n\n- Native Curl\n- Native Curl multi requests.\n- Guzzle6 with React Loop\n- Buzz with React Loop\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fphp-parallel_request_playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilportugues%2Fphp-parallel_request_playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fphp-parallel_request_playground/lists"}