Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cerbos/cerbos-sdk-laravel
Cerbos PHP Laravel SDK for interacting with the Cerbos PDP
https://github.com/cerbos/cerbos-sdk-laravel
Last synced: about 2 months ago
JSON representation
Cerbos PHP Laravel SDK for interacting with the Cerbos PDP
- Host: GitHub
- URL: https://github.com/cerbos/cerbos-sdk-laravel
- Owner: cerbos
- License: apache-2.0
- Created: 2023-09-05T12:49:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-06T10:20:06.000Z (about 2 months ago)
- Last Synced: 2024-11-06T11:21:02.564Z (about 2 months ago)
- Language: PHP
- Size: 113 KB
- Stars: 2
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cerbos Laravel SDK
[![Latest Stable Version](http://poser.pugx.org/cerbos/cerbos-sdk-laravel/v)](https://packagist.org/packages/cerbos/cerbos-sdk-laravel)
[![Total Downloads](http://poser.pugx.org/cerbos/cerbos-sdk-laravel/downloads)](https://packagist.org/packages/cerbos/cerbos-sdk-laravel)
[![License](http://poser.pugx.org/cerbos/cerbos-sdk-laravel/license)](https://packagist.org/packages/cerbos/cerbos-sdk-laravel)Cerbos Laravel SDK provides cerbos service provider and configuration for using Cerbos with laravel.
## Installation
You can install the SDK via [Composer](https://getcomposer.org/). Run the following command:
```bash
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`.
```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.
```bash
php artisan vendor:publish
```