Download the PHP package fast-api/permission without Composer

On this page you can find all versions of the php package fast-api/permission. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package permission

fast-api/permission

fast-api-permission 是一个PHP RBAC处理和操作库,它提供了一种更容易表达的方式来创建,编辑和管理前后端分离API接口权限。该软件包包括用于轻松集成Laravel的ServiceProviders和Facades 。

更多功能可以参考下面的文档。

在Laravel应用程序中使用官方fast-api/permission客户端的简便方法。

安装与配置

Fast-php Cloud Fast-api/Permission SDK for Laravel

安装 Laravel

本产品依赖Laravel需要安装 Laravel laravel/laravel package via composer:

安装 权限扩展包

配置 laravel env 文件

在按照上面建议的完成程序的安装之后,下面请配置数据库 通过添加以下内容到您的应用程序'.env文件(带有合适的值):

APP_URL 服务地址和端口: 项目访问地址,本地开发,参考设置(php artisan serve)终端执行打印信息。

数据库:

API前缀:

如果您曾经使用过API,就会知道大多数服务都是通过子域或前缀提供的。前缀或子域是必需的,但只有一个。避免将版本号作为前缀或子域,因为版本控制是通过Accept标头处理的。 您可以在.env文件中进行配置。

配置 laravel auth 文件

使用

发布配置 [JWT]

运行以下命令以发布程序包配置文件:

生成密钥

我提供了一个帮助程序命令,可以为您生成密钥:

过期时间:

设置 JWT TOKEN 默认过期时间

您可以在.env文件中进行配置。

发布配置 [Captcha]

运行以下命令以发布程序包配置文件:

更新config/captcha.php文档配置:

发布配置 [Swagger]

更新config/l5-swagger.php文档配置:

包含权限扩展包文档路径,vendor/fast-api

.env 文件中配置Swagger参数。

数据迁移 [migrates]

运行以下命令以发布程序包配置文件:

生成数据 [seed]

运行以下命令导入权限数据到数据库:

bug 建议 贡献和支持

请使用Github报告bug,并提出意见或建议。

请参阅CONTRIBUTING.md了解如何贡献更改。

启动

运行以下命令启动项目:

API文档访问地址:

http://127.0.0.1:8000/api/documentation

文档

PHP开发技术交流(QQ群 368868750)

PHP开发技术交流 (SDK)

fast-api-permission 是基于laravel 7.x 封装,在做项目开发前,必需先阅读laravel官方文档。

演示

后台地址:https://fast-admin.dnat.link

账号: admin

密码: 123123

API文档:https://fast-api.dnat.link/api/documentation

完整项目

后台仓库地址:

Github

https://github.com/fast-oopdev/fast-admin.git

API仓库地址:

Github

https://github.com/fast-oopdev/fast-api.git

存储库

fast-api-permission 为开源项目,允许把它用于任何地方,不受任何约束,欢迎 fork 项目。

版权和许可

fast-api/permission was written by fast-php and is released under the MIT License.

Copyright (c) 2021 fast-php


All versions of permission with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2.5
tymon/jwt-auth Version 1.0.0
prettus/l5-repository Version 2.6.x
dingo/api Version 3.0.0
lcobucci/jwt Version 3.3.0
mews/captcha Version ^3.2
darkaonline/l5-swagger Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package fast-api/permission contains the following files

Loading the files please wait ....