I want to use a third-party library in the project, I created composer.json , I registered a dependency. In turn, the library has its own composer.json , with its dependencies. After the composer install command, only the library specified in the main composer.json pulled, the nested is ignored, there are no errors. How to make composer pull dependencies recursively?

composer.json :

 { "require": { "php": ">=5.3.0", "chobie/jira-api-restclient": "dev-master" }, "repositories": [ { "type": "git", "url": "https://github.com/chobie/jira-api-restclient" } ] } 
  • composer tightens all dependencies, show your composer.json - Marsel Arduanov
  • Added the contents of my composer.json , library composer.json can be viewed in the repository. I solved the problem this way - I added the contents from the library composer.json to my main dependency, loaded it up (naturally), but I think this is a bad decision. - Dmitry

1 answer 1

For custom repositories, the composer does not load dependencies. The description of this problem and possible solutions are on the site of the composer .

Most packages are already on packagist, so the best solution is to use ready-made packages.

In your case, the package already has https://packagist.org/packages/chobie/jira-api-restclient , you can install it with the command

 composer require chobie/jira-api-restclient