Learn how to install and run CodeIgniter, CakePHP, and Laravel on your LAMP machine.
Prerequisites: Install Composer
Go to the GetComposer.org download page and follow the installation instructions.
Verify Composer is Installed
composer -v
Install CodeIgniter
Go to CodeIgniter.com and download all of the CodeIgniter folders and files to your server and either put them in your web route or create a PHP server.
Create PHP Server
php -sS 127.0.0.1:8000
Install CakePHP
Navigate to wherever you want to install CakePHP. Then enter the following command to get the latest version.
composer create-project --prefer-dist cakephp nameOfApp
To install a specific version of CodeIgniter, enter the following command:
composer create-project --prefer-dist cakephp/app:3.2.0 nameOfApp
You can also use * notation as a wildcard in the version number. You will get the most recent version from that branch.
composer create-project --prefer-dist cakephp/app:3.2.* nameOfApp
Run CakePHP
bin/cake server
Install Yii 2
Navigate to wherever you want to install Laravel. Then enter the following command to get the latest version.
composer create-project --prefer-dist yiisoft/yii2-app-basic nameOfApp
Run Yii 2
php yii serve
Install Laravel
Navigate to wherever you want to install Laravel. Then enter the following command to get the latest version.
composer create-project --prefer-dist laravel/laravel nameOfApp
To install a specific version of Laravel, enter the following command:
composer create-project --prefer-dist laravel/laravel="5.5.22" nameOfApp
You can also use * notation as a wildcard in the version number. You will get the most recent version from that branch.
composer create-project --prefer-dist laravel/laravel="5.3.*" nameOfApp
Run Laravel
php artisan serve
Italicized text indicates users input.