I have thought about this same issue. I think a solution would be to run a php parser that autoprefixes namespaces when your composer requires a new dependency. It may be possible that composer already has functionality like this but I doubt it.