{"id":21828515,"url":"https://github.com/mattiacorvaglia/php-rest-api","last_synced_at":"2026-05-17T18:32:15.189Z","repository":{"id":90785068,"uuid":"77743926","full_name":"mattiacorvaglia/php-rest-api","owner":"mattiacorvaglia","description":"REST API Server written in PHP","archived":false,"fork":false,"pushed_at":"2021-05-12T12:00:28.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-21T12:30:37.697Z","etag":null,"topics":["api","php","rest","server"],"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/mattiacorvaglia.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":"2016-12-31T14:44:06.000Z","updated_at":"2021-05-12T12:00:31.000Z","dependencies_parsed_at":"2023-03-23T11:33:06.293Z","dependency_job_id":null,"html_url":"https://github.com/mattiacorvaglia/php-rest-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mattiacorvaglia/php-rest-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiacorvaglia%2Fphp-rest-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiacorvaglia%2Fphp-rest-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiacorvaglia%2Fphp-rest-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiacorvaglia%2Fphp-rest-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattiacorvaglia","download_url":"https://codeload.github.com/mattiacorvaglia/php-rest-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiacorvaglia%2Fphp-rest-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33149552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","php","rest","server"],"created_at":"2024-11-27T18:16:44.009Z","updated_at":"2026-05-17T18:32:15.171Z","avatar_url":"https://github.com/mattiacorvaglia.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RESTful API implementation in PHP\n\nSimple REST API Server written in PHP, accepting CORS Requests and designed with MVC Pattern.\n\n## Getting Started\n\n### Prerequisites\n\nTo run this project you need the **LAMP** server to be installed on your machine (See this [guide](http://www.mattiacorvaglia.com/install_lamp.html)).  \nYou need also to enable the use of **htaccess** files, in order to make it possible follow these simple steps:\n\n1. First enable the module **rewrite** using this command: `sudo a2enmod rewrite`\n2. Go into the **sites-available** folder: `cd /etc/apache2/sites-available`\n3. Edit the Apache configuration (e.g. `default.conf`) by setting **AllowOverride** to **All**.  \n    BEFORE\n    ```\n    \u003cDirectory /var/www/html/\u003e\n      # ...\n      AllowOverride None\n      # ...\n    \u003c/Directory\u003e\n    ```\n    AFTER\n    ```\n    \u003cDirectory /var/www/html/\u003e\n      # ...\n      AllowOverride All\n      # ...\n    \u003c/Directory\u003e\n    ```\n\n4. Restart Apache: `sudo service apache2 restart`\n\n### Alternatives\n\nYou can avoid using htaccess by configuring directly the Apache configuration.\n\n1. Go into the **sites-available** folder: `cd /etc/apache2/sites-available`\n2. Edit the Apache configuration (e.g. `default.conf`)\n    AFTER\n    ```\n    \u003cDirectory \"/var/www/html/\"\u003e\n\n      # ...\n\n      AllowOverride None\n\n      \u003cIfModule mod_rewrite.c\u003e\n\n        RewriteEngine On\n\n        RewriteCond %{REQUEST_FILENAME} !-f\n        RewriteCond %{REQUEST_FILENAME} !-d\n\n        RewriteRule ^api/v1/foo/* /routes/foo.php [QSA,L]\n        RewriteRule ^api/v1/bar/* /routes/bar.php [QSA,L]\n\n      \u003c/IfModule\u003e\n\n    \u003c/Directory\u003e\n    ```\n3. Restart Apache: `sudo service apache2 restart`\n\n\n## Authors\n\n**Mattia Corvaglia** - [corvagliamattia@gmail.com](mailto:corvagliamattia@gmail.com) - [mattiacorvaglia.com](http://mattiacorvaglia.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattiacorvaglia%2Fphp-rest-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattiacorvaglia%2Fphp-rest-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattiacorvaglia%2Fphp-rest-api/lists"}