Weave Code
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

Macroable Laravel Package

illuminate/macroable

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

The illuminate/macroable package as described does not exist as a standalone Composer package. The repository link (https://github.com/illuminate/macroable) returns a 404, and no such package is published on Packagist (confirmed by dependents: 0 and lack of official documentation). The Macroable trait is actually a core component of Laravel's illuminate/support package (part of the Laravel monorepo), not a separate package. It is used internally by Laravel classes (e.g., Collection, Str) to enable dynamic method macros. Technical risk is negligible since it’s a well-established framework feature, but the confusion here stems from a fundamental misunderstanding of Laravel’s architecture. Key questions: Why was this "package" referenced?

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.
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui