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

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -