Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/khachornchit/php-symfony-4-crud

Develop PHP Web API Application using PHP Symfony 4.2 framework to develop full functionality of CRUD by using Entity, Repository, Doctrine, ORM, MySQL, Docker, Docker-compose, etc. Feel free to contact Pluto Solutions at [email protected]
https://github.com/khachornchit/php-symfony-4-crud

ddd entity mysql oop php repository symfony-application symfony-web symfony4

Last synced: 11 days ago
JSON representation

Develop PHP Web API Application using PHP Symfony 4.2 framework to develop full functionality of CRUD by using Entity, Repository, Doctrine, ORM, MySQL, Docker, Docker-compose, etc. Feel free to contact Pluto Solutions at [email protected]

Awesome Lists containing this project

README

        

# PHP Symfony 4.2 CRUD API Development
`Develop PHP Web API Application using PHP Symfony 4.2 framework to develop full functionality of CRUD by using Entity, Repository, Doctrine, ORM, MySQL, Docker, Docker-compose, etc.`

#### Contact Information
* Author : Pluto Solutions
* Web : http://plutosolutions.net

#### Setup
* git clone [email protected]:plutosolutions/PHP-Symfony-4-CRUD.git
* cd PHP-Symfony-4-CRUD
* composer install

#### Update database configuration at file .env
* DATABASE_URL=mysql://{username}:{password}@{host}:{port}/{database}

#### Create database using follow command
* php bin/console doctrine:database:create
* php bin/console doctrine:migrations:migrate

#### Start server
* php bin/console server:run localhost:8000
* browse http://localhost:8000

#### Example API
* POST /api/users
* GET /api/users
* GET /api/users/{id}
* PUT /api/users/{id}
* DELETE /api/users/{id}