linio / common-symfony
Common library for Linio Symfony projects
Installs: 14 100
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 58
Forks: 0
Open Issues: 2
Requires
- php: >=7.1
- symfony/form: ^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0
- symfony/framework-bundle: ^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0
- symfony/routing: ^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0
- symfony/security-core: ^2.8 || ^3.0 || ^4.0 || ^5.0 || ^6.0
- symfony/templating: ^3.2 || ^5.0 || ^6.0
- twig/twig: ^2.0 || ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.4
- phpunit/phpunit: ^6.0 || ^7.0 || ^8.0
This package is auto-updated.
Last update: 2024-10-22 21:40:42 UTC
README
Linio's Symfony Common library contains small components that either extend Symfony's functionality or provide a coherent base for Linio's symfony projects:
- Service traits
- Controller helper methods
Install
The recommended way to install Linio Common Symfony is through composer.
$ composer require linio/common-symfony
Tests
To run the test suite, you need install the dependencies via composer, then run PHPUnit.
$ composer install
$ vendor/bin/phpunit
Service Traits
The common library includes service traits, so you can easily inject dependencies and make use of services in your controllers. There are various controller-specific traits available:
AuthorizationAware
: allows you to use thesymfony/security
component and provides helpersFlashMessageAware
: allows you to use thesymfony/http-foundation-session
component and provides flash message helpersFormAware
: allows you to use thesymfony/form
component and provides helpersRouterAware
: allows you to use thesymfony/routing
component and provides helpersSessionAware
: allows you to use thesymfony/http-foundation/session
component and provides helpersTemplatingAware
: allows you to use thesymfony/templating
component and provides helpersTwigAware
: allows you to use theTwig\Environment
component and provides helpers