Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.77 KB

readme.md

File metadata and controls

33 lines (24 loc) · 1.77 KB

Slim API Skeleton

This is a PHP API skeleton that is based on the Slim 3 micro framework to help getting started in building REST application.

Dependencies

The project uses the following packages

Installation

  • Run git clone https://github.com/kennedy-osaze/slim-api-skeleton.git to clone the repository
  • Run composer install from the application root folder
  • From the project root run cp .env.example .env
  • Ensure storage/ is web writeable.

Commands

  • To create migrations, run vendor/bin/phinx create NameOfMigration
  • To run migration, run vendor/bin/phinx migrate
  • To rollback a migration, run vendor/bin/phinx rollback
  • To create a seeder, run php vendor/bin/phinx seed:create NameOfSeeder
  • To run a seeder, run php vendor/bin/phinx seed:run

For more information of migrations and seeders, check out the Phinx Documentation