nasirkhan/module-manager
Laravel module management for Laravel Starter: track module versions, handle migrations and updates, resolve dependencies, publish/enable/disable modules, scaffold/build modules, diff changes, and generate module tests via artisan commands.
module:enable/module:disable to A/B test modules or roll out features gradually without code branching. Prioritization (priority in module.json) ensures safe load ordering.module:dependencies) to plan feature releases. For example:
module:build), reducing onboarding time for new developers.module:track-migrations and module:detect-updates, ensuring smooth composer updates.Adopt if:
Look elsewhere if:
composer updates).spatie/laravel-routing) over module-based organization.*"This package lets us build Laravel like LEGO—breaking the app into reusable, version-controlled modules. Instead of one monolithic codebase that slows us down, we can:
ROI: Faster iterations, easier maintenance, and future-proof architecture for our growing team. Used by [hypothetical company] to cut deployment time by 40%."*
*"This is a Swiss Army knife for Laravel modularity:
module:build generates CRUD, migrations, and tests in seconds (no more copy-pasting resources/).module:dependencies flags conflicts before they break staging.migrate:fresh failures.ModuleVersion and MigrationTracker services to build custom workflows (e.g., auto-disable modules with failing tests).Trade-offs:
composer updates (mitigated by module:detect-updates).Next Steps:
module:publish workflows to customize vendor packages."**"Stop fighting Laravel’s monolith—this package gives you:
✅ php artisan module:build User → Full module skeleton in 1 command.
✅ module:enable payments --env=staging → Test features in isolation.
✅ module:diff posts --detailed → See what changed between versions.
✅ No more ‘it works on my machine’: Dependency graphs catch conflicts early.
Pro Tip: Use priority in module.json to control load order (e.g., 10 for auth, 5 for UI). Pair with module:make-test to auto-generate test classes.
Gotchas:
composer dump-autoload (add to deploy scripts).How can I help you explore Laravel packages today?