imskully/php-mysqli-simplified
Composer 安装命令:
composer require imskully/php-mysqli-simplified
包简介
MySQLi interface usage further simplified.
关键字:
README 文档
README
A further improved and simplified usage of the MySQLi driver achieved by using overload functions that provide simplistic usage and a shorter syntax.
API Functions
fetch($db, $query)
Executes the specified query and returns the first result.
@param $db String The database name to use for this query. @param $query String The SQL query. @return bool|string[] The mysqli response if fetch was successful, false otherwise.
fetchAll($db, $query)
Executes the provided query and returns an array of all results.
@param $db String The database name. @param $query String The SQL query. @return array|bool An array containing the mysqli response if fetch was successful, false otherwise.
execute($db, $query)
Executes the provided query.
@param $db String The database name. @param $query String The SQL query. @return bool Returns true if the query executed, false otherwise.
escape($data, $db)
Runs the mysqli_escape_string() to escape special characters from the string.
@param $data String The variable or data to escape. @param string $db The database of which charset to use, if none provided then the default server is used. @return String Returns the data escaped.
imskully/php-mysqli-simplified 适用场景与选型建议
imskully/php-mysqli-simplified 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 03 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mysqli」 「Simplified」 「ImSkully」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 imskully/php-mysqli-simplified 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 imskully/php-mysqli-simplified 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 imskully/php-mysqli-simplified 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An adapter for phpmig which provides database access via mysqli
Resurs Bank - Simplified Flow
Simplified Development for TYPO3 developers
Traditional Chinese and Simplified Chinese Conversion base on wikimedia zhconv table
An anti-pattern tools to have Translations stored in single column.
VV database abstraction layer with query builder and DB structure models
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2019-03-29