{"id":28590159,"url":"https://github.com/zephirorb/zro","last_synced_at":"2025-07-04T16:31:59.631Z","repository":{"id":56884479,"uuid":"260142353","full_name":"ZephiroRB/zRo","owner":"ZephiroRB","description":"zRo is a micro framework based on workerman helps you quickly write APIs with php.","archived":false,"fork":false,"pushed_at":"2020-07-19T09:47:34.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-07T23:50:47.195Z","etag":null,"topics":["microframework","workerman","zro"],"latest_commit_sha":null,"homepage":"","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/ZephiroRB.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}},"created_at":"2020-04-30T07:26:50.000Z","updated_at":"2023-10-31T07:50:09.000Z","dependencies_parsed_at":"2022-08-20T23:40:40.645Z","dependency_job_id":null,"html_url":"https://github.com/ZephiroRB/zRo","commit_stats":null,"previous_names":["carlangasgo/montalvo_setup"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephiroRB%2FzRo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephiroRB%2FzRo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephiroRB%2FzRo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephiroRB%2FzRo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZephiroRB","download_url":"https://codeload.github.com/ZephiroRB/zRo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZephiroRB%2FzRo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259227960,"owners_count":22824907,"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":["microframework","workerman","zro"],"created_at":"2025-06-11T08:13:24.510Z","updated_at":"2025-06-11T08:13:32.787Z","avatar_url":"https://github.com/ZephiroRB.png","language":"PHP","readme":"zRo is a micro framework based on [workerman](https://github.com/walkor/workerman) helps you quickly write APIs with php.\n\n# Install\nIt's recommended that you use Composer to install zRo.\n\n`composer require zephirorb/zro`\n\n# Usage\nindex.php\n```php\n\u003c?php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse zRo\\App;\n\n$zro = new App('http://0.0.0.0:3000');\n\n// 10 processes\n$zro-\u003ecount = 10; \n\n$zro-\u003eany('/', function ($request) {\n    return 'Hello world';\n});\n\n$zro-\u003epost('/articles/create', function ($request) {\n    return json_encode(['code'=\u003e0 ,'message' =\u003e 'ok']);\n});\n\n$zro-\u003eget('/hello/{name}', function ($request, $name) {\n    return \"Hello $name\";\n});\n\n$zro-\u003estart();\n```\n\nRun command `php index.php start -d` \n\nGoing to http://127.0.0.1:3000/hello/world will now display \"Hello world\".\n\n# Available commands\n```\nphp index.php restart -d\nphp index.php stop\nphp index.php status\nphp index.php connections\n```\n\n\n# Nginx\n\nIf you would like to use Nginx as reverse proxy or load balancer for your Comet app, insert into nginx.conf these lines:\n\n```php\nhttp {\n \n    upstream app {\n        server http://localhost:port;\n    }\n  \n    server {\n        listen 80;\n         location / {\n            proxy_pass         http://app;\n            proxy_redirect     off;\n        }\n    }\n}    \n```\n\n# License\nThe zRo Framework is licensed under the MIT license. See License File for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephirorb%2Fzro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephirorb%2Fzro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephirorb%2Fzro/lists"}