nasirkhan/module-manager
Laravel module manager for Laravel Starter with version tracking, migration baselines/updates, dependency checks, publish/diff workflows, and enable/disable lifecycle commands. Includes scaffolding, removal, and test generation via Artisan.
module:build, module:make-test) by automating scaffolding, cutting development time for CRUD-heavy features (e.g., "Posts," "Categories").module.json requirements and priority-based loading, critical for legacy system refactoring or multi-vendor integrations.module.json and dependency resolution may not justify benefits.composer dump-autoload pitfalls).*"This package lets us ship features faster and safer by breaking our Laravel app into reusable, version-controlled modules—like Lego blocks for our codebase. For example:
php artisan module:build in minutes, not days.*"This solves three critical pain points:
module.json enforces explicit dependencies (e.g., ‘Posts’ requires ‘Categories’), preventing runtime errors.php artisan migrate only runs what’s needed after a composer update.module:build), cutting repetitive setup.
Tradeoffs:module:publish).*"Here’s how you’ll use it daily:
php artisan module:build Blog → Instant scaffolding for a new module.php artisan module:status → See which modules are enabled/disabled and their versions.php artisan module:enable Payments --env=production → Toggle features per environment.php artisan module:make-test User --unit → Auto-generate test classes.
Pro Tip: Always run composer dump-autoload after publishing modules to avoid ‘Class not found’ errors. The MigrationTracker service will save you hours when updating dependencies."*How can I help you explore Laravel packages today?