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

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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