Weave 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

spatie/macroable

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.

View on GitHub
Deep Wiki
Context7
2.1.0

What's Changed

  • Add PHP 8.5 support by fixing ReflectionMethod::setAccessible() deprecation warning
  • Upgrade minimum PHP version to 8.3
  • Upgrade to Pest 4 and PHPUnit 12

Full Changelog: https://github.com/spatie/macroable/compare/2.0.0...2.1.0

2.0.0
  • require PHP 8+
  • drop support for PHP 7.x
  • convert syntax to PHP 8
1.0.1
  • add support for PHP 8.0
  • drop support for PHP 7.1 and below
1.0.0
  • initial release
0.0.1
  • experimental release
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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin