CodeIgniter Composer Skeleton
Open Issues: 0
This package is auto-updated.
Last update: 2023-05-09 00:18:56 UTC
This repository is a wrapper to use CodeIgniter 3.* (currently develop) as vendor package with Composer.
Also, a few enhancements were made for better Git support (e.g. environment as separate file)
The document root has been moved to the
pubic/ directory, so that
application data is not accessible via URL.
How to install:
- Download/install Composer
- Create a new project with
php composer.phar create-project -s dev trinet/codeigniter-skeleton [path]
Composer gets the current CodeIgniter version and then copies the
application/ directory to the project root.
You can then
git init your project.
The document root has to point to the
public/ directory of the project.
For example, if you use Apache, your vhost configuration can look like:
<VirtualHost *:80> ServerAdmin email@example.com ServerName codeigniter.example.com DocumentRoot /var/www/my-codeigniter-project/public <Directory "/var/www/my-codeigniter-project/"> Deny from all </Directory> <Directory "/var/www/my-codeigniter-project/public/"> Allow from all Options -Indexes +FollowSymLinks -MultiViews AllowOverride all </Directory> </VirtualHost>