定制 mongator/mongator-bundle 二次开发

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

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

mongator/mongator-bundle

Composer 安装命令:

composer require mongator/mongator-bundle

包简介

Bundle to use Mongator with Symfony2

README 文档

README

Mongator Symfony Bundle

#Mongator Bundle Build Status Coverage Status

Bundle to use Mongator ODM with Symfony2 (forked from MandangoBundle).

Getting started

Installation

To install mongator-bundle with Composer, just add the following to your composer.json file:

// composer.json
{
    "require": {
        "mongator/mongator-bundle": "1.1.*"
    }
}

Then update the dependency

$ php composer.phar update mongator/mongator-bundle

Or you can do this in one command:

$ php composer.phar require mongator/mongator-bundle:1.1.*

Enable the bundle

You need to register the bundle in AppKernel:

    // app/AppKernel.php

    class AppKernel extends Kernel
    {
        // ...

        public function registerBundles()
        {
            $bundles = array(
                // ...,
                new Mongator\MongatorBundle\MongatorBundle()
            );

            // ...
        }
    }

Configure Mongator

Add Mongator to your configuration:

# app/config/config.yml
mongator:
    default_connection: local
    connections:
        local:
            server:   mongodb://localhost:27017
            database: symfony2_local_%kernel.environment%

Activate the profiler in the developing environment:

# app/config/config_dev.yml
mongator:
    logging: true

Documentation

See the documentation in http://mandango.org/doc/

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固