I need to run CodeIgniter project from any location without the need to replace it on the directory (www) of my WAMP server. So I want to use the CLI and Composer for this.
For Composer autoloading I follow these instructions from this link.
Here is my config file:
$config['composer_autoload'] = TRUE;
And my composer.json
:
"config": {
"vendor-dir": "application/vendor"
},
After that I run composer update
to create the vendor/
folder.
However when I tried to run the project using CLI like so:
php index.php MYController_1 Methode_1
Instead of opening and running the web application through web browser, the source code of this page is printed to the console.
What is the equivalent of Laravel's php artisan serve
for CodeIgniter?