定制 shaunfreeman/php-mysql-xdevapi 二次开发

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

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

shaunfreeman/php-mysql-xdevapi

Composer 安装命令:

composer require shaunfreeman/php-mysql-xdevapi

包简介

PSR-11 library for easy setup of MySQL X DevAPI into Laminas.

README 文档

README

Build Status Test Coverage Maintainability Packagist

This is a PSR-11 library for easy setup of MySQL XDevAPI into Laminas. To use this library you must have the PECL mysql_xdevapi installed, see https://www.php.net/manual/en/book.mysql-xdevapi.php on how to install this extension.

Installation

Run the following to install this library:

$ composer require shaunfreeman/php-mysql-xdevapi

if you haven't got the 'laminas/laminas-component-installer' installed then in your config/config.php file add \XDevApi\ConfigProvider::class to the ConfigAggregator like:

...

$aggregator = new ConfigAggregator([
    \ShaunFreeman\PhpMysqlXdevapi\ConfigProvider::class,
... 

Configuration

After installing php-mysql-xdevapi, you will need to first enable the component, and then optionally configure it.

We recommend adding a new configuration file to your autoload directory, config/autoload/xdevapi.local.php. To begin with, use the following contents:

<?php

declare(strict_types=1);

/**
 * Change the values to match your mysql login
**/
return [
    'xdevapi' => [
        'user'      => 'dbuser',
        'password'  => '654321',
        'host'      => 'mysql',
        'schema'    => 'dbname',
        'port'      => 33060
    ],
];

Support

Known Issues

There seems to be a bug when running mysql_devapi with OPcache, where CollectionFind::limit() and CollectionFind::offset() will return bool when the OPcache is enabled.

To workaround this make sure the OPcache extension is loaded before the mysql_xdevapi extension.

You may also need to add the line below to your opcache.ini file or at the end of your php.ini file

opcache.optimization_level=0

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-01-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固