Download the PHP package iyifei/myfpdo without Composer
On this page you can find all versions of the php package iyifei/myfpdo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download iyifei/myfpdo
More information about iyifei/myfpdo
Files in iyifei/myfpdo
Download iyifei/myfpdo
More information about iyifei/myfpdo
Files in iyifei/myfpdo
Please rate this library. Is it a good library?
Informations about the package myfpdo
myfpdo
此组件特点:
- 需要简单的类库php操作mysql数据库
- 封装了个简单的Model模型,上手快速
- 封装了mysql pdo各种方法,有效的防止数据库注入
项目安装
快速使用
1、首选需要定义一个全局常量【LOG_PATH】用于存放log日志【LOG_LEVEL】用于定义全局log级别,其次继承MysqlModel创建一个自己的Model实现 getDbConfig()方法,示例代码如下(Model.php):
2、在test库中创建两个表,sql如下:
3、创建两个类UserModel和UserInfoModel集成Model,代码如下:
UserModel.php
UserInfoModel.php
4、使用UserModel查询数据示例,MysqlModelTest.php
All versions of myfpdo with dependencies
PHP Build Version
Package Version
Requires
monolog/monolog Version
^1.23
The package iyifei/myfpdo contains the following files
Loading the files please wait ....