https://github.com/open-feature/php-sdk-contrib
OpenFeature Providers and Hooks for PHP
https://github.com/open-feature/php-sdk-contrib
Last synced: 6 months ago
JSON representation
OpenFeature Providers and Hooks for PHP
- Host: GitHub
- URL: https://github.com/open-feature/php-sdk-contrib
- Owner: open-feature
- License: apache-2.0
- Created: 2022-11-01T21:19:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T05:51:50.000Z (over 1 year ago)
- Last Synced: 2025-04-09T06:32:01.567Z (over 1 year ago)
- Language: PHP
- Homepage: https://openfeature.dev
- Size: 306 KB
- Stars: 14
- Watchers: 5
- Forks: 8
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# OpenFeature PHP SDK Contrib Library
[](https://cloud-native.slack.com/archives/C0344AANLA1)
[](https://codecov.io/gh/open-feature/php-sdk-contrib)



## Overview
The `php-contrib-sdk` repository is a monorepository containing various providers, hooks, and other integrations for OpenFeature's PHP SDK. Packages include:
- Providers
- [Flagd](./providers/Flagd/README.md)
- [Split](./providers/Split/README.md)
- [CloudBees](./providers/CloudBees/README.md)
- [GO Feature Flag](./providers/GoFeatureFlag/README.md)
- Hooks
- [OpenTelemetry](./hooks/OpenTelemetry/README.md)
- [Datadog](./hooks/DDTrace/README.md)
- [Validators](./hooks/Validators/README.md)
### Status
This repository is marked as **experimental** since the repository structure itself could change. However, each the packages within the repository maintains its own release status.
## Development
### PHP Versioning
This library targets PHP version 8.0 and newer. As long as you have any compatible version of PHP on your system you should be able to utilize the OpenFeature SDK.
This package also has a `.tool-versions` file for use with PHP version managers like `asdf`.
### Installation and Dependencies
Install dependencies with `composer install`. `composer install` will update the `composer.lock` with the most recent compatible versions.
We value having as few runtime dependencies as possible. The addition of any dependencies requires careful consideration and review.
### Testing
Each package implements its own test suite.
Run tests with `composer run test` in the package's directory.