Skip to content

AnechaS/slim3-rest-api

Repository files navigation

REST API With Slim3 PHP Framework

Installation

Step 1 - Clone this repo to desired location

$ git clone https://github.com/AnechaS/rest-api-with-slim3.git

Step 2 - Change directory to newly cloned repo via CLI cd /new/cloned/location

Step 3 - Load vendor

$ composer update

Configuration

copy file .env.example then customize your configuration

Run Application

With PHP Cli

$ php -S localhost:8080 -t public public/index.php

With Composer

$ composer start

With Docker

$ docker-compose up -d

load vendor with container

$ docker-compose exec php bash
$ composer update