{"id":20846544,"url":"https://github.com/mavisland/slim-rest-api","last_synced_at":"2025-10-30T10:39:44.000Z","repository":{"id":145712052,"uuid":"253923022","full_name":"mavisland/slim-rest-api","owner":"mavisland","description":"Simple REST API with Slim Framework","archived":false,"fork":false,"pushed_at":"2020-04-08T08:15:32.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-12T06:38:27.576Z","etag":null,"topics":["api","php","rest-api","slim-framework"],"latest_commit_sha":null,"homepage":null,"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/mavisland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2020-04-07T22:08:18.000Z","updated_at":"2020-04-08T08:15:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"68ee892f-66e7-41d4-a320-a51b6f2c0bcf","html_url":"https://github.com/mavisland/slim-rest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mavisland/slim-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavisland%2Fslim-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavisland%2Fslim-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavisland%2Fslim-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavisland%2Fslim-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mavisland","download_url":"https://codeload.github.com/mavisland/slim-rest-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavisland%2Fslim-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281793461,"owners_count":26562612,"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-10-30T02:00:06.501Z","response_time":61,"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","php","rest-api","slim-framework"],"created_at":"2024-11-18T02:16:52.703Z","updated_at":"2025-10-30T10:39:43.963Z","avatar_url":"https://github.com/mavisland.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple REST API with Slim Framework\n\nThis is an example project that illustrates creating a REST API in PHP with Slim Framework.\n\n## Getting Started\n\n### Requirements\n\n-   GIT\n-   PHP 7.1 or greater\n-   Composer\n\n### Install the project\n\n1. Clone this repository\n\n```bash\ngit clone https://github.com/mavisland/slim-rest-api.git [my-app-name]\n```\n\n2. Go to the project folder\n\n```bash\ncd [my-app-name]\n```\n\n3. Install dependencies with composer\n\n```bash\ncomposer install\n```\n\n## Endpoints\n\n| Method   | URI                                   | Description                    |\n| -------- | ------------------------------------- | ------------------------------ |\n| `GET`    | `/projects`                           | Get all projects               |\n| `POST`   | `/projects`                           | Create a new project           |\n| `GET`    | `/projects/:title`                    | Get a project                  |\n| `PUT`    | `/projects/:title`                    | Update a project               |\n| `DELETE` | `/projects/:title`                    | Delete a project               |\n| `PUT`    | `/projects/:title/archive`            | Archive a project              |\n| `DELETE` | `/projects/:title/archive`            | Restore a project              |\n| `GET`    | `/projects/:title/tasks`              | Get all tasks of a project     |\n| `POST`   | `/projects/:title/tasks`              | Create a new task in a project |\n| `GET`    | `/projects/:title/tasks/:id`          | Get a task of a project        |\n| `PUT`    | `/projects/:title/tasks/:id`          | Update a task of a project     |\n| `DELETE` | `/projects/:title/tasks/:id`          | Delete a task of a project     |\n| `PUT`    | `/projects/:title/tasks/:id/complete` | Complete a task of a project   |\n| `DELETE` | `/projects/:title/tasks/:id/complete` | Undo a task of a project       |\n\n## 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\n## License\n\nThe code is released under the MIT License (MIT). See [LICENSE](LICENSE.md) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavisland%2Fslim-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmavisland%2Fslim-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavisland%2Fslim-rest-api/lists"}