Composer tools
![Composer tools](https://images.unsplash.com/reserve/oIpwxeeSPy1cnwYpqJ1w_Dufer%20Collateral%20test.jpg?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&fit=max&ixid=eyJhcHBfaWQiOjExNzczfQ&w=2000)
Recently I had an issue where I switched packages and realized only in production, that a package I use was only available in dev as a dependency and was now missing. Now I found a way to prevent this in the future.
There is a tool called composer-require-checker which would have helped me because it lists all packages used but not directly required by composer.
And there is also a tool which does the opposite, meaning it shows all required packages which aren't used called composer unused.
I will now use them for all projects and can highly recommend them.