publishing-kit/utilities

0.0.7 2021-05-09 10:02 UTC

This package is auto-updated.

Last update: 2024-04-09 16:03:12 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.