macroable

A trait to dynamically add methods to a class (by spatie)

Macroable Alternatives

Similar projects and alternatives to macroable based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better macroable alternative or higher similarity.

macroable reviews and mentions

Posts with mentions or reviews of macroable. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-12-08.
  • PHP Macro - Dynamically extend PHP objects
    3 projects | /r/PHP | 8 Dec 2021
    What's the difference with https://github.com/spatie/macroable ?
  • [RFC] Deprecate dynamic properties has passed!
    4 projects | /r/PHP | 26 Nov 2021
    It makes it harder to extend classes without using inheritance and DI. For example any macros you add with https://github.com/spatie/macroable now can't save any data to the class you are extending, which was useful under some circumstances. The only workaround I can think of would involve some horrible hack involving globals and spl_object_hash.

Stats

Basic macroable repo stats
2
673
2.1
5 days ago

spatie/macroable is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of macroable is PHP.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com