Skip to content

rachellougee/slim3-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slim3-rest-api

This is a simple skeleton project using slim3 framework, the goal is to serve as REST API for a single page application such as Angular 2.

Installation

  • Install Composer
  • Install slim3 with composer
$ composer require slim/slim "^3.0"
  • Install the defined dependencies
$ composer install

Run

  • cd slim3-rest-api
  • run it with PHP built-in server
$ php -S 0.0.0.0:8888 -t public public/index.php

Key files

  • public/index.php : Entry point
  • app/settings.php : configuration file such as database, other settings
  • app/routes.php : application routes
  • app/src/Models : model files

About

simple rest api project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published