Download the PHP package mkinyua53/authorization without Composer

On this page you can find all versions of the php package mkinyua53/authorization. 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 authorization

Mkinyua53 Authorization

This package returns all the possible routes of larapacks\authorization package. You need to have configured that package first in your laravel project.

Installation

Use composer

Insert the service provider in config\app.php providers array.

Usage

Add the relationships functions in

\App\User

\App\Role

\App\Permission

Insert the routes declaration in a service provider register function

The following routes will be added

NOTE

  1. This package is optimized to be used in an api, no views are provided

Summary

Route Method Parameters Return Extra
roles GET null Collection $roles
roles POST Request $request App\Role $role
roles/{role} GET $roleId App\Role $role Returns users and permissions relationships as Array
roles/{role} PUT / PATCH Request $request, $roleId App\Role $role
roles/{role} DELETE $roleId App\Role $role
~ ~ ~ ~ ~
permissions GET null Collection $permissions
permissions POST Request $request App\Permission $permission
permissions/{permission} GET $permissionId App\Permission $permission Returns users and roles relationships as Array
permissions/{permission} PUT / PATCH Request $request, $permissionId App\Permission $permission
permissions/{permission} DELETE $permissionId App\Permission $permission
~ ~ ~ ~ ~
roles/{role}/users/{user}/attach POST $roleId, $userId string 'User granted the role' Grant the role to the user
roles/{role}/permissions/{permission}/attach POST $roleId, $permissionId string 'Permission granted the role' Grants the role to the permission
roles/{role}/users/{user}/detach POST $roleId, $userId string 'User detached of role' Detaches the role from the user
roles/{role}/permissions/{permission}/detach POST $roleId, $permissionId string 'Permission detached from role' Detaches the role from the permission
roles/users/{user}/detach POST $userId string 'User detached all role' Detaches all roles from a user
roles/permissions/{permission}/detach POST $permissionId string 'Permission detached of all role' Detaches all roles from permission
~ ~ ~ ~ ~
permissions/{permission}/users/{user}/attach POST $permissionId, $userId string 'Permission granted to user' Grants the permission to the user
permissions/{permission}/users/{user}/detach POST $permissionId, $userId string 'User detached of the permission' Detach permission from user
permissions/users/{user}/detach POST $userId string 'User detached of all permission' Detach all permission from user

All versions of authorization with dependencies

PHP Build Version
Package Version
Requires larapacks/authorization Version ^2.3
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 mkinyua53/authorization contains the following files

Loading the files please wait ....