Download the PHP package jumbodroid/phprbac without Composer

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

phprbac

phprbac is wrapper around the OWASP/rbac package that adds support for the Laravel framework

Leverage phprbac to add NIST Level 2 Authorization to your Laravel projects.

Add the provider to config/app.php providers array

Jumbodroid\PhpRbac\ServiceProviders\PhpRbacServiceProvider::class

Run php artisan vendor:publish --provider="Jumbodroid\PhpRbac\ServiceProviders\PhpRbacServiceProvider" to publish the config and migration files.

Usage

The complete documentation can be found at phprbac.net. Just replace:

  1. Rbac->{Permissions} with Rbac->permissions()
  2. Rbac->{Roles} with Rbac->roles()
  3. Rbac->{Users} with Rbac->users()
    To get an instance of the Rbac class, use Rbac->getInstance()

Roles

  1. Create new role

  2. Find role title

  3. Find list of permissions assigned to a given role

  4. Unassign all permissions assigned to a given role

  5. Assign permission to a role

  6. Remove a role and all its descendants

  7. Removes a role

Permissions

  1. Create a new permission

  2. Check if a given permission exists

  3. Unassign all roles assigned to a given permission

  4. Removes a given permission

Users

  1. Unassign a given role from all users

  2. Check if a given user has a given role

  3. Retrieves all roles assigned to a given user

  4. Assign a given role to a user

  5. Unassign a given role from a user

UserRoles

RolePermissions


All versions of phprbac with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
illuminate/config Version >=7.11
owasp/phprbac Version ^2.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 jumbodroid/phprbac contains the following files

Loading the files please wait ....