{"id":21250350,"url":"https://github.com/jsunier/php-symfony-test","last_synced_at":"2026-04-16T07:31:36.405Z","repository":{"id":90832454,"uuid":"144628087","full_name":"jsunier/php-symfony-test","owner":"jsunier","description":"Docker image to run PHPUnit with Symfony","archived":false,"fork":false,"pushed_at":"2021-12-07T07:12:20.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T20:32:16.949Z","etag":null,"topics":["docker","php","php7","phpunit","symfony"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsunier.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-13T20:04:48.000Z","updated_at":"2021-12-07T07:12:23.000Z","dependencies_parsed_at":"2023-04-25T03:19:16.504Z","dependency_job_id":null,"html_url":"https://github.com/jsunier/php-symfony-test","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsunier%2Fphp-symfony-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsunier%2Fphp-symfony-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsunier%2Fphp-symfony-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsunier%2Fphp-symfony-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsunier","download_url":"https://codeload.github.com/jsunier/php-symfony-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685590,"owners_count":20330983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","php","php7","phpunit","symfony"],"created_at":"2024-11-21T03:17:59.728Z","updated_at":"2026-04-16T07:31:31.384Z","avatar_url":"https://github.com/jsunier.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsunier/php-symfony-test\n\nDocker image to run PHPUnit with Symfony 3.x/4.x/5.x on PHP `7.1`/`7.2`/`7.3`/`7.4`/`8.0`.\n\nDocker container allowing you to build and test your PHP projects.\n\n## Supported tags and respective `Dockerfile` links\n\n- `php8.0-mysql`, `php8.0-mariadb`, `latest`, `latest-mysql` ([php8.0/mysql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php8.0/mysql/Dockerfile))\n- `php7.4-mysql`, `php7.4-mariadb` ([php7.4/mysql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.4/mysql/Dockerfile))\n- `php7.3-mysql`, `php7.3-mariadb` ([php7.3/mysql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.3/mysql/Dockerfile))\n- `php7.2-mysql`, `php7.2-mariadb` ([php7.2/mysql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.2/mysql/Dockerfile))\n- `php7.1-mysql`, `php7.1-mariadb` ([php7.1/mysql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.1/mysql/Dockerfile))\n- `php7.4-postgresql`, `latest-postgresql` ([php7.3/postgresql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.3/postgresql/Dockerfile))\n- `php7.3-postgresql` ([php7.3/postgresql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.3/postgresql/Dockerfile))\n- `php7.2-postgresql` ([php7.2/postgresql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.2/postgresql/Dockerfile))\n- `php7.1-postgresql` ([php7.1/postgresql/Dockerfile](https://github.com/jsunier/php-symfony-test/blob/master/php7.1/postgresql/Dockerfile))\n\nThis image is published on the [Docker Hub](https://hub.docker.com) at this address : https://hub.docker.com/r/jsunier/php-symfony-test.\n\nAll the dockerfiles are available on [Github](https://github.com/jsunier/php-symfony-test).\n\nThis image contains multiple versions available for testing your code with PHPUnit and Symfony.\n\n# Usage\n\n## Informations\n\nFor now, there is only two available database adapters for the available PHP versions:\n\n* PostgreSQL\n* MySQL/MariaDB\n\nEvery images include the latest version of [composer](https://getcomposer.org) installed at `/usr/bin/composer` and the latest version of the [Symfony CLI](https://symfony.com/download) installed at `/usr/local/bin/symfony`.\n\nList of PHP extensions installed:\n\n| Extension / PHP version                                                                          | 7.1 | 7.2 | 7.3 | 7.4 | 8.0 |\n| ------------------------------------------------------------------------------------------------ | --- | --- | --- | --- | --- |\n| `mbstring`                                                                                       | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `zip`                                                                                            | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `iconv`                                                                                          | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `opcache`                                                                                        | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `bcmath`                                                                                         | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `pdo_mysql` (mysql/mariadb) / `pdo_pgsql` (postgresql)                                           | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `pdo`                                                                                            | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `imagick`                                                                                        | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `sockets`                                                                                        | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `xdebug` (2.6.1 for PHP 7.1 and 7.2 / 2.7.1 for PHP 7.3 / 2.9.0 for PHP 7.4 / 3.0.4 for PHP 8.0) | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `gd`                                                                                             | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `soap`                                                                                           | ✅   | ✅   | ✅   | ✅   | ✅   |\n| `mcrypt`                                                                                         | ❌   | ❌   | ❌   | ❌   | ❌   |\n| `oci8`                                                                                           | ❌   | ❌   | ❌   | ❌   | ❌   |\n| `redis`                                                                                          | ✅   | ✅   | ✅   | ✅   | ✅   |\n\n## Examples\n\n### Docker run\n\n```\n$ docker run -it -v $(pwd):/app jsunier/php-symfony-test:php7.4-mysql /bin/bash\n```\n\n# Default configurations\n\nDefault value in Dockerfile's directives:\n\n| Directive | Value                    |\n| --------- | ------------------------ |\n| `WORKDIR` | `/app`                   |\n| `VOLUME`  | `[ \"/app\" ]`             |\n| `CMD`     | `[ \"/app/bin/console\" ]` |\n\n### Architectures available\n\nImages are compiled for these architectures:\n\n* `amd64`\n\n# Build\n\nThere is a `Makefile` available to simplify the creation of theses images.\n\nYou can change the values inside this file to set your custom repository, folders, tags, etc.\n\n\u003e You need to have `make` installed (`sudo apt install make`)\n\n## Pull all latest source images\n\n```\n$ make pull-php\n```\n\n## All at once\n\n```\n$ make all\n```\n\n### Build all (mysql/postgresql)\n\n```\n$ make build\n```\n\n### Build images with MySQL/MariaDB support\n\n```\n$ make build-mysql\n$ make push-mysql\n```\n\n### Build images with PostgreSQL support\n\n```\n$ make build-postgresql\n$ make push-postgresql\n```\n\n## Specific container\n\nTo build these images, just go into the folder of you choice and run `docker build . -t \u003cyour-image-name:your-tag\u003e`.\n\nExample:\n```\n# cd php8.0/mysql\n# docker build . -t my-awesome-phpunit-image\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsunier%2Fphp-symfony-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsunier%2Fphp-symfony-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsunier%2Fphp-symfony-test/lists"}