{"id":19895319,"url":"https://github.com/razshare/react-php-yielder","last_synced_at":"2025-06-26T19:33:20.413Z","repository":{"id":62533660,"uuid":"417006365","full_name":"razshare/react-php-yielder","owner":"razshare","description":"A simple library that converts Generators into PromiseInterfaces for ReactPhp.","archived":false,"fork":false,"pushed_at":"2021-10-14T08:47:42.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T09:12:42.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/razshare.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}},"created_at":"2021-10-14T05:57:24.000Z","updated_at":"2021-10-14T08:46:40.000Z","dependencies_parsed_at":"2022-11-02T15:15:35.401Z","dependency_job_id":null,"html_url":"https://github.com/razshare/react-php-yielder","commit_stats":null,"previous_names":["razshare/react-php-yielder"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/razshare/react-php-yielder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Freact-php-yielder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Freact-php-yielder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Freact-php-yielder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Freact-php-yielder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razshare","download_url":"https://codeload.github.com/razshare/react-php-yielder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razshare%2Freact-php-yielder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262132663,"owners_count":23264041,"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-12T18:36:23.396Z","updated_at":"2025-06-26T19:33:20.346Z","avatar_url":"https://github.com/razshare.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"This library provides a fluent api to work with promisses and generators inside the [ReactPhp](https://reactphp.org/) event loop.\n\n```php\n\\Razshare\\ReactPhp\\Yielder\\Yielder::run(function(){\n    $result = yield new \\React\\Promise\\Promise(function($r){\n        $r(\"hello world\");        \n    });\n    \n    echo $result.PHP_EOL;\n});\n```\n\nThis is just a piece of code that simply prints \"hello world\" from a promise.\n\nIt might not seem like much of a difference, but when you take into \nconsideration the number of async operations you're required to run in order\nto keep your application running smoothly, this simple syntax improvement can\nbecome a refreshing and more convenient way to handle promises.\n\n\n## Getting Started\n```bash\ncomposer require razshare/react-php-yielder\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Freact-php-yielder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazshare%2Freact-php-yielder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazshare%2Freact-php-yielder/lists"}