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

Collect Laravel Package

feo-cz/collect

feo-cz/collect is a Laravel/PHP package offering practical collection utilities for cleaner data handling. It provides fluent helpers to collect, transform, filter, and organize values with a simple, expressive API, reducing boilerplate and keeping everyday application code readable.

View on GitHub
Deep Wiki
Context7

A Collections-only split from Laravel's Illuminate Support

Frequently asked questions about Collect
What is feo-cz/collect and how does it differ from illuminate/support?
feo-cz/collect is a Collections-only split from Laravel's Illuminate Support package. Instead of pulling in the full support library, it packages the collection utilities so you can use Laravel's fluent collect, transform, filter, and organize API in your own projects. The difference is scope: illuminate/support bundles many unrelated helpers, while this package focuses on collections. That makes it a lighter dependency when collections are all you need.
How do I install feo-cz/collect with Composer?
Install it with composer require feo-cz/collect. Once installed, make sure your project loads Composer's autoloader, typically by requiring vendor/autoload.php in your entry point. Because it is a plain library rather than a Laravel package, there is no service provider to register and no configuration file to publish. After that you can start using the collection classes directly in your code.
Can I use feo-cz/collect outside of Laravel?
Yes. The whole point of a Collections-only split is to let you use Laravel's expressive collection API without booting the framework. It works in plain PHP scripts, CLI tools, WordPress-style projects, or other frameworks where you only want the data-handling helpers. Laravel applications can use it too, though the framework already ships collections by default.
Which PHP and Laravel versions does feo-cz/collect support?
The exact PHP requirement and supported Laravel branches are declared in the package's composer.json and README, so check those before installing. Because the code is a split from Illuminate Support, its collection behavior generally mirrors the Laravel version it was split from. Pin a version in composer.lock and review the repository's changelog before upgrading across major releases.
Does feo-cz/collect include the Arr, Str, or global collect() helpers?
As a Collections-only split, the package focuses on the Collection class and its related collection utilities rather than the broader set of Illuminate Support helpers. Classes such as Arr and Str, along with global helper functions, are generally outside that scope. You can instantiate the Collection class directly instead of relying on a global collect() function. If you need the full helper suite, use illuminate/support or the standard Laravel framework.
How do I create a collection from an array with feo-cz/collect?
Use the Collection class constructor or the make method, for example new Collection([1, 2, 3]) or Collection::make([1, 2, 3]). From there you can chain methods such as map, filter, pluck, sortBy, groupBy, and reduce exactly as you would in Laravel. Remember that a global collect() helper may not be available, so importing the class with a use statement is the safest approach.
Will feo-cz/collect conflict with illuminate/support or Laravel's own Collection class?
Both provide classes in the Illuminate\Support\Collection namespace, so installing them side by side can create ambiguous autoloading or duplicate class definitions. In a Laravel application the framework already provides collections, so adding this package is usually unnecessary. If you use it in a non-Laravel project, keep it as your single source of collection classes and avoid also requiring illuminate/collections or illuminate/support.
How do I test code that uses feo-cz/collect?
You can test it with any standard PHP test runner such as PHPUnit or Pest, since no framework bootstrap is required. Instantiate collections in your test cases and assert against methods like all(), toArray(), count(), or isEmpty() to verify behavior. If your application is a Laravel app, its existing testing helpers and assertions continue to work normally. Keeping collection-building logic in small methods makes those tests fast and readable.
Is feo-cz/collect safe to use in production?
It is a small, focused library, so the main production risks are maintenance activity and upstream parity rather than runtime complexity. Check the repository's recent commits, test coverage, and open issues, and pin a specific version in composer.lock for reproducible deploys. Because it is a split from Illuminate Support, upstream bug or security fixes may reach it later, so monitor the repository when updating dependencies.
What are the alternatives to feo-cz/collect for standalone Laravel collections?
The closest alternatives are illuminate/collections, which extracts just the collection component from Laravel, and community splits such as tightenco/collect. Using the full illuminate/support package is another option if you also want Arr, Str, and other helpers. Compare them on PHP version requirements, update frequency, and whether the class namespace matches what your code already imports.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons