承接 aksined_by/pdoreconnect 相关项目开发

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

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

aksined_by/pdoreconnect

最新稳定版本:v0.0.2

Composer 安装命令:

composer require aksined_by/pdoreconnect

包简介

A PDO reconnection library

README 文档

README

Latest Stable Version Total Downloads License

Description

The PDO Reconnect Library is a PHP library that extends PDO functionality by adding automatic reconnection capability. This is particularly useful in long-running scripts where the database connection might be lost and needs to be reestablished seamlessly. A great solution for Consumers and demon-scripts

Features

  • Automatic reconnection on connection loss
  • Easy to integrate and use
  • Compatible with various databases supported by PDO

Requirements

  • PHP 7.4 or higher

Installation

You can install the library via Composer:

composer require aksined_by/pdoreconnect

Usage

Here is a basic example of how to use the PDO Reconnect Library:

require 'vendor/autoload.php';

use AksinedBy\PdoReconnect\AppPdo;

$dsn = 'mysql:host=localhost;dbname=testdb';
$username = 'yourusername';
$password = 'yourpassword';

$pdo = new AppPdo($dsn, $username, $password);
$stmt = $pdo->prepare('SELECT * FROM your_table');
$stmt->execute();
$results = $stmt->fetchAll();
print_r($results);

Testing

To run the tests, you need to have PHPUnit installed. You can run the tests using the following command:

vendor/bin/phpunit

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request. Please follow the established coding standards and write tests for any new features or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or inquiries, you can reach out to aksined.by@gmail.com.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固