This package contains a set of lightweight utilities for common use cases.
It provides the following extensions to core PHP functionality:
- Contracts – Some common interfaces for interoperability
- Exceptions – A common exception hierarchy (
ExceptionInterface) - Class Strings – Many useful string and text functions
- Class Arrays – Functions to check and manipulate arrays
- Class Arrays\ArrayEntry – Access nested array entries by key or path
- Class Callback – PHP callback related functions
- Trait StaticClass – Create purely static classes
Install Composer if you don't already have it present on your system.
To install the library, run the following command and you will get the latest version:
$ composer require flamecore/common
- You must have at least PHP version 8.0 installed on your system.
- Recommended: the
mbstring,iconvandintlextensions for full Unicode support inStrings.
If you discover any security related issues, please email security@flamecore.org instead of using the issue tracker.