leonschiffer / cerbos-temp
Cerbos PHP Laravel SDK for interacting with the Cerbos PDP
0.1.0
2024-08-08 11:44 UTC
Requires
- php: ^8.2
- cerbos/cerbos-sdk-php: ^1.1
- illuminate/support: ^11.0
Requires (Dev)
- php-parallel-lint/php-parallel-lint: ^1.3
- phpunit/phpunit: ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Cerbos Laravel SDK provides cerbos service provider and configuration for using Cerbos with laravel.
Installation
You can install the SDK via Composer. Run the following command:
composer require cerbos/cerbos-sdk-laravel
The CerbosServiceProvider is auto-discovered and registered by default.
But, it is also possible to manually register the CerbosServiceProvider too by adding it to config/app.php.
'providers' => ServiceProvider::defaultProviders()->merge([ // ... \Cerbos\Sdk\Laravel\Provider\CerbosServiceProvider::class, ])->toArray(),
Use the artisan vendor command which will create the config/cerbos.php for customizing the cerbos configuration.
php artisan vendor:publish