Download the PHP package ribafs/laravel-acl without Composer

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

ACL implementation in Laravel 9 and 10

Portuguese version this README

README-PT

Support to laravel 9 and 10

Alto 8 versiom without try.

Using users, roles, permissions, trait, middleware, provider, etc

How to works?

User 'super' has access to all tables and can do everything in each one. User 'admin' only has access to the permissions, roles and users tables and can do everything with them. User 'manager' only has access to the customer table and can do everything with it. The 'user' user has access only to the clients' index view.

Log in with each user to try it out.

Tested with

News in version 2.0

Now we have two areas, public and administrative. When entering the root of the application, you will be able to access the list of clients and the show. After login you will have rights according to the user.

Create a new app named 'acl' in laravel 9

If you have laravel installer, use:

If not, for laravel 10:

composer create-project --prefer-dist laravel/laravel acl

For laravel 9:

Create and configure the database

nano .env

Install the laravel-acl

Publishe

Copy some existing files

Copy files

Now all package files are already in your application: migrations, seeders, Models, middleware, provider, etc

Adjust app title (optional)

Edit the .env and change the line with APP_NAME, to something like: APP_NAME='ACL to Laravel 9'

Try

After adding your CRUD, run and test the ACL on your application's access control.

If you receive the error

Then edit

app/Http/Kernel.php

And comment out the line:

    //\Fruitcake\Cors\HandleCors::class,

Use to test:

Then test with the others: admin, manager and user

Important

This package is intended for new applications. Avoid using it in existing applications as it may overwrite some files.

Documentation in more detail

The information above and much more information on how to get the most out of this package (English only for now):

https://ribafs.github.io/laravel-acl

How to creating a demo app with ribafs/laravel-acl

Create a permission that no user has (example)

And assign to all views I don't want access to

On actions

Restrict actions to only those that have all-no permission, which no user has.

So you don't need to change the views.

Version for laravel 8 with existing apps

If you want a package to use with version 7 of laravel, click below:

https://github.com/ribafs/laravel-acl-exist

Version for laravel 7

If you want a package to use with version 7 of laravel, click below:

https://github.com/ribafs/laravel7-acl

Version for laravel 6

If you want a package to use with laravel version 6, click below:

https://github.com/ribafs/laravel6-acl

Version for Laravel 5.8

If you want a package to use with laravel version 5.8, click below:

https://github.com/ribafs/laravel58-acl

To quickly exchange ideas

https://github.com/ribafs/laravel-acl/discussions/

License

MIT


All versions of laravel-acl with dependencies

PHP Build Version
Package Version
No informations.
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 ribafs/laravel-acl contains the following files

Loading the files please wait ....