ghostwriter/collection
Provides a Collection implementation for PHP
2.1.1
4.5M downloads/mo
#1606 most downloaded on Packagist
ghostwriter/collection
What this package is like to depend on
Last release 2 months ago
19 Jun 2026
Ships unpredictably
gaps range from 3 weeks to 2.1 years
Some releases are documented
notes for 10 of 19 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
19 releases · first in 2022
2 releases in the last 12 months
see the full history below
Release timeline
19 releases · Jun 2022 to Jun 2026Releases
latest 19-
2.1.119 Jun 2026 -
2.1.017 Apr 2026 -
2.0.022 Feb 2024Release notes
Open source →Drop support for PHP
<= 8.2Added
- Class
Ghostwriter\Collection\Interface\CollectionInterfacehas been added - Class
Ghostwriter\Collection\Interface\ExceptionInterfacehas been added - Method
Ghostwriter\Collection\Collection::from()was added - Method
Ghostwriter\Collection\Collection::new()was added
Removed
- Class
Ghostwriter\Collection\ExceptionInterfacehas been deleted - Method
Ghostwriter\Collection\Collection::fromGenerator()was removed - Method
Ghostwriter\Collection\Collection::fromIterable()was removed
Changed
- Exception class
Ghostwriter\Collection\Exception\FirstValueNotFoundExceptionimplementsGhostwriter\Collection\Interface\ExceptionInterface - Exception class
Ghostwriter\Collection\Exception\LengthMustBePositiveIntegerExceptionimplementsGhostwriter\Collection\Interface\ExceptionInterface - Exception class
Ghostwriter\Collection\Exception\OffsetMustBePositiveIntegerExceptionimplementsGhostwriter\Collection\Interface\ExceptionInterface
Full Changelog: 1.4.0...2.0.0
- Class
-
1.4.023 Aug 2023Release notes
Open source →Add
Collection::each
Removeghostwriter/optionFull Changelog: 1.3.2...1.4.0
-
1.3.211 Jul 2023 -
1.3.101 May 2023Release notes
Open source → -
1.3.022 Mar 2023Release notes
Open source →What's Changed
- Lock file maintenance by @ghostwriter in #12
- Refactor
Collection::containsby @ghostwriter in #13
Full Changelog: 1.2.0...1.3.0
-
1.2.017 Jan 2023Release notes
Open source →What's Changed
- Lock file maintenance by @ghostwriter in #10
- Drop PHP 8.0 by @ghostwriter in #11
Full Changelog: 1.1.0...1.2.0
-
1.1.025 Dec 2022Release notes
Open source → -
1.0.002 Dec 2022Release notes
Open source →What's Changed
- Update composer dependencies by @ghostwriter in #6
- Bump psalm to 5.0 by @ghostwriter in #7
Full Changelog: 0.5.1...1.0.0
-
0.5.130 Sep 2022Nothing published for this version
-
0.5.006 Aug 2022Nothing published for this version
-
0.4.113 Jul 2022Nothing published for this version
-
0.4.013 Jul 2022Nothing published for this version
-
0.3.013 Jul 2022Nothing published for this version
-
0.2.023 Jun 2022Nothing published for this version
-
0.1.223 Jun 2022Nothing published for this version
-
0.1.123 Jun 2022Nothing published for this version
-
0.1.022 Jun 2022Nothing published for this version