https://github.com/linkorb/spicedb-bundle
SpiceDB Bundle for Symfony
https://github.com/linkorb/spicedb-bundle
Last synced: 25 days 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 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-08T19:38:21.000Z (5 months ago)
- Last Synced: 2025-09-23T17:51:52.329Z (about 1 month ago)
- Language: PHP
- Size: 41 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- 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).