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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -