You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-12Lines changed: 5 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# chillerlan/php-settings-container
2
2
3
-
A container class for immutable settings objects. Not a DI container. PHP 7.4+
3
+
A container class for immutable settings objects. Not a DI container. PHP 8.1+
4
4
-[`SettingsContainerInterface`](https://github.com/chillerlan/php-settings-container/blob/main/src/SettingsContainerInterface.php) provides immutable properties with magic getter & setter and some fancy - decouple configuration logic from your application!
5
5
6
6
[![PHP Version Support][php-badge]][php]
@@ -35,7 +35,7 @@ A container class for immutable settings objects. Not a DI container. PHP 7.4+
35
35
```json
36
36
{
37
37
"require": {
38
-
"php": "^7.4 || ^8.0",
38
+
"php": "^8.1",
39
39
"chillerlan/php-settings-container": "dev-main"
40
40
}
41
41
}
@@ -50,13 +50,6 @@ It takes an `iterable` as the only constructor argument and calls a method with
50
50
51
51
### Simple usage
52
52
```php
53
-
class MyContainer extends SettingsContainerAbstract{
54
-
protected $foo;
55
-
protected $bar;
56
-
}
57
-
```
58
-
Typed properties in PHP 7.4+:
59
-
```php
60
53
class MyContainer extends SettingsContainerAbstract{
0 commit comments