mediamonks / skeleton-symfony
MediaMonks Symfony Skeleton Project
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 1
Type:project
Requires
- symfony/console: 5.3.*
- symfony/filesystem: 5.3.*
- dev-master
- 10.1.0
- 10.0.5
- 10.0.4
- 10.0.2
- 10.0.1
- 10.0.0
- 9.3.3
- 9.3.2
- 9.3.1
- 9.3.0
- 9.2.4
- 9.2.3
- 9.2.2
- 9.2.1
- 9.2.0
- 9.1.2
- 9.1.1
- 9.1.0
- 9.0.4
- 9.0.3
- 9.0.2
- 9.0.1
- 9.0.0
- 8.0.5
- 8.0.4
- 8.0.3
- 8.0.2
- 8.0.1
- 8.0.0
- 7.0.0
- 6.0.9
- 6.0.8
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- v5.2.17
- v5.2.16
- v5.2.15
- v5.2.14
- v5.2.13
- v5.2.12
- v5.2.11
- v5.2.10
- v5.2.9
- v5.2.8
- v5.2.7
- v5.2.6
- v5.2.5
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- v5.1.10
- v5.1.9
- v5.1.8
- v5.1.7
- v5.1.6
- v5.1.5
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- v4.0.6
- v4.0.5
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.1.0
- v3.0.0
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.0
- v1.0.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.1
- v0.1.0
- dev-feature/symfony-7
- dev-feature/docker-commands-improvements
This package is auto-updated.
Last update: 2024-12-13 11:37:09 UTC
README
Features:
- Symfony 5.4(LTS) and 6.*
- Docker setup, supports php 8.1 and 8.2
- PHPStan
Installation:
composer create-project mediamonks/skeleton-symfony:^10.1 .
Via Docker:
docker run --rm --interactive --tty --user "$(id -u):$(id -g)" --volume $PWD:/app --volume ~/.ssh:/root/.ssh composer create-project mediamonks/skeleton-symfony:^10.1 .
Available commands:
composer analyse
, runs PHPStancomposer security-check
, runs symfony's security checker (via symfony-cli)
Customizing PHP:
You can customize php by adding ini files to tools/docker/php/custom
.
Increasing php memory limit
- Add
memory_limit.ini
totools/docker/php/custom
. - Add the following content:
memory_limit=256M
- Run
docker compose up --build --force-recreate
Increase file upload size
- Add
file_uploads.ini
totools/docker/php/custom
. - Add the following content:
file_uploads=On upload_max_filesize=10M
- Run
docker compose up --build --force-recreate
Recommended packages
- Working with filesystems: https://github.com/thephpleague/flysystem-bundle
- Command bus pattern: https://github.com/thephpleague/tactician-bundle
Xdebug
The php
container is already prepared to run Xdebug.
However, to actually use it, a few manual configurations are required.
PhpStorm setup
- While in
PhpStorm
open the setting (Windows shortcut:Ctrl
+Alt
+S
) - Navigate to
PHP
->Servers
- Click the
+
icon to add a new entry - Fill the Name and the Host with hostname provided for the project (E.g.
example-project.lcl
) - Choose
Xdebug
Debugger - Check Use path mappings
- Map the project symfony folder to
/var/www/source/symfony
- Map the project symfony folder to
Browser setup
- For
Chrome
install the Xdebug helper extension- For other browsers, search for alternatives.
- Once the extension is installed, just simply enable it by setting it to
Debug
.