定制 pouzor/mongodbbundle 二次开发

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

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

pouzor/mongodbbundle

Composer 安装命令:

composer require pouzor/mongodbbundle

包简介

MongoDB Symfony Bundle. This bundle allow you to use in the easiest and fastest way MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x). It's not an ODM

README 文档

README

Build Status Code Coverage Scrutinizer Code Quality

MongoDBBundle is the easiest and fastest way to integrate MongoDB in your project with the new php driver (Support php >=5.4 and php 7.x).

It's not an ODM : you don't need to declare all your data model. You will work with array object same as you can get/set in mongoDB (after json encode/decode)

/!\ This bundle is only working with mongodb.so driver.

For the legacy driver (mongo.so), please check [Pouzor/MongoBundle] (https://github.com/Pouzor/mongobundle)

It use mongodb.so + https://github.com/mongodb/mongo-php-library

Usage

When the bundle is configured, you can access to the mongo manager service, who provide acces to Repository Service (aka Mongo collection manager). Then, is pretty easy to request this Repository

//document.manager.my_project is specific mongodb (db, host, port...) configuration in app/config/config.yml
$manager = $this->getContainer()->get('document.manager.my_project');


$repository = $manager->getRepository('User');


$user = $repository->find($id);
$users = $repository->findBy(['location' => "Paris"]);


$repository->deleteMany(['gift' => ['$lte' => 0]]);

Documentation

  1. [Installation + configuration] (Resources/doc/install.md). Documentation about installation and configuration features.

  2. [How to use] (Resources/doc/how-to-use.md). How to use mongodbbundle in your symfony project

Contribution

  • Thx to Ibrael Espinosa for the huge contribution to this bundle.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固