PHPackages                             fight/db - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. fight/db

ActiveLibrary

fight/db
========

1.0.0(7y ago)28PHPPHP &gt;=7.1.0

Since Feb 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/fight3long3/db)[ Packagist](https://packagist.org/packages/fight/db)[ RSS](/packages/fight-db/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

db
==

[](#db)

一个模仿thinkphp写的数据库操作工具

```
use src\Db;

Db::init('localhost', '3306', 'novel', 'utf8', 'root', '1');

$list = Db::table('novel_type')
    ->where(['id' => 1])
    ->value('name');
var_dump($list);

$list = Db::table('novel_type')
    ->where(['id' => ['
