The simplest way to auto-load folder or class is:

"autoload": {
    "classmap": [
        "database", "app/utils"
    ]
},

 

or there is an alternative way to load class/files:

"autoload": {
    "classmap": [
        "database", "app/utils"
    ]
},
Advertisements