Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/khachornchit/php-symfony4-micro-services
This project is demonstrated on how to develop micro-services application with CRUD method using Symfony 4.2/PHP 7.2 and docker container. So, make sure you have installed docker and docker-compose ready on your environment. Then, you can follow the setup guide step by step.
https://github.com/khachornchit/php-symfony4-micro-services
docker docker-compose microservice mysql php php7 restful-api symfony symfony4 web-api
Last synced: 9 days ago
JSON representation
This project is demonstrated on how to develop micro-services application with CRUD method using Symfony 4.2/PHP 7.2 and docker container. So, make sure you have installed docker and docker-compose ready on your environment. Then, you can follow the setup guide step by step.
- Host: GitHub
- URL: https://github.com/khachornchit/php-symfony4-micro-services
- Owner: khachornchit
- License: mit
- Created: 2019-10-02T20:25:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-31T14:30:22.000Z (almost 5 years ago)
- Last Synced: 2024-11-10T12:47:07.590Z (2 months ago)
- Topics: docker, docker-compose, microservice, mysql, php, php7, restful-api, symfony, symfony4, web-api
- Language: PHP
- Homepage:
- Size: 182 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/Khachornchit/PHP-Symfony4-Micro-services.svg?branch=master)](https://travis-ci.org/Khachornchit/PHP-Symfony4-Micro-services)
# Microservices with PHP Symfony 4.2
This project is demonstrated on how to develop micro-services application with CRUD method using PHP Symfony 4.2 framework and PHP version 7.2.10, under docker container environment.So, make sure you have installed docker and docker-compose ready on your environment. Then, you can follow the setup guide step by step.
## Technology Stack
* Linux
* Apache
* MySQL
* PHP 7.2, Symfony 4.2
* Docker
* Travis CI## Pre-requires
* Install [Docker](https://www.docker.com/)## Getting started
* Clone the repository
```
git clone https://github.com/Khachornchit/PHP-Symfony4-Micro-services.git
```
* Build the project
```
cd PHP-Symfony4-Micro-services
docker-compose build
docker-compose up -d
```
* Install dependencies
```
docker-compose exec php bash
cd PHP-Symfony4-Micro-services
composer install
php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate
exit
```## phpMyAdmin
* [phpMyAdmin](http://localhost:4033)
## CRUD
```
CREATE
php bin/console user:create
- enter username : [Your name]
- enter password : SamplePassword1234$READ
- php console.php user:readUPDATE
- php bin/console user:updateDELETE
- php bin/console user:delete
```