znframework/package-database
最新稳定版本:8.21.0
Composer 安装命令:
composer require znframework/package-database
包简介
ZN Framework Database Package
关键字:
README 文档
README
ZN Framework Database Package
Follow the steps below for installation and use.
Installation
You only need to run the following code for the installation.
composer require znframework/package-database
Documentation
Click for documentation of your library.
Example Usage
Basic level usage is shown below.
<?php require 'vendor/autoload.php'; ZN\ZN::run(); # The default settings are in the ZN\Database\DatabaseDefaultConfiguration file. # You can make your settings in this file. # The Config::set() method should be used if you need to configure settings externally. Config::database('database', [ 'driver' => 'mysqli', 'host' => 'localhost', 'database' => 'test', 'user' => 'root', 'password' => '', 'prefix' => '' ]); $persons = DB::persons(); Output::display($persons->result());
统计信息
- 总下载量: 7.45k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 10
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-19