gralhao / gralhao-db
Grالhao 数据库模块
1.0.1
2020-08-18 05:48 UTC
Requires
- gralhao/gralhao: ^1.0
Requires (Dev)
- gralhao/gralhao-test: ^1.0
- phalcon/ide-stubs: dev-master
- squizlabs/php_codesniffer: ^3.0@dev
This package is auto-updated.
Last update: 2024-09-18 14:39:18 UTC
README
gralhao/gralhao-db
一个 Gralhao 数据库模块
索引
关于
此模块是 Phalcon PDO 适配器 的实现。
入门
先决条件
PHP ^7.4, Phalcon ^4.x, Gralhao ^1.x
用法
安装
composer require gralhao/gralhao-db
在 application.config.php 中只需添加
<?php return [ 'modules' => [ 'Gralhao\Db', ], 'database' => [ 'adapter' => 'Mysql', 'host' => 'localhost', 'username' => 'user', 'password' => 'p@ss', 'dbname' => 'user_database', 'charset' => 'utf8', ], ];
使用工具
作者
- @mocallu - 灵感和初步工作
查看参与此项目的贡献者列表。