spatie/laravel-collection-macros
Adds a curated set of handy macros to Laravel Collections, extending them with extra helper methods (e.g., positional accessors like second/third, after, getNth, and more). Auto-registers via Composer for quick, drop-in productivity boosts.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/laravel-uptime-monitor | 0.89 | Configurable Laravel uptime monitor that checks site availability and SSL expiry. Sends alerts when a site goes down or recovers using Laravel notifications (Slack, mail, Telegram, or custom channels). Includes scheduling, history, and robust monitoring options. | 1,070 | 1,079 | 179 | 14K | 0 | 32.0 | 17.4 | MIT | 4 months ago | |
| laravel-lang/routes | 0.88 | — | 8 | 8 | 4 | 248K | 0 | 18.5 | 61.7 | MIT | 4 months ago | |
| spatie/laravel-tail | 0.87 | Tail your Laravel application logs from the command line. Run php artisan tail to follow local single or daily logs, or tail remote environment logs over SSH (e.g., production) with configurable host, user, log directory, and optional file selection. | 748 | 758 | 45 | 37K | 0 | 26.2 | 26.0 | MIT | 5 months ago | |
| spatie/laravel-fractal | 0.85 | Laravel/Lumen wrapper for League Fractal to transform API data with a fluent, expressive syntax. Supports collections, includes, facades, and helper shortcuts to easily shape Eloquent results into consistent JSON-ready arrays. | 1,910 | 1,931 | 184 | 301K | 0 | 36.3 | 33.6 | MIT | 5 months ago | |
| spatie/laravel-tags | 0.83 | Add flexible tagging to Laravel Eloquent models with the HasTags trait. Create, attach, detach, and query tags with ease, with built-in support for tag types, translations, and sorting—ideal for organizing content across your app. | 1,745 | 1,764 | 285 | 514K | 0 | 45.5 | 39.7 | MIT | 1 month ago | |
| spatie/macroable | 0.82 | Add methods to any class at runtime with Spatie’s Macroable trait. Register macros with closures or callables and call them like native methods; macros are bound to the class instance for access to $this. Inspired by Laravel’s Macroable implementation. | 729 | 738 | 25 | 2M | 0 | 16.6 | 50.2 | MIT | 5 months ago | |
| illuminate/macroable | 0.82 | Illuminate Macroable adds Laravel’s Macroable trait, letting you register custom methods (macros) on classes at runtime. Extend core components or your own objects without inheritance, enabling flexible, discoverable APIs and clean, centralized extension points. | 83 | 84 | 5 | 2M | 0 | 0.6 | 55.3 | MIT | — | |
| illuminate/collections | 0.81 | Illuminate Collections provides a fluent, chainable API for working with arrays and iterables in PHP. Includes Collection and LazyCollection with powerful mapping, filtering, grouping, sorting, and higher-order operations, used widely across Laravel and standalone projects. | 271 | 291 | 47 | 2M | 0 | 2.8 | 54.2 | MIT | — | |
| tightenco/collect | 0.75 | A standalone port of Laravel’s Illuminate\Support\Collection for non-Laravel projects. Get expressive, chainable, higher-order methods like map, filter, reduce, pluck, groupBy, and more with minimal dependencies—ideal for any PHP app. | 1,495 | 1,541 | 111 | 121K | 3 | 10.4 | 19.4 | — | 3 years ago | |
| spatie/piper | 0.75 | Pipe-operator-first PHP utility library for array and string manipulation. Piper ports many Laravel Collection and Str helpers to standalone functions that work with primitives, so you can compose readable pipelines for filtering, mapping, joining, and more. | 56 | 54 | 2 | 684 | 0 | 19.5 | 17.9 | MIT | 1 month ago | |
| pragmarx/coollection | 0.73 | Coollection repackages Laravel-style collections (via Tightenco\Collect) to let you access items as object properties. Traverse nested arrays/objects with fluent collection methods, then read values like $countries->where('name.common','US')->first()->currency->name. | 94 | 98 | 27 | 24K | 1 | 1.4 | 33.2 | MIT | — | |
| atournayre/collection | 0.73 | Type-safe PHP collections with list/map factories, plus immutable variants. Includes DecimalValue collections with consistent precision handling. Build domain-specific collections by extending TypedCollection to enforce item types and safe manipulation. | 0 | 0 | 0 | 0 | 0 | 3.6 | — | MIT | 2 years ago | |
| phootwork/collection | 0.72 | phootwork/collection is a lightweight PHP collection library providing convenient data structures and fluent helpers to work with arrays and iterables. Includes common operations like map/filter/reduce, searching, sorting, and easy conversion between collection types. | 39 | 40 | 4 | 1M | 0 | 8.1 | 55.3 | MIT | 1 year ago |
How can I help you explore Laravel packages today?