NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #4453 most downloaded on Packagist
A (memory) friendly, easy, lazy and modular collection class.
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 12 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
104 releases · first in 2019
chore(deps): update dependency infection/infection to ^0.29 #343
One column per quarter.
fix: doctrine/collections deprecations 5b39b54
refactor: remove obsolete All class #338
loophp/iterators: 3.1.1 -> 3.2.0 #337
sort: improve sort operation #334
feat: implements stable sorting `#333`
Breaking change: feat: update Collection::fromFile constructor `#322`
pair and chunk operation when using empty input #327Collection::fromFile constructor #322dispersion operation #320#321entropy operation #317duplicate example #315#312#311pair and chunk operation when using empty input (#327) #326ed5ef20b2ef168df8d3e981b1195437445580c7a12Entropy operation 138fc0e7be4f2946db7b8c1acfbb9bdd8569b4cf931101f3asort operation cc26a56feat: add countIn operation `#306`
countIn operation #306length parameter to fromFile constructor #307#308#3095321ebcDeterminateSystems/nix-installer-action 6a4374b.editorconfig d700df0range operation may now yield int|float instead of float 64ba910f346796fizz-buzz example 4d3d325groupBy example 55f1989chore(deps): update cachix/install-nix-action action to v22 `#305`
#305#301#300#2991bfd964composer.json ff6299f309f4b013ef4873847ab02cdf12852540ff3c06179a081ef19ad6d0fd062040docs: Update changelog. `4e60bd1`
docs: update changelog `958202c`
ci: add missing pcov extension `#297`
pcov extension #297#296#287IsNotEmpty operation #292reducing operations #288#28630682efclover coverage 5b510c20273e642a62cf2631a57fcd9b36d3aab1e1composer.json 70f95b65dd2a88find operation 50d416a1aca43629b0456unfold static operations a429c78531249e999c257foldRight operation f717078groupBy update typing information b55fec7groupBy b5662f4baseline 61f6367Matching operation, add inline SA annotations e9cc0f3755f8b3empty constructor 9a4b0bbfoldleft, reduce, update return types and tests 19907fcfoldleft operation c3a536b507175dlast operation improvements 7c60e2ctails SA improvement 8e3de94tails operation improvements 58c840bcompare minor improvement 5e46af0reduce operation static annotations 5c7d401callable into Closure f30c87areduce operation, use ReduceIterableIterator 884f64c0453ee36f320a608af31b3571e0c937740d92f778cextending collection section with code example 0c1d439c93f350Breaking change: refactor: Refactor Reduce operation. `#259`
#283AbstractCollection abstract class #270#275#276#274unfold constructor is not variadic anymore #269#266#267Reduce operation. #259#263#261#258Compare, Max, Min #255#253pcov for coverage. #252#251#250#249#248Averages operation. #238every operation #247phpspec/prophecy-phpunit. #246scanLeft1 operation. #245#244every operation. #242#243CallbackArrayReducer. #241#240#239#235Iterator with iterable almost everywhere. #233new keyword on some operations. #231StringIteratorAggregate. #234#227RandomIterator #230Generator - using IteratorAggregate. #229loophp/iterators #228#264Tails operation, performance improvements d71b2efUnpack operation. 34c36dac6b9164composer.json and fix auto-changelog command 6949831composer.json 1ba6085908d3e5Tails operation ea4b92cTails operation, performance improvements 1c28be3Window operation: minor performance improvement 486567atests for PHP 8 25067cbdocs for PHP 8 1d9c134src for PHP 8 4a4a60b4dc36feIfThenElse operation eb781328ee11347154f090e8b0e5d7bba3a808578aCollection interface use statements 6bbb829span and partition operations 31d4b31747e1f8unfold signature d11adddf78dc32Wrapable interface" 1cf67d1Wrapable interface 3866fe5template-extends annotations a3f8b45use statements 19eb14euse statements dce7e48cd4a6f6.envrc b402706c49e62bGroupBy static analysis annotations. d74d4f8473f105c1998e92fb44cfSince and Until operation - fix sa bde565cCompare operation - fix sa 06729d7ea90e236a275510dae4c269818b3pipe documentation ec10eebphpcs annotations a385a6adae9eb6ca6f6022d09f65bac7f9b376bd660f2db5b8d1296595e60b5e78546escrutinizer/ocular 583668f079a7b9a6653b8scanLeft and scanRight has been updated and now need two arguments instead of one. 9355dea1233c4925ed0506c5e44cdiff SA tests ece6067diff SA tests 0af490e28e76636ec05634197638e546136Pair operation eed0c7e2a0ed02Duplicate operation with Distinct de09c01806fa1831f87a82e50e49aacb5e998fe09aphpsandbox badge and link. 9f02c7c679b353flake.nix file. 8ddd35dd34980d7810400composer command to run the documentation server. 15dc6bda7833943f90ed6docker stuff. 88e92b6loophp/iterators^2. 1343255loophp/iterators^2. 691abd46f1eda34463a37fc3a790prettier in required status checks. c8687cf9551288.gitattributes. 411f9375ab0f1fa65faf4ff03ea6bbfb1c825d1c251ef0edcdistinct tests. 6147f9ctests src directories. ff8fea0distinct tests. edc521f7f43d4b738cc6eFilter and Reject operations. 186c003066504a25b2a69Pack operation. 32462adEquals operation, fix typing information. eff8102Same operation, fix typing information. 5a91d8aReduction operation, fix typing information. 466232bReductionIterableAggregate. 0d4d7a2ReductionIterableAggregate. a168b6d3b49c3a16e3c7a3017e2ac148d1631cdc99ConcatIterableAggregate. d90986dMapIterableAggregate. ea45575FilterIterableAggregate. 84b42c2SimpleCachingIteratorAggregate. 51e7d6f@psalm-suppress annotation. ab5f9f0a1873a7a6b4791447bd030e30363c835e1c679834b843c9c4Reverse operation. 545bd60ext-xdebug from composer.json for now. 6209f4b2ce3510f08d88ee9c44605987ab7random operation: use RandomIterableAggregate. 78e7a6f8afedbf7a050410d2595eEvery operations. f523cdbEvery operations. de1edb32a0c84df0612e7Head operation. 33e2f156cc2a05Unwindow operation. c9562fdTranspose. 38cca46new keyword everywhere. aacf7dfnew keyword everywhere. a6db56e35bf8c2new keyword everywhere. 8a3a05a79ebed1Drop rely on Limit now. 16e220ad6d8aa69ac298a11bee1519616a6669a9567af1d80.php-cs-fixer.dist.php. 0fba6da3b773ade19bde8TypedIterator - Add test. b9aab65cbc6c20StringIterator - Add test. fe15a5bStringIterator - Add test. a66242deb61a90TypedIterator - Add test. 7280ebc468d71df54b00204d753110e7eedUnpack operation - Use UnpackIterableAggregate. aaa289a741cbce8ef547dfrom keyword. d179b116df94eereturn keyword. 7683362782a48ed11214978d5d7a351676b58a3919Same operation - proper sign. 15bf8deSame operation must yield. 317b519Same operation, clear remaining todo. 518209bfromGenerator operation. b2e1dc9b2028d8DropWhile operation. e794b79Sort operation. 1935d11scrutinizer/ocular upload. 5f956e2525e32eContributing section. 36cdcd1scrutinizer/ocular upload. 5e6738020a13524fd27fd603eb82fed4fbcd11d032Intersperse operation - do not throw when values are negative. 1497db747eb342401cf20cf34e8dFix intersperse operation. `#226`
Fix PHP 8.1 Deprecations #225 `0cb2e0e`
Template param order matters? `#218`
[PHPStan Baseline] Fix Errors Part 2 + Modify Unfold Operation `#217`
Unfold Operation #217#216#212All operation for standalone usage #215all operation to prevent data loss #209#214#207Find operation #204Current operation - Let specify a default value #205#203Flipable interface. #200#197a55e97a49d1673MatchOne operation - Add missing typing informations. f66b407MatchOne operation. 1e6ad7aRandom and Shuffle operations. cefe0f5Wrap operation. ef61f57Update various typing information `#196`
#196#195#194inits operation #191Duplicate and Distinct operations in point free style. #188#190Init operation in point free style. #186combine operation in point free style. #187#184Transpose operation in point free style. #178Zip operation in point free style. #181Window operation in point free style. #179#183#180Collapse operation in point free style. #182product operation in point free style. #17705beff2RandomIterator types. 5a5ae1dUnpair operation return types. 885059f08199caf9b7c1cRangeable interface (to backport to master) da430f9Zipable interface (to backport to master) 7e47439Initsable interface (to backport to master) 711f3c7Groupable interface (to backport to master) 6c24b7eImplode and Unlines operation. 05bbf8eFrequency operation return type and minor optimizations here and there. a1964f4Transpose operation in point free style - add missing documentation (#178) bd0ec78Window operation. a2ee653Breaking change: refactor: Make constructor private. `#163`
#174Span and Partition in point-free #175Distinct and Duplicate operations. #168#169#164#171#170#167#166#165#163#153#162::fromGenerator constructor. #150#161#157#156Same #155Reduce operation #139Equals Operation #152#154stable docs instead of latest #151#148#146#145#143#144#141#142#140Reverse operation - optimize and remove todos. #138#137#136#133#132Map to only take a single callback #134#131::partition() and ::span() #124#130#127Reject operation. #125Filter operation. #12674d3069404d0b7c6488a45f4ef9eed3c09540cc177d8a8d50Introduce MapN | Deprecate Map With Multiple Callbacks | Static Analysis Checks `#112`
#122#121#120#115#117#111#114#112#113#109#108#106#105strict Operation #102#104#101#100#975edb9e7c7ba932c8ad46658d8035defb90377201ba997efd9023d399366c79bfb641e86a7f8c59d21114fb9fcd78921563717b364cd8ef323f18553SA Checks: fromIterable, empty `#96`
#96#94#93#90#89#88#86#87#83#85#84#79#81#78drupol/php-conventions #76docs: Update changelog. `a32164e`
docs: Update changelog. `a53167d`
a53167d228831eafe71bfd31df6f6e5c7581425343chore(deps): Bump actions/cache from v2.1.4 to v2.1.5 `#75`
docs: Update changelog. `2a5a141`
docs: Update Changelog. `e183f29`
collection: implements missing \Countable interface `#74`
Breaking change: fix: Update behavior of Apply operation. `e4fa034`
#72#70#68#69#67#66#64#65#63#60#61#71e4fa034fb542bedbb930771a7693730a6383c2d3e3c5a9e58cd0f8f89780bbd152447b5aa1d02f62085984ea356be4aec3e967e0127285f8b990edb406afee97f8479bc6d61e932704442197bebd8c40f51b24940d87d1551eff672797d5d0567c277705b94e5918356d2e65a0f2d09634d626c6c1430879d8b2a861cb9f7502dc088cae79e646c8c102a45d0a91335d1bdbdfc8c3d9b80e676bc7aebfe837bd76710c52fae36094Breaking change: refactor: Update Since operation. `0420906`
docs: Update changelog. `1e36e85`
docs: Update changelog. `d7cd376`
Use key and current operation at the same time `#58`
#5845a46b8a7b6a9c9472d0309d053177debe9d8a82a5e1d91ecc8d66c1804b4def09ae23739e9c6docs: Update changelog. `4c4b77d`
docs: Update changelog. `6acbd55`
docs: Update changelog. `02116ab`
docs: Update changelog. `b08ee64`
chore(deps-dev): Update drupol/php-conventions requirement from ^2.0.3 to ^2.0.3 || ^3.0.0 `#55`
#55f826fa447e0f5ea1d636f17eac77eafa573aa7701d4390145497e3321ed8a16chore(deps-dev): Update friends-of-phpspec/phpspec-code-coverage requirement from ^5 to ^5 || ^6 `#53`
Update ScanLeft so it doesn't go further if the iterator is not valid. `#49`
Add $seed parameter to RandomIterator `#47`
chore(deps-dev): Update phpspec/phpspec requirement from ^5.1.2 || ^6.2.1 to ^5.1.2 || ^6.2.1 || ^7.0.0 `#43`
#44#43#38#39#42docs: Update changelog. `cd260e2`
Fix asyncMap warning in the docs `#41`
docs: Update changelog. `b97df67`
New asyncMap() operation (featuring amphp!) `#40`
Breaking change: refactor: Update constructors. `a080fae`
#34a080fae90c732c3f847a17d81431504567aeed419c1aae0979fd2f9d693e7a6ef8e8daf84063d02dc0a47386746dc9a311refactor: Deprecate Collection::with() static constructor. `8060689`
8060689chore(deps-dev): Update vimeo/psalm requirement from 3.17.1 to 3.17.2 `#35`
#35#30#32#31b3b3c624a395bd0529610c3c1dd007b0868053cb80958dc79464ff15docs: Update changelog. `1b07b0d`
chore(deps): Bump actions/checkout from v2.3.2 to v2.3.3 `#27`
Breaking change: refactor: Remove Reduce operation. `42934a9`
42934a94cedd34082384bb761ce7a99e72a07fbce4f6828f0e3b3261bca5780ce14a0da7df56c248e5a4docs: Update changelog. `46911c7`
docs: Update changelog. `ea9a8f1`
ea9a8f11299853ffae1082686f050e111ab9d2579c7dfe75f824ed657d2368888350e213b5d6d675af9adocs: Update changelog. `a8a3eec`
Breaking change: refactor: Update Compact operation. `10fd55f`
10fd55fd28abcd1c669b247b4716721105272df47ab6aef32ab9fde224cd4a50835f2d6ce7b138b9aaa31183407c01274f98ced08ff0c7e4317483e18b9b1dc034101ecdbc187985455516f786Update vimeo/psalm requirement from 3.14.2 to 3.16 `#26`
docs: Update changelog. `249f0f3`
249f0f3abb4e4ff7ba5282d5d9f68441ad6b2d2a82da6caa9Breaking change: refactor: Update Associate operation. `168eb1a`
### Commits - Update changelog. `3340899` - Fix Psalm version. `f1cd23a`
Your coding agent can read these notes before it upgrades. Set up the MCP server →