承接 rlanvin/php-mypdo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rlanvin/php-mypdo

最新稳定版本:v1.0.2

Composer 安装命令:

composer require rlanvin/php-mypdo

包简介

Wrapper for PDO (MySQL) to support auto-reconnect, nested transactions and more.

README 文档

README

MyPDO is a wrapper that adds a few features missing from vanilla PDO:

  • Explicit disconnection
  • Automatic reconnection (no more 2006 MySQL server has gone away)
  • Nested transactions
  • Methods chainability
  • Hidden password from the stack trace (in case of error)
  • Helpers methods (e.g. ping())

Important: MyPDO is designed for MySQL only.

This class will not add higher logic to PDO (such as data mapping, etc.). It is only intended to add low-level features.

Build Status

Basic example

This class is intented to be a drop-in replacement for PHP's default PDO. There is nothing special to do, just use MyPDO class instead of PDO and you're good to go.

Complete doc is available in the wiki.

Requirements

  • PHP >= 5.3

Installation

The recommended way is to install the lib through Composer.

Just add this to your composer.json file (change the version by the release you want, or use dev-master for the development version):

{
    "require": {
        "rlanvin/php-mypdo": "1.*"
    }
}

Then run composer install or composer update.

Now you can use the autoloader, and you will have access to the library:

<?php
require 'vendor/autoload.php';

Alternative method

You can just download src/MyPDO.php and src/MyPDOStatement.php (if you want to use prepared statements) and require them.

Documentation

Complete doc is available in the wiki.

Contribution

Feel free to contribute! Just create a new issue or a new pull request.

License

This library is released under the MIT License.

统计信息

  • 总下载量: 4.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固