lyhty/macros
lyhty/macros adds lightweight, reusable macros to your Laravel classes. Use a simple Macroable trait to register closures at runtime, extending models, services, and facades without subclassing, and keep your code clean, expressive, and framework-friendly.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| lyhty/macronite | 0.95 | Macronite is a Laravel package for defining and registering macros in dedicated classes with simple configuration. Keep macro logic out of service providers and make custom methods reusable, organized, and easy to maintain. | 0 | — | 0 | — | 1 | 12.7 | — | MIT | 4 months ago |
|
| lyhty/support | 0.87 | Lyhty Support is a small Laravel/PHP utility package that bundles shared support code—helpers, traits, and base classes—to reduce duplication across projects. It offers lightweight, reusable components you can pull into your own applications and packages as needed. | 0 | — | 0 | — | 0 | 12.6 | — | MIT | 4 months ago |
|
| illuminate/macroable | 0.86 | The Illuminate Macroable trait lets you add custom methods to a class at runtime without modifying its source. Register macros once and call them like native methods, making Laravel components and your own classes easily extensible. | 34,987 | 84 | 12,028 | 3M | 55 | 78.2 | 63.8 | MIT | 3 days ago | |
| genealabs/bones-macros | 0.84 | genealabs/bones-macros bundles reusable Laravel macros for GeneaLabs Bones projects, extending Blade, collections, and request helpers so common patterns become one-line calls and everyday boilerplate shrinks. | 0 | 2 | — | 0 | — | 0.0 | — | — | — | |
| claudiodekker/laravel-macro-describer | 0.84 | A small Laravel helper for documenting macros: it records descriptions of your registered macros so developers and tooling can see what each one does. Handy for keeping macro-heavy codebases readable, though it's a niche utility with limited adoption. | 4 | — | 0 | — | 0 | 0.2 | — | MIT | 6 years ago | |
| javoscript/laravel-macroable-models | 0.83 | Adds Macroable support to Eloquent models, letting you define and register reusable model macros for dynamic methods at runtime. Great for extending models cleanly across packages and projects without touching the model class directly. | 71 | 71 | 4 | 39K | 0 | 0.5 | 37.8 | MIT | — | |
| exyplis/eloquent-builder-macros | 0.83 | This Laravel package adds reusable macros to Eloquent’s query builder, making common filtering, ordering, and query-building tasks shorter and more expressive. Keep models and repositories cleaner by replacing repetitive query code with handy, chainable macros. | 0 | 29 | — | 0 | — | 0.0 | — | — | — | |
| tutorigo/laravel-ide-macros | 0.83 | Bring IDE autocompletion to your Laravel macros. This package scans your application for registered macros and generates helper files, so PhpStorm and other IDEs recognize macro methods with full type hints and suggestions. | 45 | — | 31 | — | 2 | 1.1 | 0.8 | MIT | 4 years ago | |
| dragon-code/laravel-http-macros | 0.83 | dragon-code/laravel-http-macros adds handy macros to Laravel's HTTP client, cutting boilerplate for common API request tasks such as headers, authentication, timeouts, retries, and JSON payloads. Build cleaner, more expressive HTTP calls with less repetitive code. | 11 | 11 | 0 | 0 | 0 | 3.9 | — | MIT | 7 months ago | |
| wp-starter/macroable | 0.83 | Lightweight Macroable trait for PHP/Laravel-style macros. Add runtime methods to your classes, register macros and mixins, and call them like native methods—useful for extending objects without inheritance or boilerplate. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 3 years ago | |
| aimeos/macro | 0.83 | aimeos/macro is a lightweight PHP macro/extension library that lets you add methods at runtime and extend objects and classes without inheritance. Handy for creating fluent APIs, plugin-style features, and flexible customization in Laravel or any PHP project. | 2,438 | 2,435 | 1 | 6K | 0 | 12.2 | 7.5 | MIT | — | |
| victoryoalli/laravel-string-macros | 0.82 | A collection of handy custom macros for Laravel's Str and Stringable classes, adding extra fluent helpers for formatting, transforming, and inspecting strings so common string operations stay expressive and concise. | 8 | 8 | 2 | 5 | 1 | 3.2 | 2.7 | MIT | 10 months ago |
How can I help you explore Laravel packages today?