ixolit / interoperability
Ixolit interoperability interfaces for PHP
Installs: 6 674
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 12
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- psr/http-message: ^1.0
- psr/log: ^1.0
This package is auto-updated.
Last update: 2024-11-29 04:50:41 UTC
README
This package declares the common interfaces used among Ixolit packages. It is intended as an interoperability framework for our projects.
Interface overview
Array conversion
These interfaces help you with converting an object from- and to an array.
- ArrayConversionExceptionInterface: All exceptions that happen during a conversion should implement this interface.
- ArrayConvertibleInterface: Declares the toArray() method.
- ArrayLoadableInterface: Declares the fromArray() method.
- ArraySerializableInterface: Declares both the toArray() and fromArray() interface.
- ArrayObjectInterface: An interface that implements all interfaces from the built-in \ArrayObject class to help with creating array-compatible classes.
PHP-FIG
This package also pulls in the latest PHP-FIG packages to aid in interoperability:
- psr/log
- psr/http-message
Contributing
All contributions are welcome. Please follow the following rules:
- Only interfaces, no specific implementations.
- All interfaces and methods need to be documented according to their intent.
- All names should be unambiguous regarding their function, even without reading the documentation.
- All contributions are made under the MIT open source license.