The project is created under {CompanyName} for {ProjectPurpose}.
- Features / Technologies
- Codeigniter Packages
- IDE
- Requirements
- Local Installation
- Git Development Guidelines
- PHP v7.4
- 💚 Codeigniter v4 - an Application Development Framework - a toolkit - for people who build web sites using PHP.
- MySQL v8 - the most popular Open Source SQL database management system, is developed, distributed, and supported by Oracle Corporation.
- ⚒️ Composer - Dependency Manager for PHP
Install the following programs
- PHP version 7.4 or newer is required, with the following PHP extensions are enabled:
- intl
- mbstring
- json
- mysqlnd
- Composer
- MySQL
Clone this repository
git clone git@github.com:{OrgName}/{ProjectName}.git
Enter {ProjectName} directory
cd {ProjectName}
Install all the required packages
composer install
Copy env.example to .env
cp env.example .env
Update .env database attributes as your database Installation
database.default.hostname = localhost
database.default.database = ci4
database.default.username = root
database.default.password = root
database.default.DBDriver = MySQLi
database.default.DBPrefix =
database.default.port = 3306
database.tests.hostname = localhost
database.tests.database = ci4_test
database.tests.username = root
database.tests.password = root
database.tests.DBDriver = MySQLi
database.tests.DBPrefix =
database.tests.port = 3306
Run {ProjectName} local development server
php spark serve
This will launch the server and you can now view {ProjectName} in your browser at http://localhost:8080.
- Go to
development
branch
git switch development
- Get the latest changes of
development
branch
git pull origin development
- Create a new
feature
branch based ondevelopment
branch with using your task code follow with your task name
// branch naming example
git switch -c feature/T932-Create-to-dos
- Perform and commit your changes
git add .
git commit -m "{YourCommitMessageHere}"
- Get latest
development
changes, move his work on top of the latest
git switch development
git pull origin development
git switch feature/T932-Create-to-dos
git rebase development
-
Perform corrections as needed (If any conflicts)
-
Create a pull request here by selecting
development
as base and{YourNewBranch}
as compare -
Let the code reviewer review your codes