{"id":33978058,"url":"https://github.com/maurobonfietti/slim4-api-skeleton","last_synced_at":"2026-07-26T01:00:31.346Z","repository":{"id":45427096,"uuid":"199962135","full_name":"maurobonfietti/slim4-api-skeleton","owner":"maurobonfietti","description":"Useful skeleton for RESTful API development with PHP and Slim 4.","archived":false,"fork":false,"pushed_at":"2024-10-30T16:26:21.000Z","size":406,"stargazers_count":138,"open_issues_count":2,"forks_count":36,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-06-11T15:05:43.083Z","etag":null,"topics":["api-skeleton","mysql","php","rest-api","slim","slim-micro-framework"],"latest_commit_sha":null,"homepage":"http://bit.ly/2nNNOZi","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/maurobonfietti.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"ko_fi":"maurobonfietti"}},"created_at":"2019-08-01T02:32:58.000Z","updated_at":"2026-06-03T10:53:29.000Z","dependencies_parsed_at":"2025-12-13T05:02:27.603Z","dependency_job_id":null,"html_url":"https://github.com/maurobonfietti/slim4-api-skeleton","commit_stats":{"total_commits":293,"total_committers":8,"mean_commits":36.625,"dds":0.05460750853242324,"last_synced_commit":"ac2fe8b28fcd0d9c46bffa182c11df03b2a48fb3"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"purl":"pkg:github/maurobonfietti/slim4-api-skeleton","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurobonfietti%2Fslim4-api-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurobonfietti%2Fslim4-api-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurobonfietti%2Fslim4-api-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurobonfietti%2Fslim4-api-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maurobonfietti","download_url":"https://codeload.github.com/maurobonfietti/slim4-api-skeleton/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maurobonfietti%2Fslim4-api-skeleton/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35897093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-25T02:00:06.922Z","response_time":64,"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-skeleton","mysql","php","rest-api","slim","slim-micro-framework"],"created_at":"2025-12-13T02:41:16.291Z","updated_at":"2026-07-26T01:00:31.340Z","avatar_url":"https://github.com/maurobonfietti.png","language":"PHP","funding_links":["https://ko-fi.com/maurobonfietti"],"categories":[],"sub_categories":[],"readme":"# SLIM 4 - API SKELETON\n\nUseful skeleton for RESTful API development, using [Slim PHP micro-framework](https://www.slimframework.com).\n\n\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status](https://travis-ci.com/maurobonfietti/slim4-api-skeleton.svg?branch=master)](https://travis-ci.com/maurobonfietti/slim4-api-skeleton)\n[![Coverage Status](https://coveralls.io/repos/github/maurobonfietti/slim4-api-skeleton/badge.svg?branch=master)](https://coveralls.io/github/maurobonfietti/slim4-api-skeleton?branch=master)\n[![Packagist Version](https://img.shields.io/packagist/v/maurobonfietti/slim4-api-skeleton)](https://packagist.org/packages/maurobonfietti/slim4-api-skeleton)\n\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat\n\n\n## 💻 TECHNOLOGIES USED:\n\nThe main technologies used in this project are:\n\n- PHP 8\n- Slim 4\n- MySQL\n- PHPUnit\n- dotenv\n- Docker\n- Docker Compose\n\n\n## ⚙️ QUICK INSTALL:\n\n### Requirements:\n\n- Composer.\n- PHP \u003e= 8.3\n- MySQL/MariaDB.\n- or Docker.\n\n\n### With Composer:\n\nYou can create a new project running the following commands:\n\n```bash\ncomposer create-project maurobonfietti/slim4-api-skeleton [my-api-name]\ncd [my-api-name]\ncomposer test\ncomposer start\n```\n\n\n#### Configure your connection to MySQL Server:\n\nBy default, the API uses a MySQL database.\n\nYou should check and edit this configuration in your `.env` file:\n\n```\nDB_HOST='127.0.0.1'\nDB_NAME='yourMySqlDatabase'\nDB_USER='yourMySqlUsername'\nDB_PASS='yourMySqlPassword'\nDB_PORT='3306'\n```\n\n\n### With Docker:\n\nIf you like Docker, you can use this project with **Docker** and **Docker Compose**.\n\n\n**Minimal Docker Version:**\n\n* Engine: 18.03+\n* Compose: 1.21+\n\n\n**Docker Commands:**\n\n```bash\n# Create and start containers for the API.\ndocker-compose up -d --build\n\n# Checkout the API.\ncurl http://localhost:8081\n\n# Stop and remove containers.\ndocker-compose down\n```\n\n\n## 📦 DEPENDENCIES:\n\n### LIST OF REQUIRE DEPENDENCIES:\n\n- [slim/slim](https://github.com/slimphp/Slim): Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.\n- [slim/psr7](https://github.com/slimphp/Slim-Psr7): PSR-7 implementation for use with Slim 4.\n- [pimple/pimple](https://github.com/silexphp/Pimple): A small PHP dependency injection container.\n- [vlucas/phpdotenv](https://github.com/vlucas/phpdotenv): Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.\n\n### LIST OF DEVELOPMENT DEPENDENCIES:\n\n- [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit): The PHP Unit Testing framework.\n- [symfony/console](https://github.com/symfony/console): The Console component eases the creation of beautiful and testable command line interfaces.\n- [nunomaduro/phpinsights](https://github.com/nunomaduro/phpinsights): Instant PHP quality checks from your console.\n- [maurobonfietti/slim4-api-skeleton-crud-generator](https://github.com/maurobonfietti/slim4-api-skeleton-crud-generator): CRUD Generator for Slim 4 - Api Skeleton.\n\n\n## 🔖 ENDPOINTS:\n\n### BY DEFAULT:\n\n- Hello: `GET /`\n\n- Health Check: `GET /status`\n\n\n## 📹 TUTORIAL:\n\nLearn how to develop a RESTful API with PHP and Slim 4 by following this [video](https://youtu.be/DetK1w65S-k) [🎥 🔈 🇪🇸 🇦🇷]\n\n\nhttps://user-images.githubusercontent.com/24535949/180607903-7efd2cfc-b1df-4ad6-8295-801585df3b83.mp4\n\n\n## :heart: SUPPORT THE PROJECT\n\nIf you would like to support this project, you can:\n- Invite the author a coffee :coffee: :yum:\n- Give a star to the repository :star: :blush:\n\n[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/maurobonfietti)\n\n\n## :sunglasses: AND THAT'S IT!\n\nNow, go to build an excellent RESTful API.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaurobonfietti%2Fslim4-api-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaurobonfietti%2Fslim4-api-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaurobonfietti%2Fslim4-api-skeleton/lists"}