Registry / utility / illuminate-macroable

illuminate-macroable

JSON →
library13.16.1phppackagistunverified

A trait to add macro capabilities to classes in Laravel's Illuminate ecosystem.

composer require illuminate/macroable
INSTALL
IMPORT
SIG · ILLUMINATE-MACROAB
I
illuminate-macroable
utilityphpv13.16.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Macroable
use Illuminate\Support\Traits\Macroable;

Add a macro to a class using the Macroable trait.

use Illuminate\Support\Traits\Macroable; class MyClass { use Macroable; } MyClass::macro('hello', function() { return 'Hello'; }); echo MyClass::hello();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
13.16.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
illuminate-macroable — pip install illuminate-macroable · libregistry