jmlebonniec / docker-image-phpqa-behat-sf
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.1.3
- ext-ctype: *
- ext-iconv: *
- doctrine/doctrine-migrations-bundle: ^2.1
- sensio/framework-extra-bundle: ^5.1
- sensiolabs/security-checker: ^6.0
- symfony/asset: 4.3.*
- symfony/console: 4.3.*
- symfony/dotenv: 4.3.*
- symfony/expression-language: 4.3.*
- symfony/flex: ^1.3.1
- symfony/form: 4.3.*
- symfony/framework-bundle: 4.3.*
- symfony/http-client: 4.3.*
- symfony/intl: 4.3.*
- symfony/monolog-bundle: ^3.1
- symfony/orm-pack: *
- symfony/process: 4.3.*
- symfony/security-bundle: 4.3.*
- symfony/serializer-pack: *
- symfony/swiftmailer-bundle: ^3.1
- symfony/translation: 4.3.*
- symfony/twig-bundle: 4.3.*
- symfony/validator: 4.3.*
- symfony/web-link: 4.3.*
- symfony/yaml: 4.3.*
Requires (Dev)
- behat/behat: ^3.5
- behat/mink: dev-master
- behat/mink-browserkit-driver: ^1.3
- behat/mink-extension: ^2.3
- behat/mink-goutte-driver: ^1.2
- behat/mink-selenium2-driver: ^1.3
- behatch/contexts: ^3.2
- doctrine/doctrine-fixtures-bundle: ^3.3
- edgedesign/phpqa: dev-master
- friends-of-behat/symfony-extension: ^2.0
- friendsofphp/php-cs-fixer: 2.15
- nette/neon: ^3.1
- phpstan/phpstan: ^0.12
- phpstan/phpstan-beberlei-assert: ^0.12.0
- phpstan/phpstan-doctrine: ^0.12.9
- phpstan/phpstan-phpunit: ^0.12.6
- phpstan/phpstan-symfony: ^0.12.0
- phpunit/phpunit: ^9.0
- symfony/debug-pack: *
- symfony/maker-bundle: ^1.0
- symfony/profiler-pack: *
- symfony/test-pack: *
- symfony/web-server-bundle: 4.3.*
Conflicts
This package is auto-updated.
Last update: 2025-03-12 00:19:18 UTC
README
This repository contains a set of developer-friendly, general purpose PHP images for Docker.
You can enable or disable the extensions using environment variables. You can also modify the php.ini settings using environment variables. 2 types available: slim (no extensions preloaded) or fat (most common PHP extensions are built-in) 3 variants available:## How to install the project CLI, apache and fpm Fat images are bundled with Supercronic which is a Cron compatible task runner. Cron jobs can be configured using environment variables Fat images come with Composer and Prestissimo installed All variants can be installed with or without NodeJS (if you need to build your static assets). Everything is done to limit file permission issues that often arise when using Docker. The image is actively tested on Linux, Windows and MacOS
Each image come with:
- phpqa library: for using coding standard,
- behat (goutte and selenium): for the no regression of your code,
- mailer server: a server where your email would be catch in development environment
Images
Name | PHP | Symfony |
---|---|---|
[jmlebonniec/docker-image-phpqa-behat-sf] | 7.3 | 4.3 |
How to install the project
First install docker and docker-compose
For docker: follow the install instruction here: https://docs.docker.com/install/linux/docker-ce/ubuntu/ For docker-compose: follow the install instruction here: https://docs.docker.com/compose/install/
After install source project
composer create-project jmlebonniec/docker-image-phpqa-behat-sf your-project-name
Add in your host the host:
127.0.0.1 {your-name-project}.local
127.0.0.1 mailer.{your-name-project}.local
127.0.0.1 mariadb.{your-name-project}.local
In the project folder, copy .env.template to .env
Be attentive to replace correctly {your-name-project} with your project name!!!
Replace sfdocker terms with your own reference (project name for example) in the docker-compose.yml
composer install
You can start docker with command
docker-compose up -d
How to use phpqa
phpqa (PHP Quality Assurance) PHP quality checking tools, to allow you to code to a particular standard and easily spot errors and violations.
After your development launch the command cli:
composer phpqa
How to use behat
For testing the no-regression of your development, use the cli command:
behat
How to use the mailer server
Go to the url: http://mailer.{your-name-project}.local/ and see the mailer interface, every mail send from your site find here