Download the PHP package timo-de-winter/filament-authorization without Composer

On this page you can find all versions of the php package timo-de-winter/filament-authorization. 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 filament-authorization

Filament Authorization

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Easy authorization system for filament, with advanced features to inject permissions from different places.

Installation

You can install the package via composer:

Migrations

This package makes use of spatie/laravel-permission, so if you have not done so already, publish the migrations for this plugin:

Prepare your model

Follow these instructions to prepare your model to work with roles.

Configuration

You can optionally publish the config file with:

This is the contents of the published config file:

Optionally, you can publish the views using

Usage

Configurable Resource

The RoleResource supports Filament's configurable resources feature. You can pass custom configurations to the plugin:

Providing/injecting permissions

The philosophy of this package is that permissions are defined by your application and not by the permissions as stated in your database. This is useful when you're working with a package-first strategy. My problem was that I want my packages to work independently from each other, but most of the time a lot of them are combined to create a bigger product. Within those applications I want a single resource for role management that allows for any permissions provided by any of the packages to be attached. Since the packages work standalone and can also choose to disable their permission system it is important that there was one modular approach to inject permissions from any of the packages.

Injecting permissions is very easy and can be done in any service provider. The structure is as follows:

Tabs are used to group permissions together in a tab in the resource to give more clarity to the user. You might have a tab named "Default" and one named "Advanced". If there is only 1 tab in total, we do not show tabs at all. Prefixes are mainly used to group permissions together under a given prefix to prevent overlap. And then of course there are permissions.

Synchronisation command

The package comes with a command to synchronize all permissions to the database. In most use cases it would be smart to add this command to your deployment script:

Admin role and user command

The package comes with a command to easily create an admin role and assign it to a user from the console.

Testing

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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


All versions of filament-authorization with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
filament/filament Version ^4.1|^5.0
illuminate/contracts Version ^11.0||^12.0||^13.0
spatie/laravel-package-tools Version ^1.16
spatie/laravel-permission Version ^6.21|^7.2.4
timo-de-winter/filament-modifiable-plugins Version self.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 timo-de-winter/filament-authorization contains the following files

Loading the files please wait ...