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

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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle