Download the PHP package tkhamez/slim-role-auth without Composer
On this page you can find all versions of the php package tkhamez/slim-role-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tkhamez/slim-role-auth
More information about tkhamez/slim-role-auth
Files in tkhamez/slim-role-auth
Download tkhamez/slim-role-auth
More information about tkhamez/slim-role-auth
Files in tkhamez/slim-role-auth
Vendor tkhamez
Package slim-role-auth
Short Description Role-based authorization for the Slim framework
License MIT
Package slim-role-auth
Short Description Role-based authorization for the Slim framework
License MIT
Please rate this library. Is it a good library?
Informations about the package slim-role-auth
Role-based authorization
Middleware for the Slim 4 framework.
For Slim 3 use the 1.0.0 release.
Installation
With Composer:
Usage
Example:
- The
SecureRouteMiddleware
denies access to a route if the required role is missing in the request object. - The
RoleMiddleware
class adds roles provided by theRoleProvider
object to the request object. - You can add multiple role providers for different paths.
For more information, see the inline documentation of the classes.
Dev Env
Changelog
5.0.0 - 2024-06-01
- Raised minimum required PHP version to 7.4.
4.0.0
- Raised minimum required PHP version to 7.3.
3.0.1
- Update PHP requirement to include version 8 (^7.2|^8.0).
3.0.0
- Raised minimum PHP version to 7.2
- Added a class constant for the name of the request attribute that holds the roles and changed its name.
2.0.1
- Compatibility with Slim 4.4
2.0.0
- Update for Slim 4.
1.0.0
- First stable release.
All versions of slim-role-auth with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4|^8.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
slim/slim Version ^4.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0 || ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
slim/slim Version ^4.0
The package tkhamez/slim-role-auth contains the following files
Loading the files please wait ....