typed-collection

Type-safe collections based on Laravel Collections

Downloads
157.5K
Stars
37
Committers
3
typed-collection - 7.1.0 Latest Release

Published by jeromegamez 7 months ago

Added support for simple types recognized by the get_debug_type() function.

[!NOTE]
Laravel 11 added the ensure() 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.

typed-collection - 7.0.0

Published by jeromegamez 7 months ago

  • Added support for Laravel 11 (#21)
  • Dropped support for Laravel 9
  • Added a new typedCollect() helper method, based off the collect() helper method that comes with the Laravel framework. (#20)
typed-collection - 6.1.0

Published by jeromegamez over 1 year ago

Added support for Laravel 10

typed-collection - 6.0.0

Published by jeromegamez almost 2 years ago

The TypedCollection and LazyTypedCollection classes are now abstract to make clear that they shouldn't be instantiated directly (#13)

typed-collection - 5.2.0

Published by jeromegamez over 2 years ago

Collections now include the same template typings as the upstream Illuminate collections

typed-collection - 5.1.0

Published by jeromegamez over 2 years ago

Collections are now untyped when using the map() method.

typed-collection - 5.0.0

Published by jeromegamez over 2 years ago

  • Add support for Laravel ^9.0
  • Drop support for Laravel <9.0
typed-collection - 4.0

Published by jeromegamez almost 4 years ago

This library is now based on illuminate/collections and tested with PHP 7.4 and 8.0.

typed-collection - 3.0.1

Published by jeromegamez over 4 years ago

Fixed TypedCollection::push() (#7)

typed-collection - 3.0.0

Published by jeromegamez over 4 years ago

  • Add support for Laravel ^7.0
  • Drop support for Laravel <7.0
typed-collection - 2.3.0

Published by jeromegamez over 4 years ago

Version 2.x is incompatible with Laravel >=7 (the next major release will fix that)

typed-collection - 2.2.1

Published by jeromegamez almost 5 years ago

  • The pluck() method didn't work as expected (#4)
  • The keys() method didn't work as expected
typed-collection - 2.2.0

Published by jeromegamez almost 5 years ago

Added support for arrayable items (#3)

typed-collection - 2.1.0

Published by jeromegamez almost 5 years ago

  • Added LazyTypedCollection
  • Ensured support for Laravel/Illuminate ^5.4|^6.0
typed-collection - 2.0

Published by jeromegamez about 7 years ago

  • Added method untype() to return an untyped collection
  • Removed override of map() to support working with an untyped collection (use untype() instead)
typed-collection - 1.0

Published by jeromegamez about 7 years ago

Initial release