承接 linna/auth-mapper-mysql 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

linna/auth-mapper-mysql

Composer 安装命令:

composer require linna/auth-mapper-mysql

包简介

Mysql mapper implementation of the authentication and authorization interfaces.

README 文档

README

Linna Logo
Linna Auth Mapper Mysql Logo

Tests PDS Skeleton PHP 8.1

NOTE: Code porting to PHP 8.1 ongoing.

About

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.

Requirements

  • PHP >= 8.1
  • PDO extension
  • MySQL extension
  • linna/framework v0.28.0|next

Installation

With composer:

composer require linna/auth-mapper-mysql

Package Content

Interfaces from Framework

  • Linna\Authentication\EnhancedAuthenticationMapperInterface
  • Linna\Authorization\PermissionExtendedMapperInterface
  • Linna\Authorization\PermissionMapperInterface
  • Linna\Authorization\RoleExtendedMapperInterface
  • Linna\Authorization\RoleMapperInterface
  • Linna\Authorization\UserExtendedMapperInterface
  • Linna\Authorization\UserMapperInterface

Implementation

  • Linna\Authentication\EnhancedAuthenticationMapper
    • deleteOldLoginAttempts()
    • fetchAll()
    • fetchAttemptsWithSameIp()
    • fetchAttemptsWithSameSession()
    • fetchAttemptsWithSameUser()
    • fetchById()
    • fetchLimit()
  • Linna\Authorization\PermissionExtendedMapper
  • Linna\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()

统计信息

  • 总下载量: 2.16k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-10-29