https://github.com/linkorb/spicedb-bundle
SpiceDB Bundle for Symfony
https://github.com/linkorb/spicedb-bundle
Last synced: about 2 months 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-12T15:52:51.000Z (about 2 years ago)
- Last Synced: 2023-11-22T16:01:52.431Z (over 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
> [!WARNING]
> This is a read-only repository used to release the subtree. Any issues and pull requests should be forwarded to the
> upstream Nebula repository.# Authzed Symfony Bundle
[](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-bundle
```
After that you need to specify SpiceDB URI & API env variables:
```
SPICEDB_URI='http://spicedb:8443'
SPICEDB_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).