{"id":20540563,"url":"https://github.com/utopia-php/platform","last_synced_at":"2026-04-24T07:06:20.575Z","repository":{"id":44383428,"uuid":"512354917","full_name":"utopia-php/platform","owner":"utopia-php","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-08T04:20:51.000Z","size":297,"stargazers_count":11,"open_issues_count":4,"forks_count":6,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-04-08T06:12:24.619Z","etag":null,"topics":["hacktoberfest","php","utopia"],"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/utopia-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2022-07-10T05:41:15.000Z","updated_at":"2026-04-08T04:11:36.000Z","dependencies_parsed_at":"2026-01-07T15:07:47.993Z","dependency_job_id":null,"html_url":"https://github.com/utopia-php/platform","commit_stats":{"total_commits":60,"total_committers":8,"mean_commits":7.5,"dds":"0.23333333333333328","last_synced_commit":"a9e7a501f33e0da59779782359a747cb8d34cf6f"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"purl":"pkg:github/utopia-php/platform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fplatform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fplatform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fplatform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fplatform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utopia-php","download_url":"https://codeload.github.com/utopia-php/platform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fplatform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32212813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["hacktoberfest","php","utopia"],"created_at":"2024-11-16T01:16:13.757Z","updated_at":"2026-04-24T07:06:20.569Z","avatar_url":"https://github.com/utopia-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utopia Platform\n\n[![Build Status](https://travis-ci.org/utopia-php/platform.svg?branch=master)](https://travis-ci.com/utopia-php/platform)\n![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/platform.svg)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)\n\nAn object oriented way of writing Applications using Utopia libraries\n\n## Getting Started\n\nThis library contains abstract classes that assist in implementing services and actions for Utopia http framework and CLI. You must implement `Platform`, `Service` and `Action` classes to build your application.\n\n## Example\n\nInstall using composer\n\n```\ncomposer require utopia-php/platform\n```\n\nImplementing a HTTP services using platform.\n\n```php\n// Action\n\n\u003c?php\n\nuse Utopia\\Platform\\Action;\n\nclass HelloWorldAction extends Action\n{\n    public function __construct()\n    {\n        $this-\u003ehttpPath = '/hello';\n        $this-\u003ehttpMethod = 'GET';\n        $this-\u003einject('response');\n        $this-\u003ecallback(fn ($response) =\u003e $this-\u003eaction($response));\n    }\n\n    public function action($response)\n    {\n        $response-\u003esend('Hello World!');\n    }\n}\n\n// service\n\nuse Utopia\\Platform\\Service;\n\nclass HelloWorldService extends Service\n{\n    public function __construct()\n    {\n        $this-\u003etype = Service::TYPE_HTTP;\n        $this-\u003eaddAction('hello', new HelloWorldAction());\n    }\n}\n\n// Platform\n\nuse Utopia\\Platform\\Platform;\n\nclass HelloWorldPlatform extends Platform\n{\n    public function __construct()\n    {\n        $this-\u003eaddService('helloService', new HelloWorldService());\n    }\n}\n\n// Using platform to initialize http service\n\n$platform = new HelloWorldPlatform();\n$platform-\u003einit('http');\n\n```\n\n## System Requirements\n\nUtopia Framework requires PHP 8.3 or later. We recommend using the latest PHP version whenever possible.\n\n## Contributing\n\nAll code contributions - including those of people having commit access - must go through a pull request and be approved by a core developer before being merged. This is to ensure a proper review of all the code.\n\nWe truly ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md).\n\n## Copyright and license\n\nThe MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fplatform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futopia-php%2Fplatform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fplatform/lists"}