jul6art / auth-bundle
Symfony auth bundle
v2.2.0
2026-08-18 12:35 UTC
Requires
- php: ^8.5
- doctrine/doctrine-bundle: ^2.13 || ^3.0
- doctrine/orm: ^3.3
- doctrine/persistence: ^3.4 || ^4.0
- jul6art/core-bundle: ^2.0.1
- symfony/config: ^7.4 || ^8.0
- symfony/dependency-injection: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
- symfony/security-core: ^7.4 || ^8.0
- symfony/service-contracts: ^3.5
- symfony/yaml: ^7.4 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.68
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-doctrine: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^13.2
- rector/rector: ^2.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/phpunit-bridge: ^7.4 || ^8.0
- symfony/var-dumper: ^7.4 || ^8.0
README
jul6art/auth-bundle
Symfony auth bundle
Requirements
- php ^8.5
- symfony ^7.4 || ^8.0
- jul6art/core-bundle ^2.0
Installation
composer require jul6art/auth-bundle
Map the bundle entities in your Doctrine configuration:
# config/packages/doctrine.yaml doctrine: orm: mappings: AuthBundle: type: attribute dir: '%kernel.project_dir%/vendor/jul6art/auth-bundle/Entity' prefix: 'Jul6Art\AuthBundle\Entity' is_bundle: false
Usage
The bundle registers its repository and its manager, and aliases both interfaces onto them, so they can be injected directly:
use Jul6Art\AuthBundle\Manager\Interfaces\UserManagerInterface; use Jul6Art\AuthBundle\Repository\Interfaces\UserRepositoryInterface; public function __construct( private UserManagerInterface $userManager, private UserRepositoryInterface $userRepository, ) { }
UserRepository implements PasswordUpgraderInterface, so it can be wired as the
password upgrader of your firewall.
Configuration
# config/packages/auth.yaml auth: enabled: true
The option is exposed as the auth.enabled container parameter.
Quality assurance
composer qa # coding standards, Rector, static analysis and tests composer test # PHPUnit composer phpstan # PHPStan, level max composer cs # PHP-CS-Fixer, writes the fixes composer rector # Rector, writes the fixes
License
The Auth Bundle is open-sourced software licensed under the MIT license.
© 2026 jul6art
