maksimovic / interop-config
Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and ensures a valid config structure. It can also be used to auto discover factories and to create configuration files.
Requires
- php: ^8.1
Requires (Dev)
- phpunit/phpunit: ^10.5
- squizlabs/php_codesniffer: ^3.0
Suggests
- psr/container: To retrieve config in your factories
Replaces
README
Fork of sandrokeil/interop-config — maintained for PHP 8.1–8.5 compatibility.
interop-config provides interfaces and a concrete implementation to create instances depending on configuration via
factory classes and ensures a valid config structure. It can also be used to auto discover factories
and to create configuration files.
Installation
$ composer require maksimovic/interop-config
Requires PHP 8.1 or later.
Fork rationale
The upstream package was last released in 2020 and is no longer maintained. This fork:
- Bumps minimum PHP to 8.1
- Fixes implicit nullable type deprecations (PHP 8.4+)
- Fixes
nullas array offset deprecation - Upgrades PHPUnit to
^10.5with schema migration - Replaces Travis CI with GitHub Actions (PHP 8.1–8.5 matrix)
- Suppresses
posix_isattywarning on user-space streams
Behavior is otherwise unchanged.
Documentation
See the original documentation at sandrokeil.github.io/interop-config.
License
Released under the BSD-3-Clause License.