Download the PHP package gcgov/framework-service-user-crud without Composer
On this page you can find all versions of the php package gcgov/framework-service-user-crud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gcgov/framework-service-user-crud
More information about gcgov/framework-service-user-crud
Files in gcgov/framework-service-user-crud
Download gcgov/framework-service-user-crud
More information about gcgov/framework-service-user-crud
Files in gcgov/framework-service-user-crud
Vendor gcgov
Package framework-service-user-crud
Short Description Implement standard CRUD routes to manage the user collection. Even if your app doesn't provide a custom user model (`\app\models\user`), your auth or database service may provide you with a standard user model that implements (`\gcgov\framework\interfaces\auth\user`).
License MIT
Package framework-service-user-crud
Short Description Implement standard CRUD routes to manage the user collection. Even if your app doesn't provide a custom user model (`\app\models\user`), your auth or database service may provide you with a standard user model that implements (`\gcgov\framework\interfaces\auth\user`).
License MIT
Please rate this library. Is it a good library?
Informations about the package framework-service-user-crud
User CRUD Service
Service to extend gcgov/framework
Primary purpose
- Implement standard CRUD routes to manage the user collection. Even if your app doesn't provide a custom user
model (
\app\models\user
), your auth or database service may provide you with a standard user model that implements (\gcgov\framework\interfaces\auth\user
).
User Model Standard and Customization
- The class fully qualified domain name returned by
\gcgov\framework\services\request::getUserClassFqdn()
shall be used to select the correct user model for purposes of authentication services and the user crud service. The class returned byrequest::getUserClassFqdn
must implement\gcgov\framework\interfaces\auth\user
. It will return the first class available in this list, in order.\app\models\user
- Database provider user model
\gcgov\framework\services\mongodb\models\auth\user
Impact to application
- Router
- User Routes Adds standard CRUD user controller that will interface with the application's user model.
- Adds route
/user
- GET all users; Required Roles:User.Read
- Adds route
/user/{id}
- GET one user by id or 'new'; Required Roles:User.Read
- Adds route
/user/{id}
- POST save user; Required Roles:User.Read
,User.Write
- Adds route
/user/{id}
- DELETE user; Required Roles:User.Read
,User.Write
- Adds route
- Adds authentication guard
- All routes in app with authentication=true will be guarded by this guard. The HTTP Authorization header is required and it's access token is validated by the jwt service.
- Provided user routes require authentication and
User.Read
/User.Write
roles.
- User Routes Adds standard CRUD user controller that will interface with the application's user model.
Installation:
- Require using Composer https://packagist.org/packages/gcgov/framework-service-user-crud
- Add namespace
\gcgov\framework\services\usercrud
to\app\app->registerFrameworkServiceNamespaces()
Implementation
All versions of framework-service-user-crud with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package gcgov/framework-service-user-crud contains the following files
Loading the files please wait ....