项目作者: kenjis

项目描述 :
CodeIgniter4 Application Template
高级语言: PHP
项目地址: git://github.com/kenjis/ci4-app-template.git
创建时间: 2021-01-15T09:52:08Z
项目社区:https://github.com/kenjis/ci4-app-template

开源协议:MIT License

下载


CodeIgniter 4 Application Template

This template changes the default configuration of CI4 more secure.

This repository includes:

Requirements

  • PHP 7.4 or later
    • intl
    • libcurl if you plan to use the HTTP\CURLRequest library
    • json (enabled by default - don’t turn it off)
    • mbstring
    • mysqlnd if you plan to use MySQL
    • xml (enabled by default - don’t turn it off)

How to Install

Composer

  1. $ composer create-project kenjis/ci4-app-template your-project

Git

  1. $ git clone https://github.com/kenjis/ci4-app-template.git your-project
  2. $ cd your-project/
  3. $ composer install
  4. $ git checkout -b main

How to Update

Update Composer packages:

  1. $ composer update

Update your CodeIgniter4 project files:

  1. $ php spark revision:update

How to Use

Services

  • All Services must be manually added to app/Config/Services.php, even if third-party CI4 packages have their own Services.

CSRF

CSP

Changes from the CI4 Default Configuration

Services

Configs

Filters

Features

Others

Available Commands

  1. composer test // Run PHPUnit
  2. composer cs-fix // Fix the coding style
  3. composer cs // Check the coding style
  4. composer sa // Run static analysis
  5. composer run-script --list // List all commands

Libraries

Tutorials

Building Development Environment