Skip to content

☘️ A REST API project was built by PHP, followed the SOLID principles and Clean Architecture.

Notifications You must be signed in to change notification settings

phamphihungbk/php-restful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

50ab8b3 · Sep 20, 2021

History

21 Commits
Jul 24, 2021
Sep 20, 2021
Jul 24, 2021
Jun 19, 2021
Jun 27, 2021
Sep 20, 2021
Sep 20, 2021

Repository files navigation

PHP RESTFUL

☘️ A REST API project was built by PHP, followed the SOLID principles and Clean Architecture.

Features

- Protect API with CORS
- Authorization with Laravel Passport
- Prevent registration with week password
- Tests
- Login
- Register
- Uuid
- Centralize log with Syslog-ng
- API Caching with Memcached

Project Structure

├── config                      # contains all env file for different environments
├── environment                 # dockerfile
└── web                    	# main sourcecode

Project setup:

Add domain to your host file ( MacOS )

make host

Build docker image

make build

Start docker container

make up

Create DB table in Mysql

make db-create

Run migration on DB

make db-migrate

Access api by putting below domain on Postman

tinnyapi.local