A package is installed with composer in the project, but some code is modified for this package according to your own business. how can I manage this package in the future, need I upload the modified code to github? I installed a package with composer in the project, but I modified some code for this package according to my own business. how can I manage this package in the future, do I need to upload the modified code to github?
Reply content:
I installed a package with composer in the project, but modified some code for this package according to my own business. how can I manage this package in the future? do I need to upload the modified code to github?
If you are a lazy person, use it locally.
If you are a little lazy, you can directly publish it to github and modify it.Composer. json
Add
{"Repositories": [{"type": "vcs", "url": "https://github.com/xxx/xxxx"}]}
If you are a diligent person, directly publishPackagist