marella / phd
PHP数据库库。
v0.0.1
2016-03-17 13:37 UTC
Requires
- php: >=5.5
Requires (Dev)
- fabpot/php-cs-fixer: ^1.11
- mockery/mockery: ~0.9.4
- phpunit/dbunit: >=1.4
- phpunit/php-code-coverage: ^2
- phpunit/phpunit: 4.8.*
- satooshi/php-coveralls: ^1.0
Suggests
- marella/phig: Useful to load database config from files.
This package is not auto-updated.
Last update: 2024-09-25 22:58:43 UTC
README
PHP数据库库。来自Laravel框架。
快速使用
composer require marella/phd
<?php require 'vendor/autoload.php'; $config = require 'config/database.php'; // load config array from a file use PhD\DB; DB::init($config); $users = DB::select('select * from users where active = ?', [1]);
文档
有关更多详细信息,请参阅wiki和文档。
贡献
在创建问题或拉取请求之前,请参阅贡献指南。
许可证
在MIT许可证下发布的开源软件。