Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/anechas/slim3-rest-api

REST API with Slim3 PHP Framework
https://github.com/anechas/slim3-rest-api

eloquent-orm jsonwebtoken jwt-authentication laravel-validation mvc mysql php php-docker rest-api slim slim-rest-api slim3

Last synced: about 5 hours ago
JSON representation

REST API with Slim3 PHP Framework

Awesome Lists containing this project

README

        

# REST API With Slim3 PHP Framework

## Installation

**Step 1** - Clone this repo to desired location
```bash
$ 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
```bash
$ composer update
```

## Configuration

copy file `.env.example` then customize your configuration

## Run Application

### With PHP Cli
```bash
$ php -S localhost:8080 -t public public/index.php
```

### With Composer
```bash
$ composer start
```

### With Docker

```bash
$ docker-compose up -d
```

load vendor with container

```bash
$ docker-compose exec php bash
$ composer update
```