This document contains information on how to download, install, and start using Symfony.
For a more detailed explanation, see the Installation chapter of the Symfony Documentation.
git clone git@github.com:SanderV1992/Symfony-4.2-skeleton-with-fully-configured-Docker-PHPSTORM-Xdebug-PHPUnit.git my-project
- cd ./docker
- docker build .
- cd ./docker
- docker-compose up
- docker exec -it phpcli7.1_symfony_container /bin/bash
- composer install
- composer require symfony/maker-bundle --dev
- composer require symfony/phpunit-bridge --dev
- composer require symfony/profiler-pack --dev
- composer remove phpunit/phpunit --dev
- composer require --dev phpunit
- copy new file phpunit.xml.dist -> phpunit.xml
- Select:
From Docker, Vagrant, VM, Remote
- Remote:
Docker Compose
- Server:
docker-compose
- Configuration file:
./docker/docker-compose.yml
- Service:
phpcli7.1_symfony_container
- CLI Interpreter:
phpcli7.1_symfony_container
- Path mappings:
/srv/application
- IDE Key:
PHPSTORM
- Host:
localhost
- Port:
9000
- Name:
localhost 8080
- Host:
localhost
- Port:
8080
- Debugger:
Xdebug
- Use path mapping:
yes
File/Directory - Absolute path on the server
./public/index.php - /srv/application/public/index.php
./src - /srv/application/src
Preferences | Languages & Frameworks > PHP > Test Framework (create new configuration to allow PHPSTORM find PHPUnit):
- Interpreter:
phpcli7.1_symfony_container
- CLI Interpreter:
phpcli7.1_symfony_container
- Path mappings:
/srv/application
PHPUnit library:
- PHPUnit library:
Use Composer autoloader
- Path to script:
/srv/application/vendor/autoload.php
Test Runner:
- Default configuration file:
/srv/application/phpunit.xml
- name: `PHP Remote Debugger
Configuration:
- Filter debug connection by IDE key: `yes
- Server:
localhost 8080
- IDE key(seccion id):
PHPSTORM
- name:
Docker Compose
- Server:
docker-compose
- Choose file:
./docker/docker-compose.yml
- cd ./docker
- docker-compose down
- Click Docker Button in PHPSTORM toolbar
- Connect to Docker
- Run all docker container
More details documentation with screenshots, please visit this website: