PHPackages                             fastfony/identity-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. fastfony/identity-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

fastfony/identity-bundle
========================

Symfony bundle focused on identification and the management of users, roles and groups

v1.0.1(3mo ago)0313↓50%MITPHPPHP &gt;=8.1

Since Feb 6Pushed 3mo agoCompare

[ Source](https://github.com/fastfony/identity-bundle)[ Packagist](https://packagist.org/packages/fastfony/identity-bundle)[ RSS](/packages/fastfony-identity-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (21)Versions (3)Used By (0)

FastfonyIdentityBundle
======================

[](#fastfonyidentitybundle)

A Symfony bundle focused on identification and the management of users, roles and groups.

Features
--------

[](#features)

- 👤 **User Management**: Complete user entity with email authentication
- 🆔 **User Access**: Login with form or magic login link
- ⏳ **Account Activation**: Optional email verification for new users
- 🔄 **Password Management**: Secure password hashing and reset functionality
- 📧 **Email Integration**: Built-in email templates for login links and password resets
- 🕒 **Last Login Tracking**: Automatically updates last login timestamp
- 🔐 **Role-Based Access Control**: Flexible role system with many-to-many relationships
- 👥 **Group Support**: Organize users into groups with inherited roles
- 🔒 **Security Integration**: Full integration with Symfony Security component
- 📊 **Doctrine ORM**: Ready-to-use entities with Doctrine annotations
- ⚙️ **Configurable**: Easy configuration through YAML files

Installation
------------

[](#installation)

Install the bundle via Composer:

```
composer require fastfony/identity-bundle
```

This will automatically install the required dependencies including:

- `stof/doctrine-extensions-bundle` for automatic timestamp management
- `symfony/mailer symfony/notifier symfony/twig-bundle twig/extra-bundle twig/cssinliner-extra twig/inky-extra` for email functionalities
- `symfony/rate-limiter` for login throttling
- `symfony/translation` for translations
- `symfony/uid` for unique identifiers (in the reset functionality)
- `symfony/form` for register, login and password request form view and handling

Configuration
-------------

[](#configuration)

### 1. Enable the Bundle

[](#1-enable-the-bundle)

If you're using Symfony Flex, the bundle will be automatically enabled. Otherwise, add it to `config/bundles.php`:

```
return [
    // ...
    Fastfony\IdentityBundle\FastfonyIdentityBundle::class => ['all' => true],
    Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle::class => ['all' => true],
];
```

### 2. Configuration (if you didn't use Flex)

[](#2-configuration-if-you-didnt-use-flex)

If you're using Symfony Flex, the configuration file will be created automatically. Otherwise, manually do it:

Create or edit Doctrine Extensions config file in `config/packages/stof_doctrine_extensions.yaml`:

```
stof_doctrine_extensions:
    default_locale: en_US
    orm:
        default:
            timestampable: true
```

Edit security settings in `config/packages/security.yaml` for add the firewall, an user provider and a new access control rule:

```
security:
    # ...
    providers:
        # ...
        fastfony_identity_user_provider:
            entity:
                class: Fastfony\IdentityBundle\Entity\Identity\User
                property: email

    # ...
    firewalls:
        dev:
            # ...
        fastfony_identity:
            lazy: true
            provider: fastfony_identity_user_provider
            user_checker: Fastfony\IdentityBundle\Security\UserChecker
            form_login:
                login_path: form_login
                check_path: form_login
                enable_csrf: true
                csrf_token_id: login
                form_only: true
            login_link:
                check_route: login_check
                signature_properties: [ id, email ]
                max_uses: 3
            entry_point: Fastfony\IdentityBundle\Security\CustomEntryPoint
            remember_me:
                always_remember_me: true
                signature_properties: [ 'id', 'email', 'password' ]
            switch_user: true
            login_throttling:
                max_attempts: 3
            logout:
                path: /logout
                clear_site_data:
                    - cookies
                    - storage
        # ... (here your other firewalls)

    access_control:
        # ...
        - { path: ^/secure-area/, roles: ROLE_USER } # Adjust as needed
```

Import the bundle routing in `config/routes/fastfony_identity.yaml`:

```
fastfony_identity:
    resource: "@FastfonyIdentityBundle/config/routes/all.yaml"
```

Configure the default sender email address in `config/packages/mailer.yaml`:

```
framework:
    mailer:
        dsn: '%env(MAILER_DSN)%'
        envelope:
            sender: 'noreply@your-website.com'
```

(don't forget to set the `MAILER_DSN` environment variable in your `.env` file, more info [here](https://symfony.com/doc/current/mailer.html#transport-setup))

### 3. Create Database Schema

[](#3-create-database-schema)

#### Option 1 - With migrations (recommended):

[](#option-1---with-migrations-recommended)

Generate and run migrations to create the database tables:

```
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate
```

#### Option 2 - Without migrations:

[](#option-2---without-migrations)

Alternatively, you can create the schema directly:

```
php bin/console doctrine:schema:update --force
```

**It's done!** 🥳 You can now start using the bundle.

More detailed usage instructions and customizations can be found in the [Documentation](docs/index.md).

License
-------

[](#license)

This bundle is released under the MIT License. See the [LICENSE](LICENSE) file for details.

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

Support
-------

[](#support)

For issues, questions, or contributions, please visit the [GitHub repository](https://github.com/fastfony/identity-bundle).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance81

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

101d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7883b2c582d55dda0ef0c937bd91940105d128c102b0bcaf47879e257a9b7159?d=identicon)[neothone](/maintainers/neothone)

---

Top Contributors

[![neothone](https://avatars.githubusercontent.com/u/13251143?v=4)](https://github.com/neothone "neothone (17 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (13 commits)")

---

Tags

symfonybundleAuthenticationuseridentitygrouprole

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fastfony-identity-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fastfony-identity-bundle/health.svg)](https://phpackages.com/packages/fastfony-identity-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
