composer remove package code example
Example 1: update composer ubuntu
##update composer in ubuntu
#update packages
sudo apt-get update
#if you don't have curl install it
sudo apt-get install curl
#download installer
sudo curl -s https://getcomposer.org/installer | php
#move composer.phar file
sudo mv composer.phar /usr/local/bin/composer
#check composer version
composer -v
Example 2: composer uninstall
composer remove vendor/package
Example 3: how uninstall the laravel
composer global remove laravel/installer
Example 4: composer clear cache
$ composer clearcache
Example 5: composer remove packages
composer remove vendor/package
Example 6: how uninstall composer
Delete the file composer.phar.
Delete the Cache Folder:
Linux: /home/<user>/.composer
Windows: C:\Users\<username>\AppData\Roaming\Composer