{"id":36372701,"url":"https://github.com/norbybaru/modularize","last_synced_at":"2026-04-03T19:03:00.336Z","repository":{"id":57028369,"uuid":"132519309","full_name":"norbybaru/modularize","owner":"norbybaru","description":"Generates Laravel modules","archived":false,"fork":false,"pushed_at":"2026-03-19T16:58:15.000Z","size":47,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-20T08:37:22.259Z","etag":null,"topics":["laravel","modularize","module","module-pattern","php"],"latest_commit_sha":null,"homepage":null,"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/norbybaru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-05-07T21:40:27.000Z","updated_at":"2026-03-19T16:58:19.000Z","dependencies_parsed_at":"2025-05-23T23:24:37.063Z","dependency_job_id":"433569ef-a848-4a98-8041-308dbbcd2521","html_url":"https://github.com/norbybaru/modularize","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"234c857f4ba3edc6c0e15d974a31217dc5be154c"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/norbybaru/modularize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norbybaru%2Fmodularize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norbybaru%2Fmodularize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norbybaru%2Fmodularize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norbybaru%2Fmodularize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/norbybaru","download_url":"https://codeload.github.com/norbybaru/modularize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norbybaru%2Fmodularize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31371652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["laravel","modularize","module","module-pattern","php"],"created_at":"2026-01-11T14:02:22.736Z","updated_at":"2026-04-03T19:03:00.217Z","avatar_url":"https://github.com/norbybaru.png","language":"PHP","readme":"# Modularize\n\n**Modularize** helps you organize large Laravel applications into self-contained modules — each with its own controllers, models, migrations, routes, and service providers.\n\nInstead of scattering related code across `app/Http/Controllers`, `app/Models`, and `database/migrations`, you group everything by feature: `modules/Auth/`, `modules/Billing/`, `modules/Notifications/`. Each module is independently navigable, testable, and replaceable — without changing how Laravel loads your application.\n\n## Requirements\n\n- PHP 8.2+\n- Laravel 10, 11, or 12\n\n## Installation\n\n```bash\ncomposer require norbybaru/modularize\n```\n\n## Configuration\n\nPublish the package configuration:\n\n```bash\nphp artisan vendor:publish --provider=\"NorbyBaru\\Modularize\\ModularizeServiceProvider\"\n```\n\n### Autoloading\n\nAdd the `Modules` namespace to your `composer.json` and run `composer dump-autoload`:\n\n```json\n{\n    \"autoload\": {\n        \"psr-4\": {\n            \"App\\\\\": \"app/\",\n            \"Modules\\\\\": \"modules/\"\n        }\n    }\n}\n```\n\n### Config options\n\nThe published config file (`config/modularize.php`) exposes the following options:\n\n| Option | Default | Description |\n|---|---|---|\n| `enable` | `true` | Autoload all modules found in `root_path` |\n| `root_path` | `modules` | Root directory where modules are created |\n| `autoload_routes` | `true` | Automatically register routes from each module's `Routes/` directory |\n| `autoload_service_provider` | `true` | Automatically register each module's `Providers/\u003cModuleName\u003eServiceProvider.php` |\n\nWhen `enable` is `true`, modules are automatically discovered and booted — no manual registration required.\n\n## Creating Your First Module\n\nGenerate a model with all related files in one command:\n\n```bash\nphp artisan module:make:model User --module=Auth --all\n```\n\nThis creates the following structure:\n\n```\nmodules/\n└── Auth/\n    ├── Controllers/\n    │   └── UserController.php\n    ├── Database/\n    │   ├── Factories/\n    │   │   └── UserFactory.php\n    │   ├── Migrations/\n    │   │   └── \u003ctimestamp\u003e_create_users_table.php\n    │   └── Seeders/\n    │       └── UserSeeder.php\n    ├── Models/\n    │   └── User.php\n    └── Policies/\n        └── UserPolicy.php\n```\n\n## Command Reference\n\n### Module Management\n\n| Command | Description |\n|---|---|\n| `module:list` | List all existing modules |\n\n### Generators\n\nAll generator commands accept `--module=\u003cname\u003e` to specify the target module and `--force` to overwrite an existing file. If `--module` is omitted, you will be prompted interactively with autocomplete.\n\n| Command | Key Options | Description |\n|---|---|---|\n| `module:make:model` | `-a/--all`, `-m/--migration`, `-f/--factory`, `-s/--seed`, `-c/--controller`, `--policy`, `--api`, `-r/--resource`, `-i/--invokable`, `-p/--pivot` | Generate a model; `--all` also creates a migration, factory, seeder, policy, and resource controller |\n| `module:make:controller` | `--api`, `-r/--resource`, `-i/--invokable`, `-m/--model=` | Generate a controller (`--api` omits `create` and `edit` methods) |\n| `module:make:migration` | `--create=`, `--table=` | Generate a migration |\n| `module:make:factory` | `--model=` | Generate a model factory |\n| `module:make:seeder` | — | Generate a seeder |\n| `module:make:policy` | `--model=` | Generate a policy |\n| `module:make:request` | — | Generate a form request |\n| `module:make:resource` | — | Generate an API resource |\n| `module:make:middleware` | — | Generate middleware |\n| `module:make:event` | — | Generate an event |\n| `module:make:listener` | — | Generate a listener |\n| `module:make:job` | — | Generate a job |\n| `module:make:mail` | — | Generate a mailable |\n| `module:make:notification` | — | Generate a notification |\n| `module:make:provider` | — | Generate a service provider |\n| `module:make:component` | — | Generate a view component |\n| `module:make:console` | — | Generate an Artisan command |\n| `module:make:view` | — | Generate a Blade view |\n| `module:make:test` | — | Generate a test class |\n\n## Contributing\n\nContributions are welcome. Fork the repository, create a branch off `master`, and open a pull request.\n\n## License\n\nMIT — see [LICENSE.md](LICENSE.md).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorbybaru%2Fmodularize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorbybaru%2Fmodularize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorbybaru%2Fmodularize/lists"}