laravel-collection-macros
A set of useful Laravel collection macros (by spatie)
macroable
A trait to dynamically add methods to a class (by spatie)
laravel-collection-macros | macroable | |
---|---|---|
3 | 2 | |
1,687 | 669 | |
0.5% | 0.7% | |
5.4 | 2.8 | |
about 2 months ago | about 1 month ago | |
PHP | PHP | |
GNU General Public License v3.0 or later | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
laravel-collection-macros
Posts with mentions or reviews of laravel-collection-macros.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-24.
-
Spatie Open Source denies any PRs that doesn't benefit their own applications?
https://github.com/spatie/laravel-collection-macros/pull/166 (Thank you, but I'm going to pass for now. We only add macro's that we use ourselves.)
-
Supercharge your Laravel 8 Collections
I recently came across an amazing package: spatie/laravel-collection-macros.
macroable
Posts with mentions or reviews of macroable.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-08.
-
PHP Macro - Dynamically extend PHP objects
What's the difference with https://github.com/spatie/macroable ?
-
[RFC] Deprecate dynamic properties has passed!
It makes it harder to extend classes without using inheritance and DI. For example any macros you add with https://github.com/spatie/macroable now can't save any data to the class you are extending, which was useful under some circumstances. The only workaround I can think of would involve some horrible hack involving globals and spl_object_hash.
What are some alternatives?
When comparing laravel-collection-macros and macroable you can also consider the following projects:
psl - 📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers
Laravel-Zero - A PHP framework for console artisans
Laravel - Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.
PHPT - The PHP Interpreter
figlet-fonts - my collection of figlet / toilet ascii art fonts
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
Knapsack - Collection pipeline library for PHP
macro - Customize code using closures
Arrayy - 🗃 Array manipulation library for PHP, called Arrayy!
map - PHP arrays and collections made easy
laravel-collection-macros vs psl
macroable vs Laravel-Zero
laravel-collection-macros vs Laravel
macroable vs PHPT
laravel-collection-macros vs figlet-fonts
macroable vs Rector
laravel-collection-macros vs Knapsack
macroable vs macro
laravel-collection-macros vs Arrayy
laravel-collection-macros vs map