Skip to content

A micro-framework starter template for building REST API which is based on Slim 3

Notifications You must be signed in to change notification settings

kennedy-osaze/slim-api-skeleton

Repository files navigation

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

About

A micro-framework starter template for building REST API which is based on Slim 3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages