You might be able to with http://getcomposer.org/doc/04-schema.md#replace