linkorb / spicedb-bundle
SpiceDB bundle for Symfony apps
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.4
- linkorb/spicedb-php: ^1.1
- symfony/config: ^4.4|^5.4|^6.4|^7.2
- symfony/dependency-injection: ^4.4|^5.4|^6.4|^7.2
- symfony/framework-bundle: ^4.4|^5.4|^6.4|^7.2
- symfony/http-kernel: ^4.4|^5.4|^6.4|^7.2
- symfony/security-core: ^4.4|^5.4|^6.4|^7.2
- symfony/yaml: ^4.4|^5.4|^6.4|^7.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/test-pack: ^1.0
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
This repository is integration of PHP library into Symfony app.
SpiceDB is a database system for managing security-critical permissions checking.
Check parent library README for more details
Basic Usage
Installation
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:
$container->get(LinkORB\Authzed\SpiceDB::class)
or:
$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.