roniwahyu/civuestarterku

The CodeIgniter Application with Composer

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:project

dev-master / 1.0.x-dev 2019-01-02 09:50 UTC

This package is auto-updated.

Last update: 2019-12-30 12:25:43 UTC


README

Dimodifikasi dari berbagai sumber oleh

Syahroni Wahyu Iriananda


## Modified and Influencer

CodeIgniter Composer Installer

kenjis/codeigniter-composer-installer

Latest Stable Version Total Downloads Latest Unstable Version License

This package installs the offical CodeIgniter (version 3.1.*) with secure folder structure via Composer.

Note: If you want to install CodeIgniter4 (under development), see https://github.com/kenjis/codeigniter-composer-installer/tree/4.x.

You can update CodeIgniter system folder to latest version with one command.

Folder Structure

codeigniter/
├── application/
├── composer.json
├── composer.lock
├── public/
│   ├── .htaccess
│   └── index.php
└── vendor/
    └── codeigniter/
        └── framework/
            └── system/

Requirements

How to Use

Install CodeIgniter

$ composer create-project kenjis/codeigniter-composer-installer codeigniter

Above command installs public/.htaccess to remove index.php in your URL. If you don't need it, please remove it.

And it changes application/config/config.php:

$config['composer_autoload'] = FALSE;
↓
$config['composer_autoload'] = realpath(APPPATH . '../vendor/autoload.php');
$config['index_page'] = 'index.php';
↓
$config['index_page'] = '';

Install Translations for System Messages

If you want to install translations for system messages:

$ cd /path/to/codeigniter
$ php bin/install.php translations 3.1.0

Install Third Party Libraries

CodeIgniter HMVC Modules:

$ php bin/install.php hmvc-modules master

Modular Extensions - HMVC:

$ php bin/install.php modular-extensions-hmvc codeigniter-3.x

Ion Auth:

$ php bin/install.php ion-auth 2

CodeIgniter3 Filename Checker:

$ php bin/install.php restserver 2.7.2

Run PHP built-in server (PHP 5.4 or later)

$ cd /path/to/codeigniter
$ bin/server.sh

Update CodeIgniter

$ cd /path/to/codeigniter
$ composer update

You must update files manually if files in application folder or index.php change. Check CodeIgniter User Guide.

CI VUE WEBPACK

maizier.b@gmail.com. http://izercoder.wordpress.com

Codeigniter 3.1.6 + Vue 2 + Webpack + Bootstrap 4 Starter Template

Codeigniter Standard MVC + Vue 2 + Webpack + Bootstrap 4 

# default database using sqlite

Requirements

  • install composer
  • install nodejs

Build Setup

on your project directory

# install composer dependencies
composer install

# install npm dependencies
npm install

#setup proxy for hot reload in webpack config  based on your backend localhost server
example : 
your php server running on localhost:8080
your proxy hot reload running on localhost:3000


# build for production with minification
webpack --watch

# auto running your browser address with xampp running on your pc 
http://localhost:3000/ci_vue

Troubleshoot

error unable install node-sass permission denied 

# from shell command prompt type in your project directory
npm install --unsafe-perm -g node-sass

Reference

Related Projects for CodeIgniter 3.x