publishing-kit / utilities

PHP utility classes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

utilities

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.

About

PHP utility classes

License:MIT License


Languages

Language:PHP 100.0%