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

Laravel Modules Laravel Package

mozex/laravel-modules

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Modular Monolith Architecture: Enables a scalable, maintainable Laravel application by decomposing features into self-contained modules (e.g., AuthModule, BillingModule). Reduces merge conflicts and simplifies team collaboration.
  • Accelerated MVP Development: Rapidly scaffold modular features (e.g., admin dashboards, user profiles) with auto-registered assets (routes, views, migrations) to validate hypotheses faster.
  • Build vs. Buy: Avoids reinventing modularity wheels (e.g., custom composer packages, manual service provider registration) while offering more flexibility than monolithic Laravel apps.
  • Multi-Tenant SaaS: Isolates tenant-specific logic (e.g., TenantA/Features, TenantB/Features) with minimal boilerplate.
  • Legacy System Modernization: Gradually modularize monolithic Laravel apps by migrating components incrementally (e.g., Modules/OldAuth, Modules/NewAuth).
  • Plugin/Ecosystem Strategy: Distribute reusable modules (e.g., PaymentGatewayModule, AnalyticsModule) as internal packages or sell them as premium add-ons.

When to Consider This Package

Adopt when:

  • Your Laravel app exceeds 50K+ LoC or has 3+ teams working on overlapping features (e.g., auth, billing, reporting).
  • You need zero-config modularity but want fine-grained control (e.g., disable specific modules via config).
  • Your roadmap includes rapid feature iteration (e.g., startups, MVPs) or legacy refactoring.
  • You use Filament, Nova, Livewire, or other Laravel ecosystems—this package integrates natively with them.
  • Your team prioritizes developer velocity over strict microservice boundaries (avoid if you need full microservices).

Look elsewhere if:

  • You’re building a true microservices architecture (use Lumen or standalone services instead).
  • Your app is <10K LoC and monolithic (overhead isn’t justified).
  • You need runtime module loading (e.g., plugins users can enable/disable at runtime; consider spatie/laravel-package-tools).
  • Your team lacks Laravel/PHP expertise (steep learning curve for advanced modular patterns).
  • You require first-class dependency management between modules (this package assumes loose coupling).

How to Pitch It (Stakeholders)

For Executives: "This package lets us build Laravel apps like LEGO—each feature is a self-contained ‘module’ that auto-configures itself. For example, adding a ‘Subscriptions’ feature takes minutes instead of hours, and our dev team can work in parallel without stepping on each other. It’s ideal for scaling our MVP or modernizing legacy systems while keeping costs low (MIT license, no vendor lock-in). Think of it as ‘modularity on autopilot’—faster development, easier maintenance, and a cleaner codebase for future hires."

For Engineering: *"Laravel-Modules solves our modularity pain points by:

  • Auto-discovering all module assets (routes, views, migrations, etc.) from a Modules/ directory—no manual Route::group or ServiceProvider boilerplate.
  • Supporting modern Laravel stacks: Livewire, Filament, Nova, and even Blade components work out of the box.
  • Enabling incremental adoption: Start with one module (e.g., Auth) and expand as needed.
  • Reducing merge conflicts: Teams can work on isolated modules without touching shared files. Downsides: Slight learning curve for module structure, but the docs are solid. Perfect for apps growing beyond 50K LoC or teams >3 devs."*

For Developers: *"No more:

  • Forgetting to register a module’s routes in routes/web.php.
  • Fighting merge conflicts in AppServiceProvider.php.
  • Rewriting the same php artisan make:module script every project. This package handles all that for you. Just drop a folder in Modules/ with your files, and it ‘just works.’ Supports everything from Blade views to Filament resources—way better than rolling your own solution."*
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.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle