AnechaS / slim3-rest-api

REST API with Slim3 PHP Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

REST API with Slim3 PHP Framework

License:The Unlicense


Languages

Language:PHP 97.5%Language:Dockerfile 1.9%Language:Shell 0.6%