cerbos / cerbos-sdk-laravel
Cerbos PHP Laravel SDK for interacting with the Cerbos PDP
Installs: 95
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 2
Open Issues: 1
pkg:composer/cerbos/cerbos-sdk-laravel
Requires
- php: ^8.3 || ^8.4
- cerbos/cerbos-sdk-php: ^v1.10
- illuminate/support: ^v12.40
Requires (Dev)
- php-parallel-lint/php-parallel-lint: ^1.4
- phpunit/phpunit: ^12.4
This package is auto-updated.
Last update: 2025-11-27 14:02:00 UTC
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