Composer Tips

Tips about the Composer package management tool.

Autoloading

loading Mynamespace from the src folder in the package root

"autoload": {
    "psr-4": {
        "Mynamespace\\": "src"
    }
}

or loading from multiple locations

"autoload": {
    "psr-4": {
        "Mynamespace\\": ["src/app", "src/test/"]
    }
}