Home » Php » php – Standalone user management library that supports Doctrine ORM?

php – Standalone user management library that supports Doctrine ORM?

Posted by: admin July 12, 2020 Leave a comment


I can’t find a standalone system that I can use for user management (authentication,authorization, register, password reminders…).

The closest it gets is using Symfony and FOSUserBundle but because it’s a Symfony Bundle it seem to be dependant on the framework. Is there a way to separate these or at least to load only few components of symfony?

I’ve used symfony before and I like it; I just don’t need the entire framework for the current project.

I couldn’t find other solutions.

How to&Answers:

Honnestly, most projects have custom needs. Even using something like FOSUserBundle you’ll have to re-implement or edit a big part of it.

If your project is not a “time-attack” project, take ~a week to build your own librairy. I’m not saying you should reinvent the wheel –base yourself on existing code–, but I think that most of the time, people that really take the time to design before starting a projects are in projects that are big enought to justify this kind of custom implementation.


You could give a try to https://github.com/symfony/Security its Symfony2 component but can be used “standalone”.

Depenedencies from composer.json file (https://github.com/symfony/Security/blob/master/composer.json#L19-24)

"symfony/event-dispatcher": ">=2.1",
"symfony/http-foundation": ">=2.1",
"symfony/http-kernel": ">=2.1"