imbo/imbo-mongodb-adapters 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

imbo/imbo-mongodb-adapters

Composer 安装命令:

composer require imbo/imbo-mongodb-adapters

包简介

MongoDB adapters for Imbo

关键字:

README 文档

README

MongoDB storage and database adapters for Imbo.

Installation

composer require imbo/imbo-mongodb-adapters

Usage

This package provides both storage and database adapters for Imbo, leveraging GridFS and MongoDB. The package also has a storage adapter for image variations.

$mainDatabaseAdapter = new Imbo\Database\MongoDB();
$mainStorageAdapter = new Imbo\Storage\GridFS();
$imageVariationsDatabaseAdapter = new Imbo\EventListener\ImageVariations\Database\MongoDB();
$imageVariationsStorageAdapter = new Imbo\EventListener\ImageVariations\Storage\GridFS();
$mutableAccessControlAdapter = new Imbo\Auth\AccessControl\Adapter\MongoDB();

Running integration tests

If you want to run the integration tests you will need a running MongoDB service. The repo contains a simple configuration file for Docker Compose that you can use to quickly run a MongoDB instance.

If you wish to use this, run the following command to start up the service after you have cloned the repo:

docker-compose up -d

After the service is running you can execute all tests by simply running PHPUnit:

composer run test # or ./vendor/bin/phpunit

License

MIT, see LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-17