Download the PHP package philiplb/crudlexuser without Composer
On this page you can find all versions of the php package philiplb/crudlexuser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download philiplb/crudlexuser
More information about philiplb/crudlexuser
Files in philiplb/crudlexuser
Package crudlexuser
Short Description CRUDlexUser is a library offering an user provider for symfony/security.
License MIT
Homepage https://github.com/philiplb/CRUDlexUser
Informations about the package crudlexuser
CRUDlex User
CRUDlexUser is a library offering an user provider for symfony/security.
API Documentation
The CRUDlexUser API itself is documented here:
Upcoming bleeding edge:
Generated via (assuming APIGen is globally installed like composer global require ...
and the PHP version is at maximum 7.1):
Package
CRUDlexUser uses SemVer for versioning. Currently, the API changes quickly due to be < 1.0.0, so take care about notes in the changelog when upgrading.
Stable
Bleeding Edge
Usage
This library offers two parts. First, a management interface for your admin panel to perform CRUD operations on your userbase and second, an symfony/security UserProvider offering in order to connect the users with the application.
The Admin Panel
The admin panel for your users is based on CRUDlex. So all you have to do is to add the needed entities to your crud.yml from the following sub chapters.
In order to get the salt generated and the password hashed, you have to let the library add some CRUDlex events in your initialization:
Users
Plus any more fields you need. Recommended for the password reset features:
Roles
Password Reset
In case you want to use the password reset features:
The UserProvider
Simply instantiate and add it to your symfony/security configuration:
Accessing Data of the Logged in User
In order to get the user data from the logged in user in your controller, you might grab him like this:
You get back a CRUDlex\User instance having some getters, see the API docs.