定制 shusaura85/mythdb 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

shusaura85/mythdb

最新稳定版本:1.0.0

Composer 安装命令:

composer require shusaura85/mythdb

包简介

Simple database abstraction layer for PHP

README 文档

README

By Shu Saura

MythDB is a simple database abstraction layer for PHP providing a consistent interface for multiple database drivers.

Supported databases

  • mySQL and MariaDB
  • PostreSQL
  • SQLite3

Installation

  • Using Composer

    composer require shusaura85/mythdb
  • Manually

    require '/path/to/src/autoload.php'

Usage

require 'vendor/autoload.php'; // or '/path/to/src/autoload.php'  

$db_driver = 'mysqli'; // available drivers: mysqli, pgsql, sqlite3  
$db_persistent = false; // set to true to use a persistent connection  
$db_utf8names = 'UTF8'; // if set, automatically calls query "SET NAMES <value>". not supported in sqlite  
$db = new \MythDB\Database($db_driver, 'host', 'username', 'password', 'database', $db_persistent, $db_utf8names);

Requirements

MythDB requires at least PHP 8.1 to work. MythDB only depends on the internal PHP modules for database connection (mysqli / postresql / sqlite3).

Licence

MythDB is published under the MIT Licence, see LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-10-03