Dependency management and autoloading in php projects with composer