Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Collection Extended

Laravel Collection Extended Laravel Package

softonic/laravel-collection-extended

A Laravel package that extends the native Collection class with handy additional methods, making common array and collection operations more expressive and concise. Drop-in compatible with Laravel's Collection, it helps you write cleaner, more readable PHP code without custom helpers.

View on GitHub
Deep Wiki
Context7

Additional collection methods.

Frequently asked questions about Laravel Collection Extended
How do I install softonic/laravel-collection-extended?
Install it with Composer by running composer require softonic/laravel-collection-extended. Version 5.0.0 requires PHP ^8.5 and Laravel ^12.0, so confirm both before running the command. Check the repository README for any provider registration or publish steps specific to your version.
Which Laravel and PHP versions does laravel-collection-extended 5.0.0 require?
Release 5.0.0 sets minimum requirements of Laravel ^12.0 and PHP ^8.5. Laravel 12 itself supports PHP 8.2+, so this package deliberately sits above the framework's own floor. That means a valid Laravel 12 app running on PHP 8.2, 8.3 or 8.4 is not eligible for 5.0.0.
Does laravel-collection-extended work with Laravel 11 or Laravel 10?
Not on 5.0.0, whose documented constraints are Laravel ^12.0 and PHP ^8.5. For Laravel 10 or 11 you would need to stay on an earlier release line of the package. The 5.0.0 notes advise remaining on a previous version but do not state a support window.
Is softonic/laravel-collection-extended a drop-in replacement for Laravel's Collection?
The package extends Laravel's native Collection class rather than replacing it, so per its overview it is drop-in compatible and existing collection code continues to work. However, 5.0.0 ships with an explicit non-backward-compatible warning, and the release notes only document environment floor changes. Verify behavior against your own test suite before assuming zero code impact.
Why can't Composer resolve laravel-collection-extended on PHP 8.4 or 8.3?
Version 5.0.0 declares PHP ^8.5, so if that constraint is enforced in composer.json, dependency resolution will fail on PHP 8.3 or 8.4. Run composer why-not php 8.5 and composer why-not laravel/framework 12 against your lock file to see exactly what blocks the upgrade. Also audit sibling packages that pin php <8.5 or laravel/framework ^10|^11.
What changed in version 5.0.0 and is there an upgrade guide?
The 5.0.0 release notes document only new minimum requirements (Laravel ^12.0, PHP ^8.5) plus a non-backward-compatible warning; no API-level changes or upgrade guide are referenced. That does not prove there are no behavioral changes, since the notes alone were assessed. Treat the upgrade as a major and diff it against a full regression run.
Is it safe to upgrade laravel-collection-extended to 5.0.0 in production?
Adopt 5.0.0 in production only when Laravel 12 is already running or firmly scheduled and you have a committed PHP 8.5 runtime path, including container images and required extensions. Sequence the work: upgrade the app to Laravel 12 on your current PHP minor, move the runtime to PHP 8.5 while still on 4.x with a full regression pass, then bump the package to 5.x. That isolates PHP-minor fallout from the package change.
What is the support and EOL policy for the 4.x line?
The 5.0.0 notes say to remain on a previous version but publish no support window for 4.x. Ask the maintainers whether 4.x is security-only or fully supported, and for how long. If it stops receiving security fixes, teams that cannot reach PHP 8.5 are stranded on an unpatched dependency, which becomes a compliance issue rather than just a scheduling one.
How do I test laravel-collection-extended methods in my application?
Because the package extends the native Collection, you can test its methods with your normal PHPUnit or Pest collection assertions. Make sure CI runs the same PHP minor you deploy; testing on 8.4 while deploying 8.5 can produce green pipelines that do not represent production. Test on PHP 8.5 specifically, since deprecations promoted to errors and JIT or opcache behavior can differ.
What alternatives exist to softonic/laravel-collection-extended?
You can achieve similar results with native Collection macros, Laravel's built-in higher-order collection methods, or hand-written helper functions. This package centralizes those extra methods so you avoid scattering custom helpers across your codebase. If you cannot meet the PHP 8.5 floor, alternatives or an earlier 4.x release are the practical options.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource