Reprint address: http://my.oschina.net/igq/blog/312322
1. Install composer. There are many installation tutorials on the Internet. Here is the global installation
Modify the configuration file
Complete modification, save and exit
3. Update composer
Add this place:
Possibly This problem will occur:
This is due to insufficient permissions. Just one sudo in front of you is enough. Or change the permissions of .composer/.
The above introduces the composer installation (Chinese mirror), including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.