{"id":18320763,"url":"https://github.com/xtlsoft/gofeature","last_synced_at":"2025-09-11T05:33:24.194Z","repository":{"id":110415742,"uuid":"116526376","full_name":"xtlsoft/GoFeature","owner":"xtlsoft","description":"Enabling Golang Features in PHP.","archived":false,"fork":false,"pushed_at":"2018-05-06T00:22:47.000Z","size":13,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-18T03:44:15.418Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtlsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-01-07T00:43:53.000Z","updated_at":"2018-12-01T09:24:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"c35afa3a-e37e-4d9e-9e9d-2a9f169332f5","html_url":"https://github.com/xtlsoft/GoFeature","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xtlsoft/GoFeature","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FGoFeature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FGoFeature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FGoFeature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FGoFeature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtlsoft","download_url":"https://codeload.github.com/xtlsoft/GoFeature/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2FGoFeature/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274583600,"owners_count":25311881,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"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":[],"created_at":"2024-11-05T18:17:26.725Z","updated_at":"2025-09-11T05:33:24.176Z","avatar_url":"https://github.com/xtlsoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoFeature\nEnabling Golang Features in PHP.\n\n## Installation\n```bash\ncomposer require xtlsoft/gofeature\n```\n\n## Demos\nDefer:\n```php\n\u003c?php\n\nrequire_once \"vendor/autoload.php\";\n\ndefer(function(){\n    echo '1';\n});\n\ndefer(function(){\n    echo '2';\n});\n\n$defer = make('GoFeature\\Defer')-\u003epush(function(){\n    echo 'FromAnother1';\n})-\u003epush(function(){\n    echo 'FromAnother2'\n});\n\necho '3'\n\n```\nResult:\n```text\n3FromAnother2FromAnother121\n```\n\nGo:\n```php\n$th = go(function($ctx){\n    while(1){\n        echo $this-\u003erecv();\n    }\n});\n$th-\u003esend(\"First test.\\r\\n\");\nsleep(2);\n$th-\u003esend(\"Twice test.\");\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtlsoft%2Fgofeature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtlsoft%2Fgofeature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtlsoft%2Fgofeature/lists"}