entelisteam/lbaf-mysql 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

entelisteam/lbaf-mysql

最新稳定版本:1.0

Composer 安装命令:

composer require entelisteam/lbaf-mysql

包简介

A simple and quick mysqli wrapper for connecting to MySQL from PHP.

README 文档

README

A simple and quick mysqli wrapper for MySQL/MariaDB.

Requirements

  • PHP ~8.2 with ext-mysqli
  • Docker (for integration tests only)

Install

composer install

Running tests

Unit tests need nothing extra:

composer test:unit

Integration tests run against a real MariaDB in Docker. Start the container once per session, then run the suite:

composer db:up
composer test:integration
composer db:down   # when done

db:up is idempotent — safe to call when the container is already running. The container uses tmpfs, so data is ephemeral.

To run everything:

composer test

Test database connection

Defaults (overridable via env in phpunit.xml.dist or shell):

Variable Default
LBAF_TEST_DB_HOST 127.0.0.1
LBAF_TEST_DB_PORT 33306
LBAF_TEST_DB_USER root
LBAF_TEST_DB_PASSWORD (empty)
LBAF_TEST_DB_NAME lbaf_test

The bootstrap fails loudly if the database is unreachable — no silent skips.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固