/php-backend-start

My "starter package" for site's requiring a PHP backend (uses SlimPHP + Laravel's Eloquent ORM).

Primary LanguagePHP

PHP Backend Start

This is, more or less, my starting point for any application requiring a PHP backend.

Backend Installation

Currently a SlimPHP application that uses the Laravel's Eloquent ORM Library.

  1. From project root directory, install dependencies using Composer:
    composer install

  2. Copy database config template:
    cp api/config/db.php.dist api/config/db.php

  3. 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

Frontend Installation

  1. From project root directory, install dependencies using bower:
    bower install

  2. Test that the app loads: http://localhost/php-backend-start/app