Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/anechas/slim3-rest-api
- Owner: AnechaS
- License: unlicense
- Created: 2021-02-14T21:31:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T16:04:10.000Z (over 3 years ago)
- Last Synced: 2023-03-04T11:24:14.092Z (over 1 year ago)
- Topics: eloquent-orm, jsonwebtoken, jwt-authentication, laravel-validation, mvc, mysql, php, php-docker, rest-api, slim, slim-rest-api, slim3
- Language: PHP
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```