Componette

Componette

nexendrie

nexendrie / utils 1.8.1

Collection of various utilities for your PHP project

download-cloud-line composer require nexendrie/utils

Utils

Total Downloads Latest Stable Version Latest Unstable Version Build Status Code Coverage License

Collection of various utilities for you PHP project.

Installation

The best way to install it is via Composer. Just add nexendrie/utils to your dependencies.

Documentation

See: https://nexendrie.gitlab.io/utils .

  • 1.8.1 Version 1.8.1

    Changelog:

    • fixed compatibility with PHP 8.1
  • 1.8.0 Version 1.8.0

    Changelog:

    • raised minimal version of PHP to 7.4
    • used typed properties (possible BC break)
  • 1.7.0 Version 1.7.0

    Changelog:

    • dropped support for Nette 2.4
    • raised minimal version of PHP to 7.3
  • 1.6.1 Version 1.6.1

    Changelog:

    • allowed Nette 3
  • 1.6.0 Version 1.6.0

    Changelog:

    • added optional parameter $count to (T)Collection::hasItems()
    • marked classes Constants, Intervals and Numbers as final (possible BC break)
    • allowed to filter by return value of item's method in collections
  • 1.5.1 Version 1.5.1

    Changelog:

    • fixed (T)Collection::removeByFilter() failing when multiple items match the filter
  • 1.5.0 Version 1.5.0

    Changelog:

    • added methods getItem, removeByFilter, getIndex to (T)Collection
    • raised minimal version of PHP to 7.2
    • allowed to filter by class in collections
  • 1.4.0 Version 1.4.0

    Changelog:

    • added methods hasItems/getItems and fromArray to (T)Collection
    • added method Numbers::isInRange()
  • 1.3.0 Version 1.3.0

    Changelog:

    • collections can have max size
    • added support for custom checkers to collection
    • reimplemented default checks in TCollection as checkers (possible BC break)
    • added method (T)Collection::toArray()
  • 1.2.0 Version 1.2.0

    Changelog:

    • some refactoring/code cleaning
    • added classes Constants and Numbers
    • added option to lock collection
  • 1.1.0 Version 1.1.0

    Changelog:

    • added trait-based version of Collection
    • added support for unique collections
  • 1.0.0 Version 1.0.0

    First version.

Componette Componette felix@nette.org