trinet/codeigniter-skeleton

CodeIgniter Composer Skeleton

v1.1.0 2015-01-12 18:53 UTC

This package is auto-updated.

Last update: 2024-04-09 02:33:05 UTC


README

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 vendor and 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.

Webserver configuration

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 admin@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>