Automatic REST API for SlimPHP 4 (minimal)
Last month we showed how to use PHP-CRUD-API (2k stars) as a library executed on an endpoint in the SlimPHP 4 framework (10k stars). In the previous post we used the recommended way to set up a SlimPHP 4 project and in this post we take a minimal approach (using as little code as possible). Install SlimPHP4 We download composer and use it to install the two projects: wget https://getcomposer.org/composer.phar php composer.phar require slim/slim:^4 php composer.phar require mevdschee/php-crud-api This is all that is needed. ...