Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Mongodbbundle

Mongodbbundle Laravel Package

pouzor/mongodbbundle

A Symfony bundle that integrates MongoDB via Doctrine's MongoDB ODM, providing document mapping, repository services, and ready-made configuration so you can persist and query MongoDB documents with minimal setup.

View on GitHub
Deep Wiki
Context7

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

Frequently asked questions about Mongodbbundle
What is pouzor/mongodbbundle used for?
pouzor/mongodbbundle is a Symfony bundle that adds MongoDB support through Doctrine's MongoDB ODM. It lets you configure MongoDB connections and document handling with standard Symfony bundle configuration and dependency injection services. Use it when you want document mapping, repositories, and centralized connection settings inside a Symfony project.
How do I install pouzor/mongodbbundle with Composer?
Install it with Composer using composer require pouzor/mongodbbundle. Then register the bundle in your Symfony application's bundle configuration, following the conventions for your Symfony version. After registration, configure the MongoDB connection parameters in your Symfony config files.
Can I use pouzor/mongodbbundle in a Laravel application?
No. pouzor/mongodbbundle is built as a Symfony bundle, so it is not a drop-in package for Laravel applications. Laravel projects should use a Laravel-specific MongoDB package such as mongodb/laravel-mongodb, or integrate Doctrine MongoDB ODM manually. You can still read its configuration patterns, but the bundle's service container integration is Symfony-specific.
How do I configure the MongoDB connection for this bundle?
You configure the connection through the bundle's Symfony configuration, typically in config.yml or a config/packages file depending on your Symfony version. The bundle centralizes connection settings so the MongoDB client and ODM document manager are available as container services. Check the repository README for the exact configuration keys and defaults before deploying.
Does it support document mapping and custom repositories?
Yes. The bundle is described as supporting document mapping and repositories through Doctrine's MongoDB ODM. That means you can map PHP classes to MongoDB documents and expose repository services through Symfony's container. The exact mapping configuration depends on your ODM setup and the bundle's documented options.
Which Symfony versions does pouzor/mongodbbundle support?
The repository's composer.json is the authoritative source for supported Symfony and PHP versions. Do not assume support for current Symfony releases; check the constraints before adding it to a Symfony 6 or 7 project. Also verify that the Doctrine MongoDB ODM version required by the bundle is still maintained.
How do I test MongoDB integration in a Symfony app using this bundle?
For testing, use a dedicated MongoDB database or an in-memory alternative compatible with your ODM version, and point the bundle's test configuration at it. Write integration tests that boot the Symfony kernel so the bundle's services and document mapping are exercised. Keep production connection settings out of test config and use environment-specific parameters.
Is pouzor/mongodbbundle suitable for production?
It can be used in production if the bundle's Symfony and ODM versions are compatible with your application and still receive security updates. Since it is a small integration bundle, you should review its maintenance status, test coverage, and open issues before relying on it for critical data. Also confirm that your MongoDB server version is supported by the underlying Doctrine ODM.
What are alternatives to pouzor/mongodbbundle?
Alternatives include using Doctrine MongoDB ODM directly with Symfony's DoctrineBundle configuration, or using a more actively maintained MongoDB integration bundle. For Laravel applications, mongodb/laravel-mongodb is the usual choice. Compare maintenance activity, supported Symfony versions, and whether you need ODM document mapping or just a raw MongoDB client.
How is the bundle maintained and updated?
Maintenance should be checked on the GitHub repository, including recent commits, releases, and issue activity. Because the package is a Symfony bundle, its release cadence often follows changes in Symfony and Doctrine MongoDB ODM. Pin a known-good version in composer.json and review changelogs before upgrading.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource