{"id":16102815,"url":"https://github.com/nasirkhan/module-manager","last_synced_at":"2026-04-01T23:57:36.779Z","repository":{"id":63175171,"uuid":"565720229","full_name":"nasirkhan/module-manager","owner":"nasirkhan","description":"Module Manager/ Generator for Laravel Starter.","archived":false,"fork":false,"pushed_at":"2025-04-02T17:08:05.000Z","size":81,"stargazers_count":7,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-06T05:24:41.523Z","etag":null,"topics":["hacktoberfest","laravel-starter","module","module-manager"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nasirkhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-14T07:21:06.000Z","updated_at":"2025-04-02T17:07:14.000Z","dependencies_parsed_at":"2024-05-20T08:27:57.823Z","dependency_job_id":"fde19c44-760e-41db-9f8e-55ada77927b8","html_url":"https://github.com/nasirkhan/module-manager","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.1428571428571429,"last_synced_commit":"77e19fc9a36ae3227ffab812c891d7e2296aafc9"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/nasirkhan/module-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Fmodule-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Fmodule-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Fmodule-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Fmodule-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nasirkhan","download_url":"https://codeload.github.com/nasirkhan/module-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasirkhan%2Fmodule-manager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259756888,"owners_count":22906680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","laravel-starter","module","module-manager"],"created_at":"2024-10-09T18:54:46.255Z","updated_at":"2026-04-01T23:57:36.742Z","avatar_url":"https://github.com/nasirkhan.png","language":"PHP","readme":"# Module Manager for Laravel Starter\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://res.cloudinary.com/dslg1fc8y/image/upload/v1774700302/module_manager_logo_mz2u4i.jpg\" alt=\"Module Manager - A powerful module management package for Laravel Starter\"\u003e\u003c/p\u003e\n\nModule Manager is a powerful module management package for [Laravel Starter](https://github.com/nasirkhan/laravel-starter), providing version tracking, migration management, dependency resolution, and comprehensive module lifecycle management.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/nasirkhan/module-manager.svg?style=flat-square)](https://packagist.org/packages/nasirkhan/module-manager)\n[![Total Downloads](https://img.shields.io/packagist/dt/nasirkhan/module-manager.svg?style=flat-square)](https://packagist.org/packages/nasirkhan/module-manager)\n[![StyleCI](https://github.styleci.io/repos/565720229/shield?branch=main\u0026style=flat-square)](https://github.styleci.io/repos/565720229)\n\n\n## Requirements\n\n- PHP ^8.3\n- Laravel ^12.0 || ^13.0\n\n## 📦 Installation\n\n```bash\ncomposer require nasirkhan/module-manager\n```\n\n## Quick Start\n\n```bash\nphp artisan module:status          # View all modules and their status\nphp artisan module:dependencies    # Check module dependencies\nphp artisan migrate                # Run pending migrations\n```\n\n## Available Commands\n\n### Core\n\n| Command | Description |\n|---------|-------------|\n| `module:status [module]` | View module status, versions, and dependencies |\n| `module:dependencies [module]` | Check dependency satisfaction |\n| `module:publish {module}` | Publish a module to `Modules/` for customization |\n| `module:diff {module} [--detailed]` | Compare package version with published version |\n| `module:enable {module}` | Enable a module |\n| `module:disable {module}` | Disable a module |\n| `module:build {module}` | Scaffold a new module |\n| `module:remove {module}` | Remove a module |\n| `module:make-test {module} {name} [--unit]` | Generate a test class for a module |\n| `module:help [topic]` | Show command reference and workflows |\n\n### Migration Management\n\n| Command | Description |\n|---------|-------------|\n| `module:track-migrations [module] [--force]` | Record current migration state as baseline |\n| `module:detect-updates [module]` | Detect new migrations after a composer update |\n| `module:check-migrations [module]` | Check for unpublished migrations |\n\n## Module Structure\n\n```\nModules/Post/\n├── module.json\n├── Config/\n├── Console/\n├── database/\n│   ├── migrations/\n│   ├── seeders/\n│   └── factories/\n├── Http/\n│   ├── Controllers/\n│   ├── Requests/\n│   └── Middleware/\n├── Livewire/\n├── Models/\n├── Providers/\n├── Resources/\n├── routes/\n├── lang/\n├── Tests/\n│   ├── Feature/\n│   └── Unit/\n└── Resources/\n    └── views/\n```\n\n---\n\n## Module Configuration (`module.json`)\n\n```json\n{\n    \"name\": \"Post\",\n    \"alias\": \"post\",\n    \"description\": \"Blog post management module with categories, tags, and moderation\",\n    \"version\": \"1.0.0\",\n    \"keywords\": [\"post\", \"blog\", \"article\", \"content\"],\n    \"priority\": 0,\n    \"requires\": [\"Category\", \"Tag\"]\n}\n```\n\n- `priority`: Load order — higher values load first (e.g. `10` for core deps, `5` for UI, `0` for content)\n- `requires`: Module names this module depends on\n\n---\n\n## Publishing Module Assets\n\n```bash\nphp artisan vendor:publish --tag=post-migrations\nphp artisan vendor:publish --tag=post-views\nphp artisan vendor:publish --tag=post-config\nphp artisan vendor:publish --tag=post-lang\n```\n\n---\n\n## Namespace Architecture\n\n| Location | Namespace |\n|----------|-----------|\n| `vendor/nasirkhan/module-manager/src/Modules/` | `Nasirkhan\\ModuleManager\\Modules\\{Module}\\...` |\n| `Modules/` (published) | `Modules\\{Module}\\...` |\n\nWhen publishing a module (`module:publish`), all namespaces are rewritten automatically. After publishing, run:\n\n```bash\ncomposer dump-autoload\nphp artisan config:clear\n```\n\n---\n\n## Troubleshooting\n\n**Module not showing in status:**\n```bash\ncomposer dump-autoload\nphp artisan cache:clear \u0026\u0026 php artisan config:clear\n```\n\n**Migrations not detected after update:**\n```bash\nphp artisan module:track-migrations --force\nphp artisan module:detect-updates\nphp artisan vendor:publish --tag=post-migrations\nphp artisan migrate\n```\n\n---\n\n## Programmatic API\n\n### ModuleVersion\n\n```php\nuse Nasirkhan\\ModuleManager\\Services\\ModuleVersion;\n\n$service = app(ModuleVersion::class);\n\n$service-\u003egetVersion('Post');               // \"1.0.0\"\n$service-\u003egetDependencies('Post');          // ['Category', 'Tag']\n$service-\u003edependenciesSatisfied('Post');    // bool\n$service-\u003egetModulesByPriority();           // ordered module list\n```\n\n### MigrationTracker\n\n```php\nuse Nasirkhan\\ModuleManager\\Services\\MigrationTracker;\n\n$tracker = app(MigrationTracker::class);\n\n$tracker-\u003etrackModuleMigrations('Post', '1.0.0');\n$tracker-\u003egetNewMigrationsSinceLastCheck('Post');\n$tracker-\u003egetPendingMigrations('Post');\n$tracker-\u003ehasUpdates('Post');\n```\n\n---\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for development guidelines.\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.\n\n## Available Modules\n\n| Module | Version | Description | Dependencies |\n|--------|---------|-------------|--------------|\n| **Post** | 1.0.0 | Blog post management with moderation | Category, Tag |\n| **Category** | 1.0.0 | Category management with nested sets | — |\n| **Tag** | 1.0.0 | Polymorphic tagging system | — |\n| **Menu** | 1.0.0 | Dynamic menu with nested items | — |\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasirkhan%2Fmodule-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasirkhan%2Fmodule-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasirkhan%2Fmodule-manager/lists"}