A
A
Alexander Shapoval2016-08-01 17:29:25
Composer
Alexander Shapoval, 2016-08-01 17:29:25

How to update Composer dependencies?

The question is this. I am creating a library (learning how to create). Made the necessary changes to composer.json, created a library in the vendor folder. How to update all composer dependencies locally? For there is no desire, with a minimal change, to upload it to github every time, synchronize it with packagist, and update the entire project. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2016-08-01
@AlexanderShapoval

Well, as I do for Yii2.
1. I generate an extension.
2. I throw it into the vendor folder.
3. I register the repo on the github.
4. I upload the code to the repo.
5. I add the package to packagist.
6. I set up automatic synchronization in github with packagist.
7. I add a dependency to the composer and do a composer update.
8. ...
9. PROFIT!!!
ps and yes, if you do not touch the namespace setting, then you do not need to update it every time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question