This package declares the common interfaces used among Ixolit packages. It is intended as an interoperability framework for our projects.
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.
This package also pulls in the latest PHP-FIG packages to aid in interoperability:
- psr/log
- psr/http-message
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.