Home  >  Article  >  Backend Development  >  The package installed by composer has been modified. How to manage this package?

The package installed by composer has been modified. How to manage this package?

WBOY
WBOYOriginal
2016-08-04 09:19:251462browse

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?

Reply content:

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?

  1. If you are a lazy person, just use it locally.

  2. If you are a little lazy, you can publish it directly to github, and then modify composer.json
    Add

  3. under "repositories"
<code>{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/xxx/xxxx"
        }
    ]
}</code>
  1. If you are a hard-working person, post directly to packagist

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn