Download the PHP package milebits/authorizer without Composer

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

Milebits Authorizer - For Laravel +6, +7, +8

Milebits Authorizer gives you access to simplified role/permissions management system for your laravel application in one simple installation.

How to Install

Install the package

Add it to the Model

Installing the permissions

Once you are satisfied with the actual models that you have in your application, you can run the command in order to generate permissions for every Model that exists in your applicationModels folder.

CAUTION: this command should be used only ONCE, and it is highly advised to run it after a fresh migration not after

And that's it, you are done! you can now use this package

How to use it

Relations

User roles

User permissions

Getting permissions

getByClassAction

Methods

Adding a role to a user

In this case $role should be the ID of the desired role to add

Removing a role from a user

In this case $role should be the ID of the desired role to add

Checking if a user has a certain role

Checking if a user has a certain permission

Using Middlewares

HasPermission Middleware

HasRole Middleware

Contributions

If in any case while using this package, and you which to request a new functionality to it, please contact us at [email protected] and mention the package you are willing to contribute or suggest a new functionality.

Vulnerabilities

If in any case while using this package, you encounter security issues or security vulnerabilities, please do report them as soon as possible by issuing an issue here in Github or by sending an email to [email protected] with the mention Vulnerability Report milebits/authorizer as your subject.


All versions of authorizer with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version ^6|^7|^8|^9
milebits/eloquent-filters Version >=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 milebits/authorizer contains the following files

Loading the files please wait ....