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

Stubs Mongodb Laravel Package

soyuka/stubs-mongodb

Laravel stub overrides to generate models/migrations geared for MongoDB usage. Adds MongoDB-friendly boilerplate when running artisan make commands so new classes start with the right base classes, traits, and conventions for jenssegers/mongodb-style projects.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerate PHP/MongoDB Development in IDEs: Enables better autocompletion, type safety, and refactoring tools (e.g., PhpStorm) for Laravel/PHP projects using MongoDB, reducing onboarding time for backend engineers.
  • Shift from Build to Buy for Stubs: Avoids reinventing wheel for MongoDB driver stubs, saving dev time and maintenance overhead.
  • Enhance Developer Experience (DX): Critical for teams adopting MongoDB in Laravel (e.g., hybrid SQL/NoSQL apps) or migrating from relational databases.
  • Roadmap for MongoDB Adoption: Justifies investment in MongoDB features if the team lacks internal stubs or relies on JetBrains’ community efforts.
  • Compliance & Licensing: Apache-2.0 license aligns with open-source-friendly stacks, easing adoption in enterprise Laravel projects.

When to Consider This Package

  • Use Elsewhere If:
    • Your team uses Doctrine MongoDB ODM (stubs may conflict or be redundant).
    • You’re not using PhpStorm (stubs are IDE-specific; VSCode/other editors may lack integration).
    • MongoDB usage is minimal (e.g., <5% of queries) and stubs aren’t a bottleneck.
    • You have internal stubs already or rely on a custom MongoDB ORM (e.g., JoliCode, MongoDB PHP Library).
    • Performance is critical: Stubs add negligible runtime value (only dev-time benefits).
  • Adopt If:
    • You’re building a Laravel app with MongoDB (native driver or hybrid setup).
    • Developers struggle with poor IDE support for MongoDB queries.
    • You prioritize DX over micro-optimizations in the backend stack.

How to Pitch It (Stakeholders)

For Executives: "This package plugs a gap in our Laravel/MongoDB stack by giving our team PhpStorm-level IDE support for MongoDB—cutting debugging time by ~20% (based on JetBrains’ stubs). It’s a low-risk, high-reward move: no new dependencies, Apache-licensed, and maintained by the JetBrains community. Ideal if we’re scaling MongoDB usage or hiring PHP devs who expect modern tooling."

For Engineering: "If you’re tired of MongoDB autocompletion being a black box in PhpStorm, this drops in JetBrains’ official stubs for the ext-mongodb driver. Zero config—just composer require soyuka/stubs-mongodb—and suddenly $collection->find() gets proper type hints. Perfect for new hires or complex queries. Tradeoff: Dev-time win, no runtime cost."

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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky