https://github.com/simpletine/codeigniter4-starter
Starter for static version of development
https://github.com/simpletine/codeigniter4-starter
codeigniter4 mvc-architecture mvc-framework simpletine
Last synced: 4 months ago
JSON representation
Starter for static version of development
- Host: GitHub
- URL: https://github.com/simpletine/codeigniter4-starter
- Owner: Simpletine
- License: mit
- Created: 2024-06-22T09:08:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T22:42:20.000Z (over 1 year ago)
- Last Synced: 2025-03-23T17:47:46.328Z (about 1 year ago)
- Topics: codeigniter4, mvc-architecture, mvc-framework, simpletine
- Language: PHP
- Homepage:
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeIgniter4 Starter
[](https://simpletine.com)
[](https://www.youtube.com/channel/UCRuDf31rPyyC2PUbsMG0vZw)
## Overview
This repository provides a starter template for **CodeIgniter 4**, configured to get your application up and running quickly. Follow the instructions below to set up and start developing with CodeIgniter 4.
## Prerequisites
Ensure you have the following installed before starting:
- **PHP 7.4** or above
- **Composer**
- **CodeIgniter 4.4.8**
## Installation Guide
### 1. Clone the Project
Choose one of the following methods to clone the project into your desired folder:
**Using Composer:**
```bash
composer create-project simpletine/codeigniter4-starter starter --stability=dev
```
**Or using Git:**
```bash
git clone https://github.com/Simpletine/CodeIgniter4-Starter.git starter
```
**Navigate to the project folder:**
```bash
cd starter
```
### 2. Update Dependencies
Run the following commands to update dependencies and copy required files:
```bash
composer update
cp vendor/codeigniter4/framework/public/index.php public/index.php
cp vendor/codeigniter4/framework/spark spark
```
### 3. Set Up Environment File
Copy the .env file to the root directory:
```bash
cp env .env
```
### 4. Start the Application
Run the app using the built-in server. If you want to use a custom port (e.g., 9000), specify it using the --port option:
```php
php spark serve --port=9000
```
The application should now be accessible at http://localhost:9000.
## Code Standards and Fixing
This project follows PHP coding standards. To automatically fix coding standard issues, run the following command:
```php
composer run fix
```
## Troubleshooting
If you encounter any issues during installation, feel free to open a discussion in the community.