NOTE: Code porting to PHP 8.1 ongoing.
This package provide a concrete implementation for the authentication interfaces and for the authorization interfaces of the framework.
Mappers use as persistent storage mysql through php pdo.
- PHP >= 8.1
- PDO extension
- MySQL extension
- linna/framework v0.28.0|next
With composer:
composer require linna/auth-mapper-mysql
Linna\Authentication\EnhancedAuthenticationMapperInterfaceLinna\Authorization\PermissionExtendedMapperInterfaceLinna\Authorization\PermissionMapperInterfaceLinna\Authorization\RoleExtendedMapperInterfaceLinna\Authorization\RoleMapperInterfaceLinna\Authorization\UserExtendedMapperInterfaceLinna\Authorization\UserMapperInterface
Linna\Authentication\EnhancedAuthenticationMapper- deleteOldLoginAttempts()
- fetchAll()
- fetchAttemptsWithSameIp()
- fetchAttemptsWithSameSession()
- fetchAttemptsWithSameUser()
- fetchById()
- fetchLimit()
Linna\Authorization\PermissionExtendedMapperLinna\Authorization\PermissionMapper- fetchAll()
- fetchById()
- fetchByName()
- fetchByRole()
- fetchByRoleId()
- fetchByRoleName()
- fetchByUser()
- fetchByUserId()
- fetchByUserName()
- fetchLimit()
- fetchUserPermissionHashTable()
- permissionExistById()
- permissionExistByName()
Linna\Authorization\RoleExtendedMapper- addUser()
- addUserById()
- addUserByName()
- grantPermission()
- grantPermissionById()
- grantPermissionByName()
- removeUser()
- removeUserById()
- removeUserByName()
- revokePermission()
- revokePermissionById()
- revokePermissionByName()
Linna\Authorization\RoleMapper- fetchAll()
- fetchById()
- fetchByName()
- fetchByPermission()
- fetchByPermissionId()
- fetchByPermissionName()
- fetchByUser()
- fetchByUserId()
- fetchByUserName()
- fetchLimit()
Linna\Authorization\UserExtendedMapper- addRole()
- addRoleById()
- addRoleByName()
- grantPermission()
- grantPermissionById()
- grantPermissionByName()
- removeRole()
- removeRoleById()
- removeRoleByName()
- revokePermission()
- revokePermissionById()
- revokePermissionByName()
Linna\Authorization\UserMapper- fetchAll()
- fetchById()
- fetchByName()
- fetchByPermission()
- fetchByPermissionId()
- fetchByPermissionName()
- fetchByRole()
- fetchByRoleId()
- fetchByRoleName()
- fetchLimit()

