Download the PHP package nyoncode/laravel-permission-extended without Composer

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

Laravel Permission Extended

Tests Latest Version on Packagist Total Downloads License

Wildcard permissions, super-admin gate, auto middleware registration, Blade directives and Livewire support — all built on spatie/laravel-permission.

Support

Laravel 10 Laravel 11 Laravel 12 Laravel 13
PHP 8.2 ✅ ✅ ✅ -
PHP 8.3 ✅ ✅ ✅ ✅
PHP 8.4 ✅ ✅ ✅ ✅
PHP 8.5 — ✅ ✅ ✅

Installation

The install command will publish config, Spatie migrations, run migrations and optionally add the trait to your User model.

Manual Setup

Change the HasRoles import on your User model — from Spatie to this package:

Do not use both Spatie's and this package's HasRoles on the same model — this one already includes Spatie's internally.

Features

Wildcard Permissions

@can('admin.*'), Gate::allows('admin.*') and middleware('permission:admin.*') all work transparently.

Super-Admin Role

Configured via config/permission-extended.php:

Users with this role pass every Gate::allows() / @can() / $user->can() check automatically. No need to assign individual permissions.

With Spatie's teams on, only a global assignment counts — a super-admin can do everything everywhere, not only while one team is current:

A global role with ordinary permissions — an administrator across all teams, who can do what the role carries and nothing more — works the same way: its permissions count in every team.

See Teams and Global Roles.

Automatic Middleware Registration

Spatie's middleware is registered automatically — no manual setup in bootstrap/app.php:

Disable via 'register_middleware' => false in config.

Blade Directives

Native @can('admin.*') also works.

Livewire Integration

Cache Management

Clears both Spatie's permission cache and the wildcard pattern cache.

Documentation

Testing

License

MIT


All versions of laravel-permission-extended with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/auth Version ^10.0|^11.0|^12.0|^13.0
illuminate/container Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
nyoncode/laravel-package-toolkit Version ^2.0.1
spatie/laravel-permission Version ^6.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 nyoncode/laravel-permission-extended contains the following files

Loading the files please wait ...