承接 li9ht/yii2-informix 相关项目开发

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

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

li9ht/yii2-informix

Composer 安装命令:

composer require li9ht/yii2-informix

包简介

A Yii2 driver for informix

README 文档

README

Pdo informix driver for Yii2 framework

Requirements

  • PHP module pdo_informix;
  • Informix Client SDK installed
  • Yii2 framework

How to install

  • add to composer.json
  • because package is still in development, set minimum-stability = dev and prefer-stable = true
"require":{
    "li9ht/yii2-informix": "1.0.*@dev"
 },
 "minimum-stability": "dev",
 "prefer-stable": true,
  • when package is finish installed add the following line to your APPROOT/config/web.php
<?php
  'components' => array(
    'db' => [
           'class' => 'li9ht\yii2\informix\Connection',
           'driverName' => 'informix',
           'dsn' => 'informix:DSN=inf_db_odbc',
       ],
  ),

Unit Test

  • Copy test folder to your yiiApp root folder.
  • Edit connection dsn in test/TestCase.php file
  • Run
phpunit --bootstrap bootstrap.php ActiveRecordTest.php

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-27