To optimize our CI builds we wanted to split our production dependencies from out dev dependencies. So that we would aquire two seperate archives which could be deployed seperatley.
For production we would only deploy production.tar.gz for testing we would deploy require.tar.gz and require-dev.tar.gz.
Unfortunately composer only comes with the composer install/update -no-dev that would ignore installation of dev dependencies.
Currently we are running two composer install while moving the vendor/ into vendor_prod/ and so forth using rsync to find the differenc between prod and dev installation and creating the proper tar balls. Sadly this creates a huge IO load.