Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linkorb/spicedb-bundle
SpiceDB Bundle for Symfony
https://github.com/linkorb/spicedb-bundle
Last synced: about 1 month ago
JSON representation
SpiceDB Bundle for Symfony
- Host: GitHub
- URL: https://github.com/linkorb/spicedb-bundle
- Owner: linkorb
- Created: 2023-03-16T19:47:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-12T15:52:51.000Z (over 1 year ago)
- Last Synced: 2023-11-22T16:01:52.431Z (about 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-spicedb - linkorb/spicedb-bundle - SpiceDB client Symfony Bundle (Clients / Third-party Libraries)
README
# Authzed Symfony Bundle
[![Docs](https://img.shields.io/badge/docs-authzed.com-%234B4B6C "Authzed Documentation")](https://docs.authzed.com)
This repository is integration of [PHP library](https://github.com/linkorb/spicedb-php) into Symfony app.
[SpiceDB] is a database system for managing security-critical permissions checking.
Check parent library README for more details
[SpiceDB]: https://github.com/authzed/spicedb
## Basic Usage
### Installation
```shell
composer require linkorb/spicedb-php-bundle
```
After that you need to specify SpiceDB URI & API in your config.yaml like that:
```yaml
authzed:
uri: 'http://spicedb:8443'
key: 'somerandomkeyhere'
```### Getting client
In order to use SpiceDB client in your app simply call:
```php
$container->get(LinkORB\Authzed\SpiceDB::class)
```
or:
```php
$container->get(LinkORB\Authzed\ConnectorInterface::class)
```You can also pass it in services (or using autowiring). For more information on SpiceDB connector calls refer to [library repo](https://github.com/linkorb/spicedb-php).