How to handle autoloading with composer by keeping the WordPress naming conventions?

How to handle autoloading with composer by keeping the WordPress naming conventions?