Home > Article > Backend Development > The package installed by composer has been modified. How to manage this package?
I used composer to install a package in the project, but I modified some codes for this package according to my business. How should I manage this package in the future? Do I need to upload the modified code to github?
I used composer to install a package in the project, but I modified some codes for this package according to my business. How should I manage this package in the future? Do I need to upload the modified code to github?
If you are a lazy person, just use it locally.
If you are a little lazy, you can publish it directly to github, and then modify composer.json
Add
<code>{ "repositories": [ { "type": "vcs", "url": "https://github.com/xxx/xxxx" } ] }</code>
If you are a hard-working person, post directly to packagist