-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Evan Sims edited this page Jun 17, 2025
·
17 revisions
Stop writing authorization logic. Start asking questions.
composer require evansims/openfga-php
Build your authorization integration
-
Introduction
Start here to get your first authorization check working. -
Installation
Install the SDK and set up required dependencies for your environment. -
Authentication
Set up authentication for production environments and managed services.
Learn the core concepts and patterns
-
Stores
Manage authorization stores for multi-tenant applications and environment separation. -
Authorization Models
Learn how to define your permission rules using OpenFGA's intuitive DSL. -
Relationship Tuples
Understand how to grant and revoke specific permissions between users and resources. -
Permission Queries
Master the four types of queries: check permissions, list objects, find users, and expand relationships. -
Assertions
Define test cases to verify your authorization model.
Explore advanced features and patterns
-
Helper Functions
Simplify your code with convenient helper functions for common authorization operations. -
Concurrency
Leveraging the SDK's powerful concurrency features to improve performance when working with large-scale authorization operations. -
Exceptions
Handling errors and exceptions in your authorization system. -
Integration
Integrating OpenFGA with your existing systems and frameworks. -
Observability
Essential tracing and metrics to monitor your authorization system, including advanced event-driven telemetry and custom monitoring patterns. -
Results
Building robust applications with proper response handling using the SDK's Result pattern.
Getting Started: Introduction • Installation • Authentication
Essentials: Stores • Authorization Models • Relationship Tuples • Permissions Queries
Features: Helper Functions • Concurrency • Results • Exceptions • Observability • Integration
- API Reference - Full class and method documentation
- Quickstart - Get up and running in minutes
- Helpers - Convenient shortcuts for common operations
- Testing Guide - Unit testing with the SDK
- Performance Guide - Optimize for high-scale applications
- Report Issues - Bug reports and feature requests
- Discussions - Community support and questions
- Contributing - Help improve the SDK
- Changelog - Latest updates and releases
- OpenFGA Documentation - Official OpenFGA documentation
- OpenFGA Playground - Interactive modeling environment
- Authorization Concepts - Learn relationship-based access control
- Other SDKs - JavaScript, Go, Python, .NET, and more
OpenFGA PHP SDK • Apache 2.0 License
- Authorization Stores
- Authorization Models
- Relationship Tuples
- Permission Queries
- Testing with Assertions
- Helper Functions
- Concurrency
- Error Handling
- Framework Integration
- OpenTelemetry Observability
- Result Pattern
- Event Dispatcher
- HTTP Request Sent Event
- HTTP Response Received Event
- Operation Started Event
- Operation Completed Event
- More Events …
- Authentication Exception
- Client Exception
- Configuration Exception
- Network Exception
- Serialization Exception
- More Exceptions …
- Request Manager
- Request Context
- Circuit Breaker
- Parallel Task Executor
- Fiber Concurrent Executor
- Simple Concurrent Executor
- Retry Handler
- Exponential Backoff Retry Strategy
- More Networking …