linkorb/spicedb-bundle

SpiceDB bundle for Symfony apps

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 0

Type:symfony-bundle

v1.0.0 2023-04-12 15:52 UTC

This package is auto-updated.

Last update: 2024-10-12 18:50:49 UTC


README

Docs

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-php-bundle

After that you need to specify SpiceDB URI & API in your config.yaml like that:

authzed:
  uri: 'http://spicedb:8443'
  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.