Weave Code
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
Direct To Mongodb

Direct To Mongodb Laravel Package

akeneo-labs/direct-to-mongodb

View on GitHub
Deep Wiki
Context7

Akeneo PIM Bundle to use direct to DB method to save products

Frequently asked questions about Direct To Mongodb
Can I use this bundle with Akeneo 2.x or 3.x for faster product saves?
No, this bundle is **exclusively for Akeneo 1.4.0–1.4.12** with MongoDB storage. Akeneo 2.x/3.x uses Elasticsearch/PostgreSQL by default and has no compatibility. Modern alternatives like Symfony Messenger or Elasticsearch bulk APIs are recommended instead.
What’s the performance gain compared to Akeneo’s native direct-to-DB in 1.4.13+?
This bundle bypasses Doctrine MongoDB ODM for raw MongoDB writes, which can improve bulk-save speeds for legacy 1.4.x projects. However, Akeneo 1.4.13+ already includes this as default, so there’s no advantage unless you’re locked to 1.4.0–1.4.12. Test with your dataset to confirm gains.
Will this break if Akeneo adds new required fields to products?
Yes. Direct-to-DB writes assume MongoDB schema matches Akeneo’s internal model exactly. If Akeneo’s product structure evolves (e.g., new mandatory fields), this bundle will fail to save products without manual schema updates. No built-in validation exists for schema drift.
Does this bundle support PHP 8.x or modern Doctrine MongoDB ODM?
No. It requires **Doctrine MongoDB ODM v1.0.0-beta12** (abandoned in 2015) and **PHP ≤7.0**. Modern ODM versions (v2+) and PHP 8.x are incompatible. Downgrading Akeneo to 1.4.x and pinning ODM to beta12 is required, which is high-risk and unsupported.
How do I install this in a Laravel project? It’s an Akeneo bundle.
This bundle is **not for Laravel**—it’s a legacy Akeneo PIM extension. If you’re using Laravel with MongoDB, consider alternatives like **Laravel MongoDB** packages (e.g., `jenssegers/mongodb`) or custom bulk-write scripts. Akeneo’s ecosystem is separate from Laravel’s Composer ecosystem.
What happens if a save fails mid-bulk operation? Can I roll back?
There’s **no transaction support**. Direct MongoDB writes bypass Doctrine transactions, so partial saves may corrupt data. You’ll need custom error handling and manual recovery (e.g., backups or retry logic). Akeneo’s native ORM provides rollback safety by default.
Are pre/post-save events (e.g., Elasticsearch indexing) still triggered?
No. This bundle **bypasses Akeneo’s event system**, including critical hooks like product indexing, validation, or notifications. If your workflow relies on these, this bundle will break functionality. Use Akeneo’s native direct-to-DB (1.4.13+) or optimize with bulk writes instead.
Is there a migration path to Akeneo 2.x if I use this bundle?
No. This bundle locks you to **Akeneo 1.4.0–1.4.12** with MongoDB. Upgrading to 2.x/3.x would require a full rewrite, as the bundle is incompatible with Elasticsearch/PostgreSQL. Evaluate modern Akeneo versions or alternatives like **Sylius** or **Spryker** for future-proofing.
What’s the security risk of raw MongoDB queries vs. Doctrine ODM?
Raw queries expose **MongoDB injection risks** if input isn’t sanitized. Doctrine ODM handles escaping and validation automatically. This bundle assumes Akeneo’s data is already clean, but custom imports or user-generated fields could introduce vulnerabilities. Always validate input before bulk saves.
Why is this bundle deprecated, and what should I use instead?
Akeneo **1.4.13+** made direct-to-DB the default, eliminating the need for this bundle. For **Akeneo 1.4.x**, use native bulk writes or upgrade to 2.x/3.x. For **Laravel**, use packages like `jenssegers/mongodb` or custom bulk operations. This bundle is **unmaintained** (last release: 2015) and tied to abandoned tech.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware