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 2 months ago
JSON representation

SpiceDB Bundle for Symfony

Awesome Lists containing this project

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

[![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-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).