{"id":18834280,"url":"https://github.com/chubbyphp/petstore","last_synced_at":"2025-10-30T22:36:08.446Z","repository":{"id":54183342,"uuid":"147189543","full_name":"chubbyphp/petstore","owner":"chubbyphp","description":"A simple skeleton to build api's based on the chubbyphp-framework, mezzio (former zend-expressive) or slim.","archived":false,"fork":false,"pushed_at":"2025-03-16T19:54:29.000Z","size":4091,"stargazers_count":37,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"chubbyphp","last_synced_at":"2025-03-31T18:41:34.329Z","etag":null,"topics":["api","boilerplate","chubbyphp-framework","dbal","doctrine","mezzio","mongodb","odm","orm","skeleton","slim-framewok","zend-expressive"],"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/chubbyphp.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-09-03T10:34:13.000Z","updated_at":"2025-03-12T20:06:26.000Z","dependencies_parsed_at":"2024-02-07T21:32:25.172Z","dependency_job_id":"a0c46eb5-9c74-4327-a3fc-c9d7e17687db","html_url":"https://github.com/chubbyphp/petstore","commit_stats":{"total_commits":329,"total_committers":3,"mean_commits":"109.66666666666667","dds":"0.12158054711246202","last_synced_commit":"049273927c89f853f3d53b1de618681653c1ae94"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fpetstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fpetstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fpetstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fpetstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chubbyphp","download_url":"https://codeload.github.com/chubbyphp/petstore/tar.gz/refs/heads/chubbyphp","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253154619,"owners_count":21862559,"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":["api","boilerplate","chubbyphp-framework","dbal","doctrine","mezzio","mongodb","odm","orm","skeleton","slim-framewok","zend-expressive"],"created_at":"2024-11-08T02:11:39.833Z","updated_at":"2025-10-30T22:36:08.438Z","avatar_url":"https://github.com/chubbyphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# petstore\n\n[![CI](https://github.com/chubbyphp/petstore/actions/workflows/ci.yml/badge.svg?branch=chubbyphp)](https://github.com/chubbyphp/petstore/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/github/chubbyphp/petstore/badge.svg?branch=chubbyphp)](https://coveralls.io/github/chubbyphp/petstore?branch=chubbyphp)\n[![Mutation testing badge](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fchubbyphp%2Fpetstore%2Fchubbyphp)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/petstore/chubbyphp)\n\n## Description\n\nA simple skeleton to build api's based on the [chubbyphp-framework][1].\n\n## Requirements\n\n * php: ^8.2\n * [chubbyphp/chubbyphp-clean-directories][2]: ^1.4\n * [chubbyphp/chubbyphp-cors][3]: ^1.6\n * [chubbyphp/chubbyphp-decode-encode][4]: ^1.2\n * [chubbyphp/chubbyphp-framework][5]: ^5.2\n * [chubbyphp/chubbyphp-framework-router-fastroute][6]: ^2.2\n * [chubbyphp/chubbyphp-http-exception][7]: ^1.2\n * [chubbyphp/chubbyphp-laminas-config][8]: ^1.4\n * [chubbyphp/chubbyphp-laminas-config-doctrine][9]: ^3.0.2\n * [chubbyphp/chubbyphp-laminas-config-factory][10]: ^1.4\n * [chubbyphp/chubbyphp-negotiation][11]: ^2.2\n * [chubbyphp/chubbyphp-parsing][12]: ^2.0\n * [doctrine/orm][13]: ^3.5.2\n * [monolog/monolog][14]: ^3.9\n * [ramsey/uuid][15]: ^4.9\n * [slim/psr7][16]: ^1.7.1\n * [symfony/console][17]: ^7.3.2\n\n## Environment\n\nAdd the following environment variable to your system, for example within `~/.bash_aliases`:\n\n```sh\nexport USER_ID=$(id -u)\nexport GROUP_ID=$(id -g)\n```\n\n### Docker\n\n```sh\ndocker-compose up -d\ndocker-compose exec php bash\n```\n\n## Setup\n\n```sh\ncomposer install\ncomposer setup:dev\n```\n\n## Urls\n\n* GET https://localhost/ping\n* GET https://localhost/swagger (https://localhost/openapi)\n\n### Pet\n\n* GET https://localhost/api/pets?sort[name]=asc\n* POST https://localhost/api/pets\n* GET https://localhost/api/pets/8ba9661b-ba7f-436b-bd25-c0606f911f7d\n* PUT https://localhost/api/pets/8ba9661b-ba7f-436b-bd25-c0606f911f7d\n* DELETE https://localhost/api/pets/8ba9661b-ba7f-436b-bd25-c0606f911f7d\n\n### DBs\n\n * jdbc:postgresql://localhost:5432/petstore?user=root\u0026password=root\n\n## Structure\n\n### Collection\n\nCollections are sortable, filterable paginated lists of models.\n\n * [App\\Collection][60]\n\n### Dto\n\nA DTO, or Data Transfer Object, is a simple object used to transport data between software application components.\n\n * [App\\Dto][70]\n\n### Middleware\n\nMiddleware functions can execute code, make changes to the request and response objects.\nMiddleware can generally be added globally or on a per-route basis.\n\n * [App\\Middleware][80]\n\n### Model\n\nModels, entities, documents what ever fits your purpose the best.\n\n * [App\\Model][90]\n\n### ORM\n\nORM Mapping definitions.\n\n * [App\\ORM][100]\n\n### Parsing\n\nParses and validates data against predefined schemas, ensuring that incoming data conforms to expected structures and criteria.\n\n * [App\\Parsing][110]\n\n### Repository\n\nRepositories get data from storages like databases, elasticsearch, redis or whereever your models are stored or cached.\n\n * [App\\Repository][120]\n\n### RequestHandler\n\nRequestHandler alias Controller, or Controller actions to be more precise.\nThere is a directory with generic crud controllers. If you like the idea adapt them for your generic use case, if not drop them.\nI highly recommend to not extend them.\n\n * [App\\RequestHandler][130]\n\n### ServiceFactory\n\nService factories are the glue code of the dependeny injection container.\n\n * [App\\ServiceFactory][140]\n\n## Copyright\n\n2025 Dominik Zogg\n\n[1]: https://github.com/chubbyphp/chubbyphp-framework\n[2]: https://packagist.org/packages/chubbyphp/chubbyphp-clean-directories\n[3]: https://packagist.org/packages/chubbyphp/chubbyphp-cors\n[4]: https://packagist.org/packages/chubbyphp/chubbyphp-decode-encode\n[5]: https://packagist.org/packages/chubbyphp/chubbyphp-framework\n[6]: https://packagist.org/packages/chubbyphp/chubbyphp-framework-router-fastroute\n[7]: https://packagist.org/packages/chubbyphp/chubbyphp-http-exception\n[8]: https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config\n[9]: https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-doctrine\n[10]: https://packagist.org/packages/chubbyphp/chubbyphp-laminas-config-factory\n[11]: https://packagist.org/packages/chubbyphp/chubbyphp-negotiation\n[12]: https://packagist.org/packages/chubbyphp/chubbyphp-parsing\n[13]: https://packagist.org/packages/doctrine/orm\n[14]: https://packagist.org/packages/monolog/monolog\n[15]: https://packagist.org/packages/ramsey/uuid\n[16]: https://packagist.org/packages/slim/psr7\n[17]: https://packagist.org/packages/symfony/console\n\n[40]: https://packagist.org/packages/chubbyphp/petstore\n\n[60]: src/Collection\n\n[70]: src/Dto\n\n[80]: src/Middleware\n\n[90]: src/Model\n\n[100]: src/Orm\n\n[110]: src/Parsing\n\n[120]: src/Repository\n\n[130]: src/RequestHandler\n\n[140]: src/ServiceFactory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fpetstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchubbyphp%2Fpetstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fpetstore/lists"}