jul6art/auth-bundle

Symfony auth bundle

Maintainers

Package info

github.com/jul6art/auth-bundle

Type:symfony-bundle

pkg:composer/jul6art/auth-bundle

Transparency log

Statistics

Installs: 56

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

v2.2.0 2026-08-18 12:35 UTC

This package is auto-updated.

Last update: 2026-08-19 17:01:53 UTC


README

logo dev in the hood

License Version

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