codeigniter4projects / website-old

Old CodeIgniter Website
MIT License
49 stars 27 forks source link

CodeIgniter Website

[!IMPORTANT] This repository is a past CodeIgniter web site. The current web site is https://github.com/codeigniter4projects/website.

This is the official informational website for the CodeIgniter project.

The website has been open-sourced in the interest of transparency. We welcome issues and pull requests, to handle corrections.
We will be a bit more reserved with the content :-/

The project is governed by the CodeIgniter Foundation, and we have a working group in place to handle the website content and design. Style and structure changes will be addressed by this group.

Implementation

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:

Installation

Use these steps to create a local installation for development and testing.

  1. Clone the repo: git clone https://github.com/codeigniter4projects/website2
  2. Work in the repo directory: cd website2
  3. Make sure the writable folder is accessible: chmod -R 777 writable
  4. Install dependencies: composer install
  5. Create your .env file: cp env .env
  6. Edit .env and set at least the following:
    • CI_ENVIRONMENT = development
    • MOCK_MYBB = true
    • app.baseURL = 'http://localhost:8080/'

At this point you should have a usable version of the current code! Try launching it locally:

  1. From the repo directory start serving the website: php spark serve
  2. In your web browser of choice navigate to the local URL: http://localhost:8080

Note: The example commands above are for Linux-based systems. You may need to adjust for your operating system.

Resources

Server Requirements

PHP version 7.2 or higher is required, with the following extensions installed:

Additionally, make sure that the following extensions are enabled in your PHP: