Home > Backend Development > PHP Tutorial > 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
Release: 2016-08-04 09:19:25
Original
1512 people have browsed it

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>
Copy after login
  1. If you are a hard-working person, post directly to packagist

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template