publishing-kit / utilities
PHP utility classes
0.0.7
2021-05-09 10:02 UTC
Requires
- php: >=7.4
Requires (Dev)
- infection/infection: ^0.15.0
- mockery/mockery: ^1.3
- php-coveralls/php-coveralls: ^2.2
- phpunit/phpunit: >=8.0
- psy/psysh: ^0.9.12
- squizlabs/php_codesniffer: ^3.0
- vimeo/psalm: ^4.3
README
PublishingKit/Utilities is a set of utility classes, including:
- A collection class
- A lazy collection class
- A string class
Install
Via Composer
$ composer require publishing-kit/utilities
Usage
$coll = new PublishingKit\Utilities\Collections\Collection([]); $lazy = new PublishingKit\Utilities\Collections\LazyCollection(function () { for ($i = 0; $i < 5; $i++) { yield $i; } }); $str = new PublishingKit\Utilities\Str('foo');
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email 450801+matthewbdaly@users.noreply.github.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.