CodeIgniter is a popular PHP framework used to develop dynamic websites and web applications quickly.
Features:
• Lightweight framework
• Fast performance
• MVC architecture
• Easy routing
• Database support
• Secure and beginner-friendly
What is Composer?
Composer is a dependency manager for PHP.
It helps:
• Install PHP frameworks
• Manage libraries/packages
• Update dependencies automatically
Step 1: Install Composer
Download Composer from the official website:
Composer Official Website
After installation, check Composer in terminal or command prompt:
composer
If installed correctly, Composer information will display.
Step 2: Create a CodeIgniter Project
Open:
• Command Prompt (Windows)
• Terminal (Linux/Mac)
Run the following command:
composer create-project codeigniter4/appstarter projectname
Understanding the Command
composer create-project codeigniter4/appstarter projectname
Part Meaning
composer Runs Composer
create-project Creates a new project
codeigniter4/appstarter Official CodeIgniter starter project
projectname Your project folder name
Example
composer create-project codeigniter4/appstarter myproject