Skip to content

Commit

Permalink
feat: named clients, PHP 8.0 EOL, flag metadata, and refactors
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Carrio <[email protected]>
  • Loading branch information
tcarrio committed Apr 30, 2024
1 parent 82d58d2 commit baf628d
Show file tree
Hide file tree
Showing 81 changed files with 1,100 additions and 696 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
2 changes: 1 addition & 1 deletion .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-version: ['8.0', '8.1', '8.2']
php-version: ['8.1', '8.2', '8.3']

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

/features/*.feature

/.devenv*
/.direnv
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
php 8.2.12
php 8.3.0
# php 8.2.12
# php 8.1.11
# php 8.0.24
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

### System Requirements

PHP 8+ is required.
PHP 8.1+ is required.

### Compilation target(s)

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

### Installation and Dependencies

Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![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)
[![Latest Stable Version](http://poser.pugx.org/open-feature/sdk/v)](https://packagist.org/packages/open-feature/sdk)
[![Total Downloads](http://poser.pugx.org/open-feature/sdk/downloads)](https://packagist.org/packages/open-feature/sdk)
![PHP 8.0+](https://img.shields.io/badge/php->=8.0-blue.svg)
![PHP 8.1+](https://img.shields.io/badge/php->=8.0-blue.svg)
[![License](http://poser.pugx.org/open-feature/sdk/license)](https://packagist.org/packages/open-feature/sdk)
[![OpenSSF Best Practices](https://bestpractices.coreinfrastructure.org/projects/6853/badge)](https://bestpractices.coreinfrastructure.org/projects/6853)

Expand Down Expand Up @@ -108,7 +108,17 @@ The OpenFeature project maintains the [open-feature/php-sdk-contrib](https://git

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`.
#### asdf

This package has a `.tool-versions` file for use with PHP version managers like `asdf`.

#### Nix

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`.

#### direnv

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.

### Installation and Dependencies

Expand Down
8 changes: 5 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
}
],
"require": {
"php": "^8",
"php": "^8.1",
"league/event": "^3.0",
"myclabs/php-enum": "^1.8",
"psr/event-dispatcher": "^1.0",
"psr/log": "^2.0 || ^3.0"
},
"require-dev": {
Expand Down Expand Up @@ -56,10 +58,10 @@
},
"config": {
"allow-plugins": {
"phpstan/extension-installer": true,
"captainhook/plugin-composer": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"ergebnis/composer-normalize": true,
"captainhook/plugin-composer": true,
"phpstan/extension-installer": true,
"ramsey/composer-repl": true
},
"sort-packages": true
Expand Down
152 changes: 0 additions & 152 deletions devenv.lock

This file was deleted.

52 changes: 0 additions & 52 deletions devenv.nix

This file was deleted.

5 changes: 0 additions & 5 deletions devenv.yaml

This file was deleted.

26 changes: 26 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit baf628d

Please sign in to comment.