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
3.0.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...3.0.0

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
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core