File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1+ Basic Symfony Flex Project With Docker + PHPUnit + PHPCS
2+ --------------------------------------------------------
3+
4+ Basic skeleton containing just a ` /_healthcheck ` endpoint, and including:
5+ - Dockerized startup (with PHP-FPM + nginx, check ` /docker ` folder and the ` README.md ` in there).
6+ - PHPUnit (run ` bin/phpunit ` to pass the unit and functional tests).
7+ - PHPCS (symlink to ` /vendor/bin/phpcs ` , run ` bin/phpcs ` to run a code sniffer based on PSR2 standard).
8+
9+ ## Requirements
10+ - Docker
11+
12+ ## Installation
13+ 1 ) On the root folder, run: ` docker-compose up -d ` and wait for all required packages to install.
14+ 2 ) Get into the machine (` docker exec -ti mylocalproject-php-fpm bash ` ) and run a ` composer install ` from inside
15+ 3 ) Go to [ localhost:8000/_ healthcheck] ( http://localhost:8000/_healthcheck ) , where you should be able to see this output:
16+ ``` json
17+ {
18+ "status" : " i am ok"
19+ }
20+ ```
21+
22+ Now, it is completely up to you how do you want your project to grow :)
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ PHP-FPM + Nginx basic Docker container
44This is a slightly tuned,basic subset
55of what is generated by [ PHPDockerIO] ( https://phpdocker.io ) , to have a minimal docker development environment.
66
7- ## How to run it
7+ ## Installation
88On the root of the project, simply type:
99` docker-compose up -d ` and it will spin up a daemon running this server on localhost, port 8000.
You can’t perform that action at this time.
0 commit comments