PHPackages                             alyamovsky/symfony-docker-skeleton - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. alyamovsky/symfony-docker-skeleton

ActiveTemplate[Templating &amp; Views](/categories/templating)

alyamovsky/symfony-docker-skeleton
==================================

A project template for Symfony application running inside of Docker containers for convenient development.

3.2.0(1y ago)7332MITMakefile

Since May 2Pushed 1y ago3 watchersCompare

[ Source](https://github.com/alyamovsky/symfony-docker-skeleton)[ Packagist](https://packagist.org/packages/alyamovsky/symfony-docker-skeleton)[ Docs](https://github.com/alyamovsky/symfony-docker-skeleton)[ RSS](/packages/alyamovsky-symfony-docker-skeleton/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (21)Used By (0)

Symfony w/ Docker config
========================

[](#symfony-w-docker-config)

[![Latest Stable Version](https://camo.githubusercontent.com/942a9d3865c0753639f2d97dd27c4d63d1a1a3e6d20fea031d1b217c49b28042/68747470733a2f2f706f7365722e707567782e6f72672f616c79616d6f76736b792f73796d666f6e792d646f636b65722d736b656c65746f6e2f76657273696f6e2e737667)](https://packagist.org/packages/alyamovsky/symfony-docker-skeleton)

A project template in the following configuration:

1. Latest stable Symfony framework (6.4 at the moment), with the ability to specify the version
2. PHP 8.3
3. PostgreSQL 16.3 (can be altered in the docker compose file) ?
4. Separate Docker containers for Nginx, FPM, CLI and a database
5. CS-Fixer and Psalm on board

The concept
===========

[](#the-concept)

1. The application and docker files are located on the same level: in the `/app` and `/docker` folders, respectively. This allows you to separate the symphony-application and docker environment variables, and to implement the mono repository pattern by adding new folders if necessary: `/centrifugo`, `s3-storage`, etc.
2. The `compose.override.yaml` is ignored by default, so you can add your own settings without worrying about overwriting the original ones.

Quick Start
===========

[](#quick-start)

One-liner to create a new project: `composer create-project alyamovsky/symfony-docker-skeleton local_project_path && make setup-configs && make init OPTIONS="webapp" && make up`

Split into steps:

1. `sudo docker run --rm -v $(pwd):/app composer:lts create-project alyamovsky/symfony-docker-skeleton local_project_path` (you can also use the `composer` command from the host machine)
2. `make setup-configs` - create .env files for docker containers
3. `make init OPTIONS="webapp"` - very important! Run it before making any commits to your repo. You can omit the `OPTIONS` parameter if you don't need to use the webapp.
4. `make up` - start docker containers

Default ports are random (47001-47999) for every created project, so click the link generated in CLI with the output of `make up` command and enjoy!

You also can set desired ports for Nginx and PostgreSQL manually in generated /.env file (don't forget to run `make restart` afterwards).

Flags
=====

[](#flags)

When running make init, you can use these flags:

- `OPTIONS="webapp"`: Includes [web application](https://symfony.com/doc/current/setup.html#creating-symfony-applications) features. Omit for the basic `symfony/skeleton` setup.
- `VERSION=X.Y`: Specifies Symfony version. Defaults to the latest stable version, which is 6.4 at the moment.

Examples:

```
make init OPTIONS="webapp"
make init VERSION=7.2
make init OPTIONS="webapp" VERSION=7.2

```

Configuring Xdebug settings for PhpStorm IDE
--------------------------------------------

[](#configuring-xdebug-settings-for-phpstorm-ide)

To integrate Xdebug with PhpStorm within a created project you need to do the following:

1. Create a PHP interpreter in the `Settings -> Languages & Frameworks -> PHP` tab from the php-fpm container in the project; make sure that Xdebug works properly in the container.
2. Type the port number `9009` at the menu `Settings -> Languages & Frameworks -> PHP -> Debug -> Xdebug -> Debug`.
3. Create a server named `Docker` in the menu `Settings -> Languages & Frameworks -> PHP -> Servers` (it matches with the value of the `ServerName` field in the IDE config for both interpreters).
4. If necessary, make proper mappings in the PHP interpreter `Settings -> Languages & Frameworks -> PHP -> Path Mappings`,
5. Click the button `Listen for PHP debug connections`; if you have any questions, please read the [documentation](https://www.jetbrains.com/help/phpstorm/debugging-with-phpstorm-ultimate-guide.html).

Useful makefile commands
========================

[](#useful-makefile-commands)

1. `make console` - default shell is zsh with preinstalled set of [plugins](https://github.com/alyamovsky/symfony-docker-website-skeleton/blob/main/docker/configs/dev/php-cli/.zshrc)
2. `make test` - PHPUnit tests
3. `make cs` - PHP CS-fixer with predefined [rule sets](https://github.com/alyamovsky/symfony-docker-website-skeleton/blob/main/app/.php_cs.dist)
4. `make psalm` - Psalm (default level is 1)

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~70 days

Recently: every ~155 days

Total

19

Last Release

520d ago

Major Versions

1.3.0 → 2.0.02022-05-14

2.1.2 → 3.0.02024-05-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/e77935f53e64963730327a286cac366da67f5212a83d1b1abc4eed5862d09f61?d=identicon)[alyamovsky](/maintainers/alyamovsky)

---

Top Contributors

[![alyamovsky](https://avatars.githubusercontent.com/u/23259219?v=4)](https://github.com/alyamovsky "alyamovsky (52 commits)")

---

Tags

template

### Embed Badge

![Health badge](/badges/alyamovsky-symfony-docker-skeleton/health.svg)

```
[![Health](https://phpackages.com/badges/alyamovsky-symfony-docker-skeleton/health.svg)](https://phpackages.com/packages/alyamovsky-symfony-docker-skeleton)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k33.5M157](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

418133.6M38](/packages/rize-uri-template)[mopa/bootstrap-sandbox-bundle

Seperate live docs from code

256.8k](/packages/mopa-bootstrap-sandbox-bundle)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
