Download the PHP package skacharya/laravel-rbac without Composer

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

Skacharya\LaravelRbac

Description:

Empower your Laravel applications with dynamic, real-time, and user-friendly role-based access control (RBAC). Effortlessly manage user permissions by associating roles with specific routes, stored in a database for maximum flexibility and control. With this rbac will not only dynamically customize user premission but also customize application interface as runtime. You do not even need to write much code on backend as well as on frontend as all premission are check based on route and associated role assignrd to user which is managed at backend and the ant designed react interface provides you easyto use interface where you can create roles assign roles to user and define the premission for each route to role. You can even manage group of route you want to inforce rbac or hide the route which you do not want to include in rbac.

Features:

Installation:

  1. Install via Composer:

    bash php artisan vendor:publish --provider="Skacharya\LaravelRbac\SkRbacServiceProvider" //or for indivisual vendor dir //eg for view php artisan vendor:publish --tag="skrbac_view" //for public php artisan vendor:publish --tag="skrbac_public" //for config php artisan vendor:publish --tag="skrbac_config" bash php artisan migrate

Uses:

  1. Update skrbac.php

    Open file skrbac.php inside config folder change and the configuration as per your need.

    • user_model: Define your user model classname that you will use for authentication. example 'user_model'=>App\Models\User::class
    • groups: Add all route group name that needs to be included for rbac. example all route group name starting with admin. will be added into rbac route list
    • routes: Add complete name of route that you want to be included into rbac route list. Mostly the route that doesnot fall under group defined above option.
    • except_routes: Add complete name of route that you want do not want to be included into rbac. Sometime there could be some route inside group that you do not want to include in rbac

    Example : bash protected $middlewareGroups = [ 'web' => [ // ...other middleware \Skacharya\LaravelRbac\Middlewares\RbacFilter::class ], ]; bash Route::group(['prefix' => 'demo', 'as' => 'admin.'], function () { Route::get('post', [ExampleController::class, 'index'])->name("post.index"); Route::post('post', [ExampleController::class, 'store'])->name("post.store"); Route::get('post/{post}', [ExampleController::class, 'show'])->name("post.show"); Route::put('post/{post}', [ExampleController::class, 'update'])->name("post.update"); Route::delete('post/{post}', [ExampleController::class, 'delete'])->name("post.delete"); }); bash @if(SkAccess::hasAccess('demo.post.index')) Post @endif bash @extends('layout/main') @section('content')

    @endsection @push('footer_script')

    @endpush

    
    Github:

Want to explor the code for free.

We appreciate your star and fork on github : https://github.com/shreekrishnaacharya/laravel-rbac

Contributing:

We welcome contributions! Please see Contribution Guidelines: https://github.com/shreekrishnaacharya/laravel-rbac/blob/main/CONTRIBUTING.md

License:

Open-source licensed under the MIT license: https://opensource.org/licenses/MIT

Credits:

Developed by Shree Krishna Acharya: https://www.linkedin.com/in/shree-krishna-acharya/ Built on top of the amazing Laravel framework


All versions of laravel-rbac with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
laravel/framework Version ^8.0|^9.0|^10.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 skacharya/laravel-rbac contains the following files

Loading the files please wait ....