{"id":13562671,"url":"https://github.com/silverstripe/doorman","last_synced_at":"2025-04-13T20:19:13.714Z","repository":{"id":34828504,"uuid":"38816427","full_name":"silverstripe/doorman","owner":"silverstripe","description":"Child process management","archived":false,"fork":false,"pushed_at":"2024-12-09T22:20:43.000Z","size":148,"stargazers_count":321,"open_issues_count":12,"forks_count":29,"subscribers_count":19,"default_branch":"3","last_synced_at":"2025-03-22T08:03:00.006Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silverstripe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"license.md","code_of_conduct":"code-of-conduct.md","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":"2015-07-09T11:30:33.000Z","updated_at":"2024-09-12T11:27:11.000Z","dependencies_parsed_at":"2024-01-14T03:46:26.314Z","dependency_job_id":"2d3c0108-8530-4f4e-ab4b-22e837e38052","html_url":"https://github.com/silverstripe/doorman","commit_stats":{"total_commits":56,"total_committers":9,"mean_commits":6.222222222222222,"dds":0.2142857142857143,"last_synced_commit":"c0902baff7ae84b133709f8b28149f067c8c924c"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fdoorman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fdoorman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fdoorman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silverstripe%2Fdoorman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silverstripe","download_url":"https://codeload.github.com/silverstripe/doorman/tar.gz/refs/heads/3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248775281,"owners_count":21159582,"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":["hacktoberfest"],"created_at":"2024-08-01T13:01:11.009Z","updated_at":"2025-04-13T20:19:13.692Z","avatar_url":"https://github.com/silverstripe.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Doorman\n\n[![CI](https://github.com/silverstripe/doorman/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/doorman/actions/workflows/ci.yml)\n\nChild process management. Compatible from PHP `5.3` to PHP `7`. Needs no extensions.\n\n\u003e `2.x` supports PHP `5.5.9` and upwards. If you need PHP `5.3/4` support, use a `1.x` release.\n\n## Usage\n\n```php\nuse AsyncPHP\\Doorman\\Manager\\ProcessManager;\nuse AsyncPHP\\Doorman\\Task\\ProcessCallbackTask;\n\n$task1 = new ProcessCallbackTask(function () {\n    print \"in task 1\";\n});\n\n$task2 = new ProcessCallbackTask(function () {\n    print \"in task 2\";\n});\n\n$manager = new ProcessManager();\n\n$manager-\u003eaddTask($task1);\n$manager-\u003eaddTask($task2);\n\nwhile ($manager-\u003etick()) {\n    usleep(250);\n}\n```\n\nYou can find more in-depth documentation in [docs/en](docs/en/introduction.md).\n\nWant to know how it works, without digging through the code? [Read this](https://medium.com/@assertchris/multi-process-php-94a4e5a4be05)...\n\n## Motivation\n\nThere are many great libraries that do something similar to this. They usually require additional extensions. This library aims to make child process management simple, and supported everywhere.\n\nOther great libraries that do similar stuff:\n\n- [React](https://github.com/reactphp/child-process)\n- [Icicle](https://github.com/icicleio/concurrent)\n\n## Versioning\n\nThis library follows [Semver](http://semver.org). According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.\n\nAll methods, with `public` visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep `protected` methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading.\n\n## Thanks\n\nI'd like to thank [SilverStripe](http://www.silverstripe.com) for letting me work on fun projects like this. Feel free to talk to me about using the [framework and CMS](http://www.silverstripe.org) or [working at SilverStripe](http://www.silverstripe.com/who-we-are/#careers).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverstripe%2Fdoorman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilverstripe%2Fdoorman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilverstripe%2Fdoorman/lists"}