DEV Community

Discussion on: Introduction to Composer [installation and components]

Collapse
peter279k profile image
peter279k

Nice tutorial! And it also misses some useful commands.

For example, using following command to configure the mirror site:

composer config -g repos.packagist composer https://packagist.org

Using following command to clear local cached dependencies source file:
It can avoid loading from cache when installing some dependencies via composer install or composer update.

composer clear-cache
Collapse
anastasionico profile image
anastasionico Author

Great answer Peter,
I didn't add this in here because this article is supposed to be a starting point for who is discovering Composer for the first time.
I'll write about those commands when I'll touch on the command-line interface and its commands

Collapse
peter279k profile image
peter279k

Thanks for your reply. As you say, these commands I mention are for PHP developer using advanced Composer commands.

Perhaps you can add these commands on your another blog post about advanced Composer usage :).

Thread Thread
anastasionico profile image
anastasionico Author

I will for sure