strangebuzz / microsymfony
A template to initialize an application to use Symfony as a micro-framework
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-application-template
Requires
- php: >=8.1
- ext-ctype: *
- ext-iconv: *
- ext-simplexml: *
- ext-xml: *
- league/commonmark: ^2.3
- symfony/asset: 6.3.*
- symfony/asset-mapper: 6.3.*
- symfony/console: 6.3.*
- symfony/dotenv: 6.3.*
- symfony/flex: ^2
- symfony/form: 6.3.*
- symfony/framework-bundle: 6.3.*
- symfony/intl: 6.3.*
- symfony/monolog-bundle: ^3.8
- symfony/runtime: 6.3.*
- symfony/stimulus-bundle: ^2.9
- symfony/twig-bundle: 6.3.*
- symfony/validator: 6.3.*
- symfony/web-link: 6.3.*
- symfony/yaml: 6.3.*
- twig/extra-bundle: ^2.12 || ^3.0
- twig/markdown-extra: ^3.5
- twig/twig: ^2.12 || ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
- phpstan/extension-installer: ^1.2
- phpstan/phpstan-symfony: ^1.2
- phpunit/phpunit: ^9.0
- symfony/browser-kit: 6.3.*
- symfony/css-selector: 6.3.*
- symfony/phpunit-bridge: ^6.3
Conflicts
README
MicroSymfony is a Symfony application skeleton on steroids, ready to use.
I have made a long blog post explaining all it contains, this will be the reference for documentation, and I'll update it when needed:
So this blog post is the official documentation. This readme is a teaser of what MicroSymfony contains.
Demo 🌈
Because a live demo is always better than all explanations. Here is it:
- Live demo at https://microsymfony.ovh
Requirements ⚙
- PHP 8.1 (works with PHP 8.2)
- The Symfony CLI
- The Xdebug PHP extension if you want to run the code coverage report (optional)
- Castor 0.8 task runner (optional)
Stack 🔗
- Symfony 6.3
- Twig 3
- Stimulus 3.2
- PHPUnit 9.5
- The classless BareCSS CSS framework
Features 🚀
MicroSymfony ships these features, ready to use:
- Two task runner
- Static analysis with PHPStan
- Coding standards with php-cs-fixer
- Tests (demo)
- Code coverage at 100%
- GitHub CI (actions)
- Asset mapper+Stimulus (documentation)
- A custom error template
Other good practices 👌
- Using strict types in all PHP files (source)
- Using the ADR pattern in an action controller (source) (doc)
What it doesn't ship? ❌
- The debug toolbar (installation)
- Doctrine (installation)