Download the PHP package linkorb/spicedb-php without Composer
On this page you can find all versions of the php package linkorb/spicedb-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package spicedb-php
Authzed PHP Client
This repository houses the PHP client library for Authzed and SpiceDB.
SpiceDB is a database system for managing security-critical permissions checking.
SpiceDB acts as a centralized service that stores authorization data. Once stored, data can be performantly queried to answer questions such as "Does this user have access to this resource?" and "What are all the resources this user has access to?".
Authzed operates the globally available, serverless database platform for SpiceDB.
Supported client API versions:
You can find more info about the API in the Authzed Documentation API Reference or the Authzed API Buf Registry repository.
Getting Started
We highly recommend following the Protecting Your First App guide to learn the latest best practice to integrate an application with Authzed.
Basic Usage
Installation
Using composer tool run:
Initializing a client
SpiceDB connector depends on symfony/serializer
and symfony/http-client
. Instantiation of a new client with pure PHP can be done following way:
For Symfony apps there'll be a separate bundle which is currently WIP
Performing an API call
SpiceDB connector implements communication through REST API. Check LinkORB\Authzed\ConnectorInterface
for available methods. Here's example of write schema request:
Tests
Tests can be run with following command:
For that you need to have Docker installed. Alternatively you can run test with PHP installed on host:
All versions of spicedb-php with dependencies
symfony/serializer Version ^5.4|^6.0
symfony/property-access Version ^5.4|^6.0
symfony/http-client Version ^5.4|^6.0