startci / project
CodeIgniter 4 的插件
1.05
2023-04-09 07:33 UTC
Requires
- php: >=7.2
- adhocore/cron-expr: ^1.1
- composer/composer: ^2.4
- fakerphp/faker: ^1.19
- firebase/php-jwt: ^6.0
- league/climate: ^3.8.2
- nesbot/carbon: ^2.57
- phpdocumentor/reflection-docblock: ^5.3
- psy/psysh: ^0.11.8
- slowprog/composer-copy-file: ^0.3.3
- smarty/smarty: ^4.1
- symfony/console: ^6.0
- symfony/process: ^6.0
- tightenco/collect: ^9.0
Requires (Dev)
- codeigniter/coding-standard: ^1.7
- codeigniter4/framework: ^4.1
- mikey179/vfsstream: 1.6.*
- phpunit/phpunit: *
- squizlabs/php_codesniffer: ^3.3
README
StartCI - CodeIgniter 4 增强项目
目录
介绍
欢迎使用 "StartCI" 项目文档——CodeIgniter 4 框架的强大扩展!
要求
在开始使用 "StartCI" 之前,请确保您有以下先决条件
- PHP 8.1 或更高版本
- 在您的开发环境中已安装 CodeIgniter 4
- 已安装 Composer 以管理项目依赖项
关于项目
"StartCI" 是一个高级库,旨在增强著名的 PHP 框架 CodeIgniter 4 的功能。为了提供高效和通用的开发体验,该项目提供了一系列功能、库和附加资源,使您的网络应用程序达到新的高度。
安装
要安装 "StartCI" 项目,您需要在您的 composer.json
文件中添加以下配置
"repositories": [ { "type": "git", "url": "https://github.com/StartCI/project.git", "reference": "main" } ]
添加存储库后,您可以在项目的根目录中运行以下命令
composer require startci/project:dev-main
要初始化 "StartCI" 项目并生成必要的文件和配置,请在项目的根目录中运行以下命令
php spark startci:init
使用
您似乎正在描述一个具有各种功能的 "table" 方法的自定义实现。
让我们澄清您提供的示例
table('test')->create([ 'field' => 'text' ]); // Creates the 'test' table with a column named 'field' of type 'text' table('test')->def(); // Returns an array with the definition of the 'test' table like ['field' => null] table('test')->rs(); // Returns an array with all the rows from the 'test' table as objects table('test')->first(); // Returns the first row from the 'test' table as an object like {field: 'value'}
更多示例
有关更多示例和用法详细信息,请查看 "StartCI" 项目存储库中的 "test" 目录。在那里,您可以找到由 "StartCI" 提供的各种功能的实用示例和演示。