How can I remove a package from Laravel using PHP Composer?

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. Obviously you’ll need to remove references to that package within your app. I’m currently running the following version of Composer: Documentation Updates 26/10/2020 – Updated answer to assert command works … Read more

Composer: Command Not Found

Your composer.phar command lacks the flag for executable, or it is not inside the path. The first problem can be fixed with chmod +x composer.phar, the second by calling it as ./composer.phar -v. You have to prefix executables that are not in the path with an explicit reference to the current path in Unix, in order to avoid going … Read more

How can I resolve “Your requirements could not be resolved to an installable set of packages” error?

Your software dependencies have an incompatible version conflict. At the same time you want to install any Laravel 4.2.x version, and “zizaco/entrust” from its master branch. And that master branch requires at least Laravel 5.0 (roughly speaking). The problem comes from the dependency on branches. It’s likely that the package zizaco/entrust once was using Laravel … Read more