S
S
shasoft2018-12-28 22:40:43
Composer
shasoft, 2018-12-28 22:40:43

How to hook the created package in composer?

I create a new package in the vendor \ shasoft folder, for example utils. I create it manually by copying an existing package and making edits to it. You can somehow pick up this package so that it registers in composer.json and generally wherever you need it.
Now I copy it to a separate directory, I write it to composer.json

"repositories": [
    {
      "type": "path",
      "url": "../../my.packages/utils/",
      "options": {
        "symlink": false
      }
    }
]

and install from there.
But maybe you can somehow update the links without this copying?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bedoyar, 2019-01-08
@PulpiRZVK

It’s more correct to fork an existing package (it’s also on github, right?), commit your fixes to the fork repository and include it in your project.
https://getcomposer.org/doc/05-repositories.md#vcs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question