mongodb/mongodb
Composer 安装命令:
composer require mongodb/mongodb
包简介
MongoDB driver library
README 文档
README
This library provides a high-level abstraction around the lower-level
PHP driver (mongodb extension).
While the extension provides a limited API for executing commands, queries, and write operations, this library implements a full-featured API similar to that of other MongoDB drivers. It contains abstractions for client, database, and collection objects, and provides methods for CRUD operations and common commands (e.g. index and collection management).
If you are developing an application with MongoDB, you should consider using this library, or another high-level abstraction, instead of the extension alone.
Additional information about the architecture of this library and the mongodb
extension may be found in
Architecture Overview.
Documentation
Installation
The preferred method of installing this library is with Composer by running the following from your project root:
$ composer require mongodb/mongodb
Additional installation instructions may be found in the library documentation.
Since this library is a high-level abstraction for the driver, it also requires
that the mongodb extension be installed:
$ pecl install mongodb
$ echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
Additional installation instructions for the extension may be found in its PHP.net documentation.
Release Integrity
Releases are created automatically and the resulting release tag is signed using
the PHP team's GPG key. To verify the
tag signature, download the key and import it using gpg:
gpg --import php-driver.asc
Then, in a local clone, verify the signature of a given tag (e.g. 1.19.0):
git show --show-signature 1.19.0
Note
Composer does not support verifying signatures as part of its installation process.
Reporting Issues
Issues pertaining to the library should be reported in the PHPLIB project in MongoDB's JIRA. Extension-related issues should be reported in the PHPC project.
For general questions and support requests, please use one of MongoDB's Technical Support channels.
Security Vulnerabilities
If you've identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions in Create a Vulnerability Report.
Development
Development is tracked in the PHPLIB project in MongoDB's JIRA. Documentation for contributing to this project may be found in CONTRIBUTING.md.
mongodb/mongodb 适用场景与选型建议
mongodb/mongodb 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 67.21M 次下载、GitHub Stars 达 1.61k, 最近一次更新时间为 2014 年 12 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「database」 「persistence」 「mongodb」 「driver」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mongodb/mongodb 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mongodb/mongodb 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mongodb/mongodb 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Dibi is Database Abstraction Library for PHP
Generates Symfony2 documents, forms and CRUD
This bundle provides tools to build persistence-agnostic storage layer.
Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.
Kinikit - PHP Application development framework MVC component
Store your language lines in the database, yaml or other sources
统计信息
- 总下载量: 67.21M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1693
- 点击次数: 18
- 依赖项目数: 649
- 推荐数: 135
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2014-12-19