Download the PHP package mamikon/role-manager without Composer

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

RoleManager

Latest Version on Packagist Build Status Coverage Status Quality Score Total Downloads

Role and permission management system for laravel. This package impalement Role Management in Laravel. And you can create in easy way new permissions and assign them to the roles.

Install

Via Composer

Then add the ServiceProvider to the providers array in config/app.php.

You can use the facade for shorter code. Add this to your aliases:

To publish the config settings use:

It will publish default views for Role and permission management and roleManager.php config file.

Before starting lets go over config file and make some configurations.

Config file contain default permissions, roles.

It will create some permissions for RoleManager package, after publishing package you can add some new permissions right there and it will be more preferable than from admin panel, it will make your application more easy shippable. Each permission must contain array key, it will be name of permission, and value of that key must be an array which contain description. in addition of this you can add class and method that will make additional checking for that permission

Then You can create default roles. Each array element must contain key which will be role name, and value- that will be description of our role

Then You can assign some permissions to roles.

You can use asterisk for add all permissions to that role

Then you can add roles to users

All this configurations will be loaded after run artisan command permission:migrate

But before that we must migrate our tables. It by default will create 4 tables

If in your database exist tables permissions, and roles you can change their names from config file and then migrate

RoleManager package will create routes for Role management control pages

And they will be prefixed by default with role-manager.

By default views will be extend form layouts.app

If you don't want extend any view you can give value false And You must give section where must be extended

All configurations except default roles, permissions and default assignments can be loaded from .env

After all configuration will done run migration

And then

Usage

RoleManager don't change any logic in laravel authorization. You can use standard laravel facades, methods and functions.

In addition RoleManager facade has 2 helper functions

As $user parameter can be User Model, or user_id(int) As $role parameter can be Role Model, role_id(int), or role name(string)

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of role-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
laravel/framework Version >=5.4.0
mamikon/role-manager Version *
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 mamikon/role-manager contains the following files

Loading the files please wait ....