{"id":20177879,"url":"https://github.com/germondai/php-api","last_synced_at":"2025-10-08T14:08:41.621Z","repository":{"id":242742396,"uuid":"810402135","full_name":"germondai/php-api","owner":"germondai","description":"PHP RESTful API with Doctrine, Entities, JWT and Pre-done Auth!","archived":false,"fork":false,"pushed_at":"2024-07-01T13:06:14.000Z","size":970,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-03-03T05:28:29.070Z","etag":null,"topics":["api","crud","db","dbal","doctrine","entities","jwt","media","migrations","mysql","orm","php","rest","rest-api","storage","template"],"latest_commit_sha":null,"homepage":"https://api.germondai.com","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/germondai.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":"2024-06-04T16:14:45.000Z","updated_at":"2024-07-01T13:06:11.000Z","dependencies_parsed_at":"2024-06-04T19:52:02.217Z","dependency_job_id":"74ca1987-dfae-4cc6-852c-34f8b47633db","html_url":"https://github.com/germondai/php-api","commit_stats":null,"previous_names":["germondai/php-api"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/germondai/php-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germondai%2Fphp-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germondai%2Fphp-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germondai%2Fphp-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germondai%2Fphp-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/germondai","download_url":"https://codeload.github.com/germondai/php-api/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/germondai%2Fphp-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267174839,"owners_count":24047700,"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-07-26T02:00:08.937Z","response_time":62,"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":["api","crud","db","dbal","doctrine","entities","jwt","media","migrations","mysql","orm","php","rest","rest-api","storage","template"],"created_at":"2024-11-14T02:17:52.819Z","updated_at":"2025-10-08T14:08:36.602Z","avatar_url":"https://github.com/germondai.png","language":"PHP","readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://api.germondai.com\" target=\"_blank\"\u003e\n    \u003cimg align=\"center\" src=\"https://skillicons.dev/icons?i=php,mysql\" /\u003e\u003cbr/\u003e\u003cbr/\u003e\n    \u003cspan\u003ePHP RESTful API\u003c/span\u003e\u0026nbsp;\n  \u003c/a\u003e\n\u003c/h1\u003e\n\n**PHP RESTful API** with **Doctrine** integration. Own **Api** \u0026 **Entity Controller** that handles routing of **Model/Action** and **Entity** with **CRUD options** based on **Request Method**. Doctrine **Console**, **Entities** and **Migrations** to create flawless **ORM Schemas**. Custom useful **Utils** like **Token** that manages **JSON Web Tokens** (JWT). Pre-done **Auth Model**, **User Entity** connected with **Media Entity** by **OneToMany Relation** to keep track of **Author** of **uploaded** media **files** (**optimize**, **resize** and **image format/type change** included). Easy **configuration** and safe **.env** variables.\n\n## ⚡️ Features\n\n**Overview**\n\n- Own REST API System\n  - Routing\n  - Auth\n  - CRUD\n  - Media\n    - Upload\n    - Optimize\n    - Resize\n    - Quality\n    - Format\n- Doctrine\n  - ORM\n  - DBAL\n  - Entities\n  - Migrations\n  - Annotations\n- Custom Utils\n  - Helper\n  - Database\n  - Doctrine\n  - JSON Web Tokens (JWT)\n- Nette\n  - Database Explorer\n  - Tracy\n- Environment (.env)\n\n## 🧬 Structure\n\n**app/** - App's Main Code (Controller, Entity, Model)\\\n**bin/** - Console for Doctrine\\\n**migrations/** - Doctrine DB Migrations\\\n**public/** - Accessible from Outside (Routing, Media)\\\n**src/** - Developer Source Files (Assets, Includes, Utils)\\\n**temp/** - Storage for Temporary Files and Logs\n\n## 🧠 Technologies\n\n- \u003ca href=\"https://www.php.net/\" target=\"_blank\"\u003ePHP\u003c/a\u003e\n- \u003ca href=\"https://www.doctrine-project.org/\" target=\"_blank\"\u003eDoctrine\u003c/a\u003e\n- \u003ca href=\"https://doc.nette.org/en/database\" target=\"_blank\"\u003eNette DB\u003c/a\u003e\n- \u003ca href=\"https://jwt.io/\" target=\"_blank\"\u003eJSON Web Tokens (JWT)\u003c/a\u003e\n\n## 🛠️ Installation Instructions\n\nRequirements\n\n- 👨‍💻 \u003ca href=\"https://getcomposer.org/\" target=\"_blank\"\u003eComposer\u003c/a\u003e\n\n**Install dependencies**\n\n```bash\ncomposer install\n```\n\n**Setup .env**\n\n- Database Credentials\n- JWT Secret and Algorithm\n\n```bash\n# to dupe example.env as .env\ncp example.env .env\n```\n\n## 📝 Entity Guide\n\nEntity CRUD operations depends on Request Methods\\\nEntity Schema returns tables / table with columns\n\n### Routes\n\nOperations: `/[entity]/[id]`\n\n- GET - Read\n- POST - Create\n- PUT - Replace\n- PATCH - Update\n- DELETE - Delete\n- OPTIONS - Preflight (always return 200)\n\nSchema: `/schema/[entity]`\n\n## 📚 Doctrine Guide\n\nThe Doctrine console is in \"_bin/console_\"\\\nEntityManager config location \"_src/Utils/Doctrine.php_\"\\\nBase migrations config, which is in root \"_migrations.php_\"\\\nAnd migration files are stored in \"_migrations/_\"\n\n### Console\n\n```bash\n# To run doctrine console\nphp bin/console ...\n\n# if you need commands list\nphp bin/console list\n```\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003cspan\u003eMade with ❤️ by\u003c/span\u003e\n    \u003ca href=\"https://github.com/germondai\" target=\"_blank\"\u003e@germondai\u003c/a\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermondai%2Fphp-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgermondai%2Fphp-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgermondai%2Fphp-api/lists"}