How to bring project into compliance with composer.json?
<p>That must be what <code>composer install</code> is supposed to do. But it doesn't remove no longer needed packages. Well, I can remove packages with <code>composer remove PACKAGE</code> instead of editing <code>composer.json</code> by hand, but that still leaves dependencies in <code>composer.lock</code> and <code>vendor</code> dir.</p>