Composer 1.x and 2.x
Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.
composer remove vendor/package
Obviously you’ll need to remove references to that package within your app.
I’m currently running the following version of Composer:
Composer version 1.0-dev (7b13507dd4d3b93578af7d83fbf8be0ca686f4b5) 2014-12-11 21:52:29
Documentation
https://getcomposer.org/doc/03-cli.md#remove
Updates
- 26/10/2020 – Updated answer to assert command works for v1.x and v2.x of Composer
Related Posts:
- How can I resolve “Your requirements could not be resolved to an installable set of packages” error?
- global variable for all controller and views
- How to fix ‘Unchecked runtime.lastError: The message port closed before a response was received’ chrome issue?
- AES Decryption in Python when IV and Value provided separately
- Could not open input file: artisan
- Minimum Working Example for ajax POST in Laravel 5.3
- Facebook OAuth “The domain of this URL isn’t included in the app’s domain”
- laravel throwing MethodNotAllowedHttpException
- Class ‘App\Http\Controllers\DB’ not found in Laravel 5 Controller
- Laravel – Model Class not found
- How to install pip with Python 3?
- How to completely remove Python from a Windows machine?
- Relative imports – ModuleNotFoundError: No module named x
- How to uninstall Eclipse?
- Relative imports – ModuleNotFoundError: No module named x
- How to uninstall Anaconda completely from macOS
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- How can I solve “java.lang.NoClassDefFoundError”?
- What is __init__.py for?
- count() parameter must be an array or an object that implements countable in laravel
- What is __init__.py for?
- count() parameter must be an array or an object that implements countable in laravel
- How to uninstall Eclipse?
- beyond top level package error in relative import
- beyond top level package error in relative import
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?
- ModuleNotFoundError: No module named ‘sklearn’
- beyond top level package error in relative import
- ModuleNotFoundError: No module named ‘sklearn’
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Tensorflow: why ‘pip uninstall tensorflow’ cannot find tensorflow
- What is a Python egg?
- Python error: AttributeError: ‘module’ object has no attribute
- How to uninstall mini conda? python
- Java Package Does Not Exist Error
- Python 3: ImportError “No Module named Setuptools”
- What’s the difference between a Python module and a Python package?
- Expected status code 200 but received 500
- Whats the point of running Laravel with the command ‘php artisan serve’?
- What Are “npm run dev” and “npm run prod”
- Find the version of an installed npm package
- How to fix “Attempted relative import in non-package” even with __init__.py
- Download TS files from video stream
- How to uninstall a Windows Service when there is no executable for it left on the system?
- laravel updateOrCreate method
- How to listen messageSent event in laravel 5.5
- How to fix “Attempted relative import in non-package” even with __init__.py
- What is the difference between –save and –save-dev?
- how to uninstall MinGW and make cygwin ‘make’ as deafult make program with gcc 3.8.1
- Can’t import my own modules in Python
- When to generate a new Application Key in Laravel?
- What is Options +FollowSymLinks?
- Laravel PHP Command Not Found
- Laravel 5.2 Storage::makeDirectory($dir) is not creating directory
- How to Reinstall Broken npm
- What’s the difference between a Python module and a Python package?
- How to uninstall git-for-windows & re-install in new place?
- Trying to get property of non-object – Laravel 5
- Block-scoped declarations not yet supported outside strict mode
- Error in contrib.url(repos, “source”) in R trying to use CRAN without setting a mirror Calls: install.packages -> contrib.url Execution halted
- No Application Encryption Key Has Been Specified
- Laravel 5 Class ‘Collective\Html\HtmlServiceProvider’ not found on AWS
- Laravel 5 MethodNotAllowedHttpException in RouteCollection.php line 201:
- How to find out which package version is loaded in R?
- Why do I have to run “composer dump-autoload” command to make migrations work in laravel?
- How to remove unused dependencies from composer?
- How to Create Multiple Where Clause Query Using Laravel Eloquent?
- Laravel 5 Clear Views Cache
- How to unload a package without restarting R
- How to make rpm auto install dependencies
- Composer: Command Not Found
- How do I update a Python package?
- What’s the opposite of ‘make install’, i.e. how do you uninstall a library in Linux?
- What is the difference between require() and library()?
- TokenMismatchException in VerifyCsrfToken.php Line 67
- How do you uninstall all dependencies listed in package.json (NPM)?
- cURL request in Laravel
- How to remove an app with active device admin enabled on Android?
- Go build: “Cannot find package” (even though GOPATH is set)
- No query results for model [App\Products] Laravel
- “Python version 2.7 required, which was not found in the registry” error when attempting to install netCDF4 on Windows 8
- SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
- ‘ssh’ is not recognized as an internal or external command
- Removing all installed OpenCV libs
- How to completely uninstall Android Studio on Mac?
- How to install a specific version of package using Composer?
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- I am trying to install a site that a larger organization sent me, where do I start? [closed]
- register_uninstall_hook() vs uninstall.php – which one is better way to handle plugin uninstallation script?
- Best practice way to delete user meta data during plugin uninstall?
- Uninstalling a plugin: delete all options with specific prefix
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Does plugin uninstall always put WordPress back into original state?
- wpdb::prepare was called incorrectly
- How can I delete options with register_uninstall_hook?
- Popup asking whether data should be removed on plugin uninstall
- Remove settings if theme is deleted?