I'm new using Slim 3 Framework. I want to add this dependency faisalman/simple-excel-php. I installed via Composer but I don't know how to use it in my Controller. Do I need to add it to the container?
This is my composer.json file:
"require": {
"slim/slim": "^3.8",
"slim/php-view": "^2.2",
"slim/twig-view": "^2.2",
"illuminate/database": "^5.4",
"faisalman/simple-excel-php": "^0.3.15"
},
"autoload":{
"psr-4":{
"App\\":"app"
}
}
My project Structure is
-
App
1.1. Controllers
-
Bootstrap
2.1 app.php (here i instanse my app)
- vendor