Type-safe collections based on Laravel Collections
Added support for simple types recognized by the get_debug_type()
function.
[!NOTE]
Laravel 11 added theensure()
collection method that verifies that all elements of a collection are of a given type or list of types. However, this verification does not prevent items of different types to be added at a later time.
Published by jeromegamez over 1 year ago
Added support for Laravel 10
Published by jeromegamez over 2 years ago
Collections now include the same template typings as the upstream Illuminate collections
Published by jeromegamez over 2 years ago
Collections are now untyped when using the map()
method.
Published by jeromegamez over 2 years ago
Published by jeromegamez almost 4 years ago
This library is now based on illuminate/collections
and tested with PHP 7.4 and 8.0.
Published by jeromegamez over 4 years ago
Published by jeromegamez over 4 years ago
Version 2.x is incompatible with Laravel >=7 (the next major release will fix that)
Published by jeromegamez almost 5 years ago
LazyTypedCollection
^5.4|^6.0
Published by jeromegamez about 7 years ago
untype()
to return an untyped collectionmap()
to support working with an untyped collection (use untype()
instead)Published by jeromegamez about 7 years ago
Initial release