{"id":13616615,"url":"https://github.com/darkwood-com/flow","last_synced_at":"2026-05-28T01:05:43.032Z","repository":{"id":46023174,"uuid":"355202161","full_name":"darkwood-com/flow","owner":"darkwood-com","description":"💧Flow","archived":false,"fork":false,"pushed_at":"2026-05-24T21:11:49.000Z","size":7313,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"8.0","last_synced_at":"2026-05-24T23:30:01.221Z","etag":null,"topics":["amphp","async","fiber","monad","php","reactphp","spatie","swoole","symfony"],"latest_commit_sha":null,"homepage":"http://flow.darkwood.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/darkwood-com.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"matyo91"}},"created_at":"2021-04-06T13:39:16.000Z","updated_at":"2026-05-21T22:31:45.000Z","dependencies_parsed_at":"2023-07-17T01:30:35.153Z","dependency_job_id":"ca8f5b07-57b0-46f8-8474-b92845a5596a","html_url":"https://github.com/darkwood-com/flow","commit_stats":{"total_commits":203,"total_committers":3,"mean_commits":67.66666666666667,"dds":"0.20197044334975367","last_synced_commit":"6e04824cb3cf1c67483e3ede9e67ef994621baa5"},"previous_names":["darkwood-fr/railway-fbp","darkwood-com/flow"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/darkwood-com/flow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwood-com%2Fflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwood-com%2Fflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwood-com%2Fflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwood-com%2Fflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwood-com","download_url":"https://codeload.github.com/darkwood-com/flow/tar.gz/refs/heads/8.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwood-com%2Fflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33589685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","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":["amphp","async","fiber","monad","php","reactphp","spatie","swoole","symfony"],"created_at":"2024-08-01T20:01:30.942Z","updated_at":"2026-05-28T01:05:43.025Z","avatar_url":"https://github.com/darkwood-com.png","language":"PHP","funding_links":["https://github.com/sponsors/matyo91"],"categories":["PHP"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/darkwood-com/flow\"\u003e\n    \u003cimg src=\"docs/src/images/logo.png\" width=\"auto\" height=\"128px\" alt=\"Flow\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Why ?\n\nFlow concept aims to solve\n\n- Adopt asynchronous as native implementation\n- Build your code with functional programming\n- Assemble your code visually\n\n## Installation\n\nPHP 8.5 is the minimal version to use Flow\nThe recommended way to install it through [Composer](http://getcomposer.org) and execute\n\n```bash\ncomposer require darkwood/flow\n```\n\n## Usage\n\n```php\n\u003c?php\n\nuse Flow\\Flow\\Flow;\nuse Flow\\FlowFactory;\nuse Flow\\Ip;\n\nclass D1 {\n    public function __construct(public int $n1) {}\n}\n\nclass D2 {\n    public function __construct(public int $n2) {}\n}\n\nclass D3 {\n    public function __construct(public int $n3) {}\n}\n\nclass D4 {\n    public function __construct(public int $n4) {}\n}\n\n$flow = (new FlowFactory())-\u003ecreate(static function() {\n    yield fn (D1 $data1) =\u003e new D2($data1-\u003en1 += 1);\n    yield fn (D2 $data2) =\u003e new D3($data2-\u003en2 * 2);\n    yield function(D3 $data3) {\n        printf(\"my number %d\\n\", $ip-\u003edata-\u003en3)); // display 'my number 10'\n\n        return new D4($data3-\u003en3);\n    };\n});\n\n$ip = new Ip(new D1(4));\n$flow($ip);\n$flow-\u003eawait();\n```\n\n## Examples\n\nA working script is available in the bundled `examples` directory\n\n- Run Flow : `php examples/flow.php`\n- Run Y-Combinator Flow : `php examples/yflow.php`\n- Start Server : `php examples/server.php`  \n  Start Client(s) : `php examples/client.php`\n\n## Documentation\n\n[https://darkwood-com.github.io/flow](https://darkwood-com.github.io/flow)\n\n## License\n\nFlow is released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwood-com%2Fflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwood-com%2Fflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwood-com%2Fflow/lists"}