{"id":37010210,"url":"https://github.com/chubbyphp/chubbyphp-petstore","last_synced_at":"2026-01-14T00:59:06.431Z","repository":{"id":54183342,"uuid":"147189543","full_name":"chubbyphp/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":"2026-01-11T16:16:59.000Z","size":4176,"stargazers_count":38,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"chubbyphp","last_synced_at":"2026-01-11T18:48:54.431Z","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-09-03T10:34:13.000Z","updated_at":"2026-01-11T16:16: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/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,"purl":"pkg:github/chubbyphp/chubbyphp-petstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-petstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-petstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-petstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-petstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chubbyphp","download_url":"https://codeload.github.com/chubbyphp/chubbyphp-petstore/tar.gz/refs/heads/chubbyphp","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chubbyphp%2Fchubbyphp-petstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["api","boilerplate","chubbyphp-framework","dbal","doctrine","mezzio","mongodb","odm","orm","skeleton","slim-framewok","zend-expressive"],"created_at":"2026-01-14T00:59:05.736Z","updated_at":"2026-01-14T00:59:06.388Z","avatar_url":"https://github.com/chubbyphp.png","language":"PHP","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.3\n * [chubbyphp/chubbyphp-clean-directories][2]: ^1.5\n * [chubbyphp/chubbyphp-cors][3]: ^1.7\n * [chubbyphp/chubbyphp-decode-encode][4]: ^1.3\n * [chubbyphp/chubbyphp-framework][5]: ^6.0\n * [chubbyphp/chubbyphp-framework-router-fastroute][6]: ^2.3\n * [chubbyphp/chubbyphp-http-exception][7]: ^1.3\n * [chubbyphp/chubbyphp-laminas-config][8]: ^1.5\n * [chubbyphp/chubbyphp-laminas-config-doctrine][9]: ^3.1\n * [chubbyphp/chubbyphp-laminas-config-factory][10]: ^1.5\n * [chubbyphp/chubbyphp-negotiation][11]: ^2.3\n * [chubbyphp/chubbyphp-parsing][12]: ^2.1\n * [doctrine/orm][13]: ^3.5.8\n * [monolog/monolog][14]: ^3.9\n * [ramsey/uuid][15]: ^4.9.1\n * [slim/psr7][16]: ^1.8\n * [symfony/console][17]: ^7.4.1|^8.0.1\n * [symfony/var-exporter][18]: ^7.4.0\n\n## Environment\n\nAdd the following environment variable to your system, for example within `~/.bashrc` or  `~/.zshrc`:\n\n```sh\nexport USER_ID=$(id -u)\nexport GROUP_ID=$(id -g)\n```\n\nMake sure all the mount points are given\n\n```sh\ntouch ~/.bash_docker\ntouch ~/.bash_history\n```\n\n```sh\ntouch ~/.gitconfig\ntouch ~/.gitignore\n```\n\n```sh\nmkdir -p ~/.local/share/opencode\n[ ! -f ~/.local/share/opencode/auth.json ] \u0026\u0026 echo '{}' \u003e ~/.local/share/opencode/auth.json\n```\n\n```sh\ntouch ~/.zsh_docker\ntouch ~/.zsh_history\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## Opensearch\n\n### Policy to delete logstash formatted indicies after 14 days.\n\n```.sh\ncurl -XPUT 'https://admin:98T722Eqw99oqFCSJCnB@localhost:9200/_plugins/_ism/policies/logstash-policy' \\\n    -H 'Content-Type: application/json' \\\n    -H 'Accept: application/json' \\\n    -d '{\n      \"policy\": {\n        \"description\": \"Logstash\",\n        \"default_state\": \"hot\",\n        \"states\": [\n          {\n            \"name\": \"hot\",\n            \"actions\": [],\n            \"transitions\": [\n              {\n                \"state_name\": \"delete\",\n                \"conditions\": {\n                  \"min_index_age\": \"14d\"\n                }\n              }\n            ]\n          },\n          {\n            \"name\": \"delete\",\n            \"actions\": [\n              {\n                \"delete\": {}\n              }\n            ]\n          }\n        ],\n        \"ism_template\": {\n          \"index_patterns\" : [\"logstash-*\"],\n          \"priority\": 100\n        }\n      }\n    }' \\\n    --insecure\n```\n\n## Copyright\n\n2026 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[18]: https://packagist.org/packages/symfony/var-exporter\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fchubbyphp-petstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchubbyphp%2Fchubbyphp-petstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchubbyphp%2Fchubbyphp-petstore/lists"}