This is the official website for the CodeIgniter PHP framework.
The website has been open-sourced in the interest of transparency. We welcome issues and pull requests, to handle corrections. New blog posts will not be accepted without prior authorization.
The site has been built with CodeIgniter 4, and is meant to be an example of "good" programming style, although definitely not the only way to do things.
Some of the programming design decisions reflected:
public
folder is the intended document root for the webapp.PHP version 8.1 or higher is required, with the following extensions installed:
Additionally, make sure that the following extensions are enabled in your PHP:
Use these steps to create a local installation for development and testing.
git clone https://github.com/codeigniter4projects/website
cd website
chmod -R 777 writable
composer install
cp env .env
GITHUB_ACCESS_TOKEN = ghp_***
CI_ENVIRONMENT = development
app.forceGlobalSecureRequests = false
database.default.database = ../writable/database.db
database.default.DBDriver = SQLite3
Seed fake Forum data
The website is intended to live on the same server as the forums, and uses the forum database to pull in the most recent posts. When developing locally, this poses a challenge. To make local development simpler, a migration and seed have been provided to setup a table with some mock data that can be used in place of having a local MyBB install.
php spark migrate -all
php spark db:seed ForumSeeder
At this point you should have a usable version of the current code! Try launching it locally:
php spark serve
http://localhost:8080
Note The example commands above are for Linux-based systems. You may need to adjust for your operating system.