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,071 | 1,078 | 179 | 7K | 0 | 34.9 | 13.8 | MIT | 3 months ago | |
| laravel-lang/routes | 0.88 | — | 8 | 8 | 5 | 202K | 0 | 21.5 | 63.1 | MIT | 2 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 | 36K | 0 | 28.7 | 26.4 | MIT | 3 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 | 185 | 274K | 0 | 39.2 | 33.7 | MIT | 3 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,740 | 1,760 | 286 | 474K | 0 | 41.0 | 37.9 | MIT | 3 months 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 | 736 | 26 | 1M | 0 | 19.1 | 51.1 | MIT | 4 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. | 270 | 290 | 47 | 2M | 0 | 2.8 | 53.5 | 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 | 122K | 3 | 10.4 | 19.4 | — | 3 years 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 | 22K | 1 | 1.4 | 32.6 | 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 | 4 | 0 | 3.6 | 9.7 | MIT | 2 years ago | |
| team-reflex/discord-php | 0.73 | DiscordPHP is a PHP wrapper for Discord’s REST, gateway, and voice APIs. Build Discord bots that run in CLI with ReactPHP-style async handling. Includes limited docs/class reference and community integrations like Laracord for Laravel. | 1,072 | 1,075 | 251 | 13K | 5 | 49.8 | 24.1 | MIT | 2 weeks 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. | 0 | 40 | — | 1M | — | 8.1 | 55.3 | — | — | |
| loophp/collection | 0.71 | A high-performance, functional-style collection library for PHP. Provides lazy, immutable, chainable operations built on generators to map, filter, reduce, group, zip, and more. Works standalone or with Laravel, aiming for speed, memory efficiency, and fluent pipelines. | 744 | 746 | 34 | 31K | 1 | 14.0 | 22.8 | MIT | 1 year ago |
How can I help you explore Laravel packages today?