定制 opportus/authorizer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

opportus/authorizer

最新稳定版本:v1.0.0

Composer 安装命令:

composer require opportus/authorizer

包简介

Provides a simple yet powerful authorization system

README 文档

README

License Latest Stable Version Latest Unstable Version Build

Index

Introduction

This library provides a generic and standardizable authorization system.

Roadmap

To develop this solution faster, contributions are welcome...

v1.1:

  • Implement property chain access support
  • Implement multiple condition authorization support
  • Implement multiple comparison operators support
  • Implement higher test coverage

Integrations

  • {{ reference_here_your_own_integration }}

Setup

Step 1 - Installation

Open a command console, enter your project directory and execute:

$ composer require opportus/authorizer

Step 2 - Initialization

This library contains 4 services. 3 of them require a single dependency which is another lower level service among those 4:

use Opportus\Authorizer\Authorizer;
use Opportus\Authorizer\ObjectPropertyAccessor\ObjectPropertyAccessor;

$objectPropertyAccessor = new ObjectPropertyAccessor();
$authorizer             = new Authorizer($objectPropertyAccessor);

In order for the authorizer to get properly initialized, each of its services it depends on must be instantiated such as above.

By design, this solution does not provide "helpers" for the instantiation of its own services which is much better handled the way you're already instantiating your own services, with a DIC system or whatever.

Authorization

Concept

An authorization is a use case assigned to an actor of your system.

An authorization is composed of:

  • an operation
  • (on) a resource
  • (under) an optional condition

Example Use Cases

...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固