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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -