roniwahyu/civuestarterku

使用 Composer 的 CodeIgniter 应用程序

安装: 15

依赖: 0

建议者: 0

安全: 0

星级: 0

观察者: 1

分支: 0

开放问题: 0

语言:JavaScript

类型:项目

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

此软件包通过 Composer 安装官方的 CodeIgniter(版本 3.1.*),并使用安全文件夹结构。

注意:如果您想安装 CodeIgniter4(开发中),请参阅 https://github.com/kenjis/codeigniter-composer-installer/tree/4.x

您可以使用一条命令将 CodeIgniter 系统文件夹更新到最新版本。

文件夹结构

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

要求

如何使用

安装 CodeIgniter

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

上述命令将 public/.htaccess 安装到您的 URL 中以删除 index.php。如果您不需要它,请将其删除。

并且它更改了 application/config/config.php

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

安装系统消息翻译

如果您想安装系统消息翻译

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

安装第三方库

CodeIgniter HMVC 模块:

$ php bin/install.php hmvc-modules master

模块扩展 - HMVC:

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

Ion Auth:

$ php bin/install.php ion-auth 2

CodeIgniter3 文件名检查器:

$ php bin/install.php restserver 2.7.2

运行 PHP 内置服务器(PHP 5.4 或更高版本)

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

更新 CodeIgniter

$ cd /path/to/codeigniter
$ composer update

如果 application 文件夹或 index.php 中的文件有更改,您必须手动更新文件。请参阅 CodeIgniter 用户指南

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

要求

  • 安装 composer
  • 安装 nodejs

构建设置

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 
https://:3000/ci_vue

故障排除

error unable install node-sass permission denied 

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

参考

CodeIgniter 3.x 相关项目