44<h3 align =" center " >kickoff-docker-php</h3 >
55<p align =" center " >A complete stack for your PHP project powered by Docker</p >
66<p align =" center " >
7- <a href="https://github.com/thecodingmachine/kickoff-docker-php/tree/v2.1.1 "><img src="https://img.shields.io/badge/stable-v2.1.1 -green.svg" alt="Stable release: v2.1.1 "></a>
7+ <a href="https://github.com/thecodingmachine/kickoff-docker-php/tree/v2.2.0 "><img src="https://img.shields.io/badge/stable-v2.2.0 -green.svg" alt="Stable release: v2.2.0 "></a>
88 <a href="https://github.com/thecodingmachine/kickoff-docker-php/tree/master"><img src="https://img.shields.io/badge/unstable-master-orange.svg" alt="Unstable release: master"></a>
99 <a href="https://travis-ci.org/thecodingmachine/kickoff-docker-php"><img src="https://img.shields.io/travis/thecodingmachine/kickoff-docker-php.svg?label=Travis+CI" alt="Travis CI"></a>
1010</p >
@@ -36,7 +36,7 @@ following goals in mind:
3636## Features
3737
3838* ** Cross-platform:** Windows, Mac, Linux
39- * ** A complete stack:** NGINX, PHP-FPM 7.1, MySQL 5.7, phpMyAdmin, Redis, RabbitMQ and more to come!
39+ * ** A complete stack:** NGINX, PHP-FPM 7.1, MySQL 5.7, phpMyAdmin, Redis, RabbitMQ
4040* ** Centralized logging** with Graylog
4141* Automatic ** HTTPS** on your local environment
4242* A powerful ** reverse-proxy** ([ Traefik] ( https://traefik.io/ ) ) which can handle automatic HTTPS (via [ Let's Encrypt] ( https://letsencrypt.org/ ) )
@@ -244,6 +244,8 @@ NGINX is the web server of your PHP application.
244244The NGINX configuration located at ` modules/nginx/conf.d/php-fpm.conf ` provides good security defaults. Still, you might
245245have to update it according to the PHP framework you wish to use.
246246
247+ Example for a Symfony application: https://gist.github.com/gulien/64d8c94c5d0e294ac121ea810794757e .
248+
247249### PHP-FPM
248250
249251The PHP-FPM container has many roles. First, it handles requests from the NGINX container to execute your PHP files.
@@ -259,6 +261,12 @@ zip and more!
259261
260262You are able to find all installed PHP extensions by running ` php -m ` inside your workspace.
261263
264+ #### Xdebug
265+
266+ Xdebug is a tool for easily debugging your PHP code. We provided simple variables in your ` .env ` file as described below.
267+
268+ Example with PhpStorm: https://gist.github.com/gulien/d0933d8f90587a95cec5fd750da41b87 .
269+
262270#### Available tools
263271
264272* Composer* - https://getcomposer.org/
@@ -284,10 +292,12 @@ as defined in the PSR-1 and PSR-2 documents and many more.
284292
285293#### Configuration
286294
287- | Variable | Location | Description |
288- | ----------------------| ---------------| ------------------------------------------------------------|
289- | PHP_MEMORY_LIMIT | ` config/.env ` | Defines the PHP memory limit of the PHP-FPM container. |
290- | PHP_FPM_MEMORY_LIMIT | ` config/.env ` | Defines the PHP-FPM memory limit of the PHP-FPM container. |
295+ | Variable | Location | Description |
296+ | ----------------------| ---------------| ---------------------------------------------------------------------|
297+ | PHP_MEMORY_LIMIT | ` config/.env ` | Defines the PHP memory limit of the PHP-FPM container. |
298+ | PHP_FPM_MEMORY_LIMIT | ` config/.env ` | Defines the PHP-FPM memory limit of the PHP-FPM container. |
299+ | XDEBUG_ENABLED | ` config/.env ` | If true, enables Xdebug. |
300+ | XDEBUG_REMOTE_HOST | ` config/.env ` | If Xdebug is enabled, set this variable with your local IP address. |
291301
292302### MySQL
293303
@@ -323,7 +333,7 @@ This should be used only in others environments.
323333
324334### Redis
325335
326- Redis is the database cache of this stack and it has been configured as the default session handler for PHP .
336+ Redis is the cache store of this stack.
327337
328338The hostname of Redis in your PHP-FPM container is ` redis ` . To configure Redis to be the cache handler of
329339your PHP application, you should refer to the documentation provided by your PHP framework.
0 commit comments