承接 acseo/sql-server-bundle 相关项目开发

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

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

acseo/sql-server-bundle

Composer 安装命令:

composer require acseo/sql-server-bundle

包简介

Bundle used to provide data type convertion between Doctrine and MSSQLDriver

README 文档

README

This bundle provides datatype convertions for SQLServer with Doctrine ORM and RealState

Installation

Add the bundle in your composer.json:

{
    "require": {
        "acseo/sql-server-bundle": "dev-master"
    }
}

Now tell composer to download the bundle by running the command:

$ php composer.phar update acseo/sql-server-bundle

Composer will install the bundle to your project's vendor/ACSEO directory.

Enable the bundle in your project

<?php 
//app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
        //...
        new ACSEO\Bundle\SQLServerBundle\ACSEOSQLServerBundle(),
		//...
        );
//..

Configuration

In parameters.yml

driver_class: \ACSEO\Bundle\SQLServerBundle\Driver\SQLServerDriver

In app/config/config.yml

Override Doctrine data type, define the class that will perform data type convertions

types:
    string: ACSEO\Bundle\SQLServerBundle\Type\StringType
    datetime: ACSEO\Bundle\SQLServerBundle\Type\DateTimeType
    text: ACSEO\Bundle\SQLServerBundle\Type\TextType

In composer.json

Add post-install-cmd to add pdo_dblib line to Doctrine DBAL Driver Manager

"post-install-cmd": [
            ...
            "ACSEO\\Bundle\\SQLServerBundle\\Composer\\ScriptHandler::updateDoctrineDriverManager",
            ...
        ],

TODO

  • write tests
  • introduce parameters for encoding text convertion
  • explore other data type convertions needed

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-10-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固