PHP: How to extend a 3rd party vendor class downloaded with composer and load it instead of the original? -
i have library downloaded composer performs several basic stuff has poor class methods in cases. though create own class (for objects, not of them) extend library base class , add useful method it.
unfortunately i'm not familiar composer , autoloader.php
.
how can achieve that? need create own library , run composer?
two choices come mind, can:
- fork entire project , change many things want
- extend classes need, , replace declarations/injections in src code, there's no need modify autoloader.
Comments
Post a Comment