This is, more or less, my starting point for any application requiring a PHP backend.
Currently a SlimPHP application that uses the Laravel's Eloquent ORM Library.
-
From project root directory, install dependencies using Composer:
composer install
-
Copy database config template:
cp api/config/db.php.dist api/config/db.php
-
Currently, a GET request returning an entire table (by name) is all that is provided. Test an API endpoint: http://localhost/php-backend-start/api/index.php/v1/tableName and http://localhost/php-backend-start/api/index.php/v1/tableName?format=csv
-
From project root directory, install dependencies using bower:
bower install
-
Test that the app loads: http://localhost/php-backend-start/app