Stdlib for PBRaiders¶
PBRaiders\Stdlib is a set of components that implements general purpose utility classes and functions for different scopes.
- String and Array usefull functions.
- Reflection trait to access protected/private methods/properties. Used in test classes.
Requirements¶
The package requires PHP >=7.2
Note
You may check if your PHP and extension versions match the platform requirements using
composer diagnose
and
composer check-platform-reqs
This requires Composer to be available as composer.
Info
For specifics, please examine the manifest composer.json file.
Installation¶
The package is installable and PSR-4 autoloadable via Composer as pbraiders/stdlib.
-
For no dev use:
composer install --no-dev
-
For dev use:
composer install
Alternatively, download a release, or clone this repository, then map the Pbraiders\Stdlib namespace to the package src/ directory.
Test¶
To run the unit tests at the command line, issue at the package root:
composer install
and then
composer test
This requires Composer to be available as composer.
Contributing¶
Thanks you for taking the time to contribute. Please fork the repository and make changes as you'd like.
If you have any ideas, just open an issue and tell us what you think. Pull requests are also warmly welcome.
If you encounter any bugs, please open an issue.
Be sure to include a title and clear description,as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
License¶
PBRaiders\Stdlib is open-source and is licensed under the MIT License.