Skip to content

Commit 28931b6

Browse files
committed
feat: named clients, PHP 8.0 EOL, flag metadata, and refactors
Signed-off-by: Tom Carrio <[email protected]>
1 parent 3ff3a59 commit 28931b6

File tree

81 files changed

+1109
-694
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+1109
-694
lines changed

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.github/workflows/pullrequest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
matrix:
2222
operating-system: [ubuntu-latest]
23-
php-version: ['8.0', '8.1', '8.2']
23+
php-version: ['8.1', '8.2', '8.3']
2424

2525
steps:
2626
- uses: actions/checkout@v4

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
/features/*.feature
1010

11-
/.devenv*
11+
/.direnv

.tool-versions

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
php 8.2.12
1+
php 8.3.0
2+
# php 8.2.12
23
# php 8.1.11
3-
# php 8.0.24

CONTRIBUTING.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,30 @@
44

55
### System Requirements
66

7-
PHP 8+ is required.
7+
PHP 8.1+ is required.
88

99
### Compilation target(s)
1010

11-
We target compatibility with PHP versions 8.0, 8.1, and 8.2.
11+
We target compatibility with supported versions of PHP. Currently, this includes PHP versions 8.1, 8.2, and 8.3.
1212

1313
### Installation and Dependencies
1414

1515
Install dependencies with `composer install`.
1616

1717
We value having as few runtime dependencies as possible. The addition of any dependencies requires careful consideration and review.
1818

19+
#### asdf
20+
21+
This package has a `.tool-versions` file for use with PHP version managers like `asdf`.
22+
23+
#### Nix
24+
25+
This package includes a `flake.nix` file which defines reproducible development shells powered by [Nix](https://nixos.org/). You can manually drop into a shell with `nix develop`, or provide a specific PHP minor version target with `nix develop .#php82`.
26+
27+
#### direnv
28+
29+
This package includes a `.envrc` file which automatically infers the usage of the default shell for the project, which is set to the minimum supported version of PHP for the project.
30+
1931
### Testing
2032

2133
Run tests with `composer dev:test`.

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99

1010
<h2 align="center">OpenFeature PHP SDK</h2>
1111

12+
[![a](https://img.shields.io/badge/slack-%40cncf%2Fopenfeature-brightgreen?style=flat&logo=slack)](https://cloud-native.slack.com/archives/C0344AANLA1)
13+
[![codecov](https://codecov.io/gh/open-feature/php-sdk/branch/main/graph/badge.svg?token=3DC5XOEHMY)](https://codecov.io/gh/open-feature/php-sdk)
14+
[![Specification](https://img.shields.io/static/v1?label=Specification&message=v0.5.1&color=yellow)](https://github.com/open-feature/spec/tree/v0.5.1)
15+
[![Latest Stable Version](http://poser.pugx.org/open-feature/sdk/v)](https://packagist.org/packages/open-feature/sdk)
16+
[![Total Downloads](http://poser.pugx.org/open-feature/sdk/downloads)](https://packagist.org/packages/open-feature/sdk)
17+
![PHP 8.1+](https://img.shields.io/badge/php->=8.0-blue.svg)
18+
[![License](http://poser.pugx.org/open-feature/sdk/license)](https://packagist.org/packages/open-feature/sdk)
19+
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/6853/badge)](https://bestpractices.coreinfrastructure.org/projects/6853)
20+
1221
<!-- x-hide-in-docs-end -->
1322
<!-- The 'github-badges' class is used in the docs -->
1423
<p align="center" class="github-badges">

composer.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
}
1616
],
1717
"require": {
18-
"php": "^8",
18+
"php": "^8.1",
19+
"league/event": "^3.0",
1920
"myclabs/php-enum": "^1.8",
21+
"psr/event-dispatcher": "^1.0",
2022
"psr/log": "^2.0 || ^3.0"
2123
},
2224
"require-dev": {
@@ -56,10 +58,10 @@
5658
},
5759
"config": {
5860
"allow-plugins": {
59-
"phpstan/extension-installer": true,
61+
"captainhook/plugin-composer": true,
6062
"dealerdirect/phpcodesniffer-composer-installer": true,
6163
"ergebnis/composer-normalize": true,
62-
"captainhook/plugin-composer": true,
64+
"phpstan/extension-installer": true,
6365
"ramsey/composer-repl": true
6466
},
6567
"sort-packages": true

devenv.lock

-152
This file was deleted.

devenv.nix

-52
This file was deleted.

devenv.yaml

-5
This file was deleted.

flake.lock

+26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)