PHPackages                             serendipity\_hq/bundle-users - 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. serendipity\_hq/bundle-users

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

serendipity\_hq/bundle-users
============================

A Symfony bundle that helps manage users in a Symfony app.

0.2.7(2mo ago)3242.3k↑35.3%[12 issues](https://github.com/Aerendir/bundle-users/issues)MITPHPPHP ^8.2CI passing

Since Mar 2Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/Aerendir/bundle-users)[ Packagist](https://packagist.org/packages/serendipity_hq/bundle-users)[ Docs](https://github.com/Aerendir/bundle-users)[ RSS](/packages/serendipity-hq-bundle-users/feed)WikiDiscussions master Synced 1mo ago

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

 [ ![](https://camo.githubusercontent.com/5041251627a7ec1bf9335a20531d818d198f5315fc6e12d88c4694c9dcfd5bc7/687474703a2f2f7777772e736572656e64697069747968712e636f6d2f6173736574732f6f70656e2d736f757263652d70726f6a656374732f4c6f676f2d536572656e64697069747948512d49636f6e2d546578742d507572706c652e706e67) ](http://www.serendipityhq.com)

Serendipity HQ Users Bundle
===========================

[](#serendipity-hq-users-bundle)

Helps managing users in Symfony apps.

 [![](https://camo.githubusercontent.com/06e6ca38e87df9b016e2976b566748c6b33396c4bbeb3041f9b08cc414ebaed7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736572656e6469706974795f68712f62756e646c652d75736572732e7376673f7374796c653d666c61742d737175617265)](https://github.com/Aerendir/bundle-users/releases) [![](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://opensource.org/licenses/MIT) [![](https://camo.githubusercontent.com/a0342e292be613643049925ad9c7f145ad6b47adcd2a6df8d53d2e155641c477/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736572656e6469706974795f68712f62756e646c652d75736572733f636f6c6f723d253233383839324246267374796c653d666c61742d737175617265266c6f676f3d706870)](https://github.com/Aerendir/bundle-users/releases) [![](https://camo.githubusercontent.com/1e495ed0840c8fd5f7cc8d13e648bb5fdd093f2d105c3fd13137dc16e2d220cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322d3838393242463f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit) [![](https://camo.githubusercontent.com/8777468d1bcb449659ff9bbd393000c54f09c75d51434897a39526f2a760bf11/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332d3838393242463f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit) [![](https://camo.githubusercontent.com/e8697d7d6c078ffb221e9df751b5d2c3e157f7d6bb9ebc162d8b4a3cb1f4e74c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342d3838393242463f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit) [![](https://camo.githubusercontent.com/02e3192270b8e7f0d675a71a34a4afb2be46db03504fdcb2bb397059b9956acf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e352d3838393242463f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit)

 Supports: [![](https://camo.githubusercontent.com/9eef96f7128a21b529c3990c650f6f2041389c5da1eaee87497ee34d30813d24/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545362e342d3333333f7374796c653d666c61742d737175617265266c6f676f3d73796d666f6e79 "Supports Symfony ^6.4")](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit "Supports Symfony ^6.4") [![](https://camo.githubusercontent.com/1a9c384f3add7720776a98c04e69e303f8e0bfda2cb9192b0a98c540ce33abf1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545372e342d3333333f7374796c653d666c61742d737175617265266c6f676f3d73796d666f6e79 "Supports Symfony ^7.4")](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit "Supports Symfony ^7.4") [![](https://camo.githubusercontent.com/efd0242bc44dcddb75c8d8936ab0456de2510bcb726f910e3a0ba14722ee0761/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545382e302d3333333f7374796c653d666c61742d737175617265266c6f676f3d73796d666f6e79 "Supports Symfony ^8.0")](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit "Supports Symfony ^8.0")

 Tested with: [![](https://camo.githubusercontent.com/9eef96f7128a21b529c3990c650f6f2041389c5da1eaee87497ee34d30813d24/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545362e342d3333333f7374796c653d666c61742d737175617265266c6f676f3d73796d666f6e79 "Tested with Symfony ^6.4")](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit "Tested with Symfony ^6.4") [![](https://camo.githubusercontent.com/1a9c384f3add7720776a98c04e69e303f8e0bfda2cb9192b0a98c540ce33abf1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545372e342d3333333f7374796c653d666c61742d737175617265266c6f676f3d73796d666f6e79 "Tested with Symfony ^7.4")](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit "Tested with Symfony ^7.4") [![](https://camo.githubusercontent.com/efd0242bc44dcddb75c8d8936ab0456de2510bcb726f910e3a0ba14722ee0761/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d253545382e302d3333333f7374796c653d666c61742d737175617265266c6f676f3d73796d666f6e79 "Tested with Symfony ^8.0")](https://github.com/Aerendir/bundle-users/actions?query=workflow%3APHPunit "Tested with Symfony ^8.0")

Current Status
--------------

[](#current-status)

[![Coverage](https://camo.githubusercontent.com/b8f40a055e63cdf53f74e2e3c25f9e8260aaa869e61158547999c08c3e7a9b87/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f62756e646c652d7573657273266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=Aerendir_bundle-users)[![Maintainability Rating](https://camo.githubusercontent.com/c247fa6a4c72d4690e4f87ba9cea141346e3b474d67c1a7408640977e463b6c7/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f62756e646c652d7573657273266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=Aerendir_bundle-users)[![Quality Gate Status](https://camo.githubusercontent.com/f3c7fbac68037897d8ab8dfc9ddc1b745b607a02441db9f068ffab91fd3b8229/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f62756e646c652d7573657273266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=Aerendir_bundle-users)[![Reliability Rating](https://camo.githubusercontent.com/66077bd70a87c45b2099b37434667d4e6666408ac55f414e801218fc93f5cd76/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f62756e646c652d7573657273266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=Aerendir_bundle-users)[![Security Rating](https://camo.githubusercontent.com/219d0ec26292c55b039db8e7949a61e8edc86e488b01728e4e1c8ec2d3162145/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f62756e646c652d7573657273266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=Aerendir_bundle-users)[![Technical Debt](https://camo.githubusercontent.com/1fd06284e661f8c250a8f69b6676adca5d3c3bea0b202843905b914262bc0f70/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f62756e646c652d7573657273266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=Aerendir_bundle-users)[![Vulnerabilities](https://camo.githubusercontent.com/72800d52b0b01150e62b9cdd12a6f11aa000d94272f91b1ec84a3df396426e2c/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d416572656e6469725f62756e646c652d7573657273266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=Aerendir_bundle-users)

[![PHPStan](https://github.com/Aerendir/bundle-users/workflows/PHPStan/badge.svg)](https://github.com/Aerendir/bundle-users/actions?query=branch%3Adev)[![PSalm](https://github.com/Aerendir/bundle-users/workflows/PSalm/badge.svg)](https://github.com/Aerendir/bundle-users/actions?query=branch%3Adev)[![PHPUnit](https://github.com/Aerendir/bundle-users/workflows/PHPunit/badge.svg)](https://github.com/Aerendir/bundle-users/actions?query=branch%3Adev)[![Composer](https://github.com/Aerendir/bundle-users/workflows/Composer/badge.svg)](https://github.com/Aerendir/bundle-users/actions?query=branch%3Adev)[![PHP CS Fixer](https://github.com/Aerendir/bundle-users/workflows/PHP%20CS%20Fixer/badge.svg)](https://github.com/Aerendir/bundle-users/actions?query=branch%3Adev)[![Rector](https://github.com/Aerendir/bundle-users/workflows/Rector/badge.svg)](https://github.com/Aerendir/bundle-users/actions?query=branch%3Adev)

[![codecov](https://camo.githubusercontent.com/1f01a5852fdb330ba99791c3b0a258d041d6029f077a715f22e03d8b8d2e443a/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f62756e646c652d75736572732f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d57394648333932463733)](https://codecov.io/gh/Aerendir/bundle-users)

[![CodeCov SunBurst](https://camo.githubusercontent.com/b06929d28b1fe67fa45ac1837aff823e411eafef5ded1c552281d95358ae484d/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f62756e646c652d75736572732f6272616e63682f6d61737465722f6772617068732f73756e62757273742e737667)](https://codecov.io/gh/Aerendir/bundle-users)[![CodeCov Tree](https://camo.githubusercontent.com/34cb4fb15ca0ae5107320ee0745e8d4c18fbaccf6a9edcecfd6392d3c180384a/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f62756e646c652d75736572732f6272616e63682f6d61737465722f6772617068732f747265652e737667)](https://codecov.io/gh/Aerendir/bundle-users)[![CodeCov I Cicle](https://camo.githubusercontent.com/b99c7100c3140efaff6c0dcd684e4dda63dbd86ce57b9b4409c3566bc5bb98a1/68747470733a2f2f636f6465636f762e696f2f67682f416572656e6469722f62756e646c652d75736572732f6272616e63682f6d61737465722f6772617068732f696369636c652e737667)](https://codecov.io/gh/Aerendir/bundle-users)

Features
--------

[](#features)

Provides some utilities to make easier the management of users in Symfony applications, on top of Symfony's built-in management of users.

---

###  **Do you like this bundle?**
 **[LEAVE A ★](#js-repo-pjax-container)**

[](#----do-you-like-this-bundle----leave-a-)

 or run
 `composer global require symfony/thanks && composer thanks`
 to say thank you to all libraries you use in your current project, this included!

---

Documentation
=============

[](#documentation)

The starting point is always the Symfony's documentation.

- [Bootstrapping users management in your app](https://symfony.com/doc/current/security.html)
- [How to build a login form](https://symfony.com/doc/current/security/form_login_setup.html)

Once you have configured the `UserInterface` entity, configured the security of your app and built the login form, it's time to create your first user, even before you build the registration form.

To make users management easier, `SerendipityHQ Users Bundle` provides a command `shq:users:create` that permits to create users from the command line.

It works almost out of the box: you only need to tweak just a bit the entity automatically generated by Symfony.

Install the Serendipity HQ Users Bundle
---------------------------------------

[](#install-the-serendipity-hq-users-bundle)

To install the bundle, run:

```
composer req serendipity_hq/bundle-users

```

Then activate the bundle in your `bundles.php`:

```
