S
S
solascriptura2017-04-25 20:36:05
PHP
solascriptura, 2017-04-25 20:36:05

How to add your libraries to Composer for use in different projects?

There is a set of own libraries which I use in different projects. Now I'm trying to figure it out with Composer, I'm interested in the possibility of loading my libraries from private repositories.
1. Is this possible?
2. How to format the json file for this?
3. How to format your libraries so that they can be easily used in Composer?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Khizhniy, 2017-04-25
@solascriptura

https://github.com/composer/satis
Well, in general, it's easier to specify the git repository directly:

"repositories": [
    {
      "type": "git",
      "url": "....git"
    }
]

A
Alexander Pushkarev, 2017-04-25
@AXP-dev

https://packagist.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question