Composer: remove a package, clean up dependencies, don't update other packages
To remove a package with Composer, you can use the command composer remove [package-name]
. This will remove the package and its dependencies from your project.
To clean up dependencies, you can use the command composer prune
. This will remove any unnecessary dependencies that are no longer needed by your project.
To prevent Composer from updating other packages, you can use the command composer update [package-name] --no-update
. This will only update the specified package, and not any of the other packages in your project.