定制 bertptrs/gatekeeper-utils 二次开发

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

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

bertptrs/gatekeeper-utils

最新稳定版本:v0.3.0

Composer 安装命令:

composer require bertptrs/gatekeeper-utils

包简介

A collection of commands, filters and utilities for the gatekeeper module in the Mako PHP framework.

README 文档

README

This package contains tools and commands for the Mako framework authentication plugin Gatekeeper.

For now, the package contains some commands and a filter, but more will be added if needed. Feel free to fork to file an issue if there are missing features.

Installation

Installation is done using composer. The package has a compatible Mako version specified so you don't have to worry about which version to use.

composer require bertptrs/gatekeeper-utils:*

After that, you need to register the package to be loaded. This is specified in the app/config/application.php file.

<?php
return [
    // The rest of your config
  'packages' => [
    "core" => [
      'solutionweb\gatekeeper\utils\GatekeeperUtilsPackage',
    ],
    "cli" => [],
    "web" => [],
  ],
  // The other rest of your config
];

I recommend that you register the package in the core packages, but if you only use the filters, or just the commands, you could register it in the web and cli packages respectively.

Available commands

Currently, there are three supported commands. These commands are registered automatically when the plugin is loaded. All commands are prefixed with gatekeeper:: to prevent naming collisions.

  • user.create helps you create new users.
  • user.activate (de)activates user accounts.
  • user.password can set new passwords for users.
  • group.create creates new groups.
  • group.member can add and remove members in groups.
  • group.delete deletes groups.

For more information about the workings and options, you can use the --help flag, like so:

$ php app/reactor gatekeeper::user.create --help

Command:

php reactor gatekeeper::user.create

Description:

Create a new user.

Options:

----------------------------------------------------------------
| Name       | Description                          | Optional |
----------------------------------------------------------------
| noactivate | Do not activate the user by default. | true     |
----------------------------------------------------------------

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固