{"id":15641607,"url":"https://github.com/dcblogdev/laravel-module-generator","last_synced_at":"2026-04-01T18:47:17.102Z","repository":{"id":43323317,"uuid":"463559799","full_name":"dcblogdev/laravel-module-generator","owner":"dcblogdev","description":"Generate boilerplate code for Laravel","archived":false,"fork":false,"pushed_at":"2026-03-19T19:22:22.000Z","size":9117,"stargazers_count":77,"open_issues_count":0,"forks_count":20,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-20T10:43:34.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcblogdev.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["dcblogdev"]}},"created_at":"2022-02-25T14:19:57.000Z","updated_at":"2026-03-19T19:21:31.000Z","dependencies_parsed_at":"2024-03-12T12:31:57.244Z","dependency_job_id":"fb252864-aa0f-4064-b908-b231d41cabb5","html_url":"https://github.com/dcblogdev/laravel-module-generator","commit_stats":{"total_commits":30,"total_committers":2,"mean_commits":15.0,"dds":0.06666666666666665,"last_synced_commit":"aaa58e838afdc77ebdc29ee7e03d95e9d4d90a49"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/dcblogdev/laravel-module-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcblogdev%2Flaravel-module-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcblogdev%2Flaravel-module-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcblogdev%2Flaravel-module-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcblogdev%2Flaravel-module-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcblogdev","download_url":"https://codeload.github.com/dcblogdev/laravel-module-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcblogdev%2Flaravel-module-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2024-10-03T11:43:35.525Z","updated_at":"2026-04-01T18:47:17.096Z","avatar_url":"https://github.com/dcblogdev.png","language":"PHP","readme":"## Community\n\nThere is a Discord community. https://discord.gg/VYau8hgwrm For quick help, ask questions in the appropriate channel.\n\n![Logo](https://repository-images.githubusercontent.com/463559799/6ff80679-ea73-42b9-bcb1-cb4e0e77f475)\n\nLaravel package for generating [Laravel Modules](https://github.com/nWidart/laravel-modules) from a template. \n\n# Requirements\n\nPHP 8.2+\nLaravel Modules package installed https://github.com/nWidart/laravel-modules\n\n## Video demo\n\n[![Intro video](https://github.com/dcblogdev/laravel-module-generator/assets/1018170/523f2c4b-a57d-4ae0-8351-6b08d7b8c87c)](https://www.youtube.com/watch?v=BwYzfb9Fa8A\u0026t=2s)\n\nhttps://www.youtube.com/watch?v=BwYzfb9Fa8A\u0026t=2s\n\n# Install\n\nYou can install the package via composer:\n\n```bash\ncomposer require dcblogdev/laravel-module-generator\n```\n\nPublish both the `config` and `stubs`:\n\n```bash\nphp artisan vendor:publish --provider=\"Dcblogdev\\ModuleGenerator\\ModuleGeneratorServiceProvider\"\n```\n\nThis will publish a `module-generator.php` config file\n\nThis contains:\n```php\n'template' =\u003e [\n    'Breeze - Blade - CRUD Web \u0026 API' =\u003e 'stubs/module-generator/breeze-crud-full',\n    'Breeze - Blade - CRUD Web only' =\u003e 'stubs/module-generator/breeze-crud-web',\n    'Breeze - Blade - CRUD API only' =\u003e 'stubs/module-generator/breeze-crud-api'\n],\n'ignore_files' =\u003e ['module.json']\n```\nBy default, the stubs will be located at stubs/module-generator you can add your paths by adding folders and updating the config file.\n\n# Usage\n\n```bash\nphp artisan module:build\n```\n\n\u003cimg width=\"737\" alt=\"300550938-529c214d-a02a-4577-8904-c865b2f41f7e\" src=\"https://github.com/dcblogdev/laravel-module-generator/assets/1018170/82c0828f-b9d6-4eff-b7ca-908b46fe37e7\"\u003e\n\n{module?} is the name of the module you want to create. If you don't provide a name you will be asked to enter one.\n\n{template?} is the name of the template you want to use. If you don't provide a name you will be asked to enter one.\n\n```bash\nphp artisan module:build Contacts \"Breeze - CRUD API only\"\n```\n\nOnce a module has been created, enable it:\n\n```bash\nphp artisan module:enable ModuleName\n```\n\nThen run:\n\n```bash\ncomposer dump-autoload\n```\n\nCreate or update the stubs file. The filename and contents should have placeholders for example `ModulesController` will be replaced with your name + Controller. ie `ContactsController` when the command is executed.\n\n## Placeholders:\n\nThese placeholders are replaced with the name provided when running `php artisan module:build`\n\n### Used in filenames:\n\n`Module` = Module name ie `Contacts`\n\n`module` = Module name in lowercase ie `contacts`\n\n`module_plural` = Plural module name in lowercase ie demo becomes `demos`\n\n`Model` = Model name ie `Contact`\n\n`model` = Model name in lowercase ie `contact`\n\n### Only used inside files:\n\n## 🟦 Module Placeholders (`$name = 'PurchaseOrders'`)\n\n| Placeholder               | Value              |\n|---------------------------|---------------------|\n| {Module}                | PurchaseOrders     |\n| {Module }               | Purchase Orders    |\n| {Module-}               | Purchase-Orders    |\n| {Module_}               | Purchase_Orders    |\n| {ModuleCamel}           | purchaseOrders     |\n| {ModuleStudly}          | PurchaseOrders     |\n| {ModuleTitle}           | Purchase Orders    |\n| {module}                | purchaseorders     |\n| {module }               | purchase orders    |\n| {module-}               | purchase-orders    |\n| {module_}               | purchase_orders    |\n| {moduleCamel}           | purchaseOrders     |\n| {moduleStudly}          | PurchaseOrders     |\n| {modulePlural}          | purchase orders    |\n| {module_plural}         | purchase orders    |\n| {module_plural_snake}   | purchase_orders    |\n| {module_plural_kebab}   | purchase-orders    |\n| {module_title}          | Purchase Orders    |\n\n## 🟩 Model Placeholders (`$model = 'PurchaseOrder'`)\n\n| Placeholder               | Value              |\n|---------------------------|---------------------|\n| {Model}                 | PurchaseOrder      |\n| {Model }                | Purchase Order     |\n| {Model-}                | Purchase-Order     |\n| {Model_}                | Purchase_Order     |\n| {ModelCamel}            | purchaseOrder      |\n| {ModelStudly}           | PurchaseOrder      |\n| {ModelTitle}            | Purchase Order     |\n| {model}                 | purchaseorder      |\n| {model }                | purchase order     |\n| {model-}                | purchase-order     |\n| {model_}                | purchase_order     |\n| {modelCamel}            | purchaseOrder      |\n| {modelStudly}           | PurchaseOrder      |\n| {model_plural}          | purchase orders    |\n| {model_plural_snake}    | purchase_orders    |\n| {model_plural_kebab}    | purchase-orders    |\n| {model_title}           | Purchase Order     |\n\n## Contributing\n\nContributions are welcome and will be fully credited.\n\nContributions are accepted via Pull Requests on [Github][4].\n\n## Pull Requests\n\n- **Document any change in behaviour** - Make sure the `readme.md` and any other relevant documentation are kept up-to-date.\n\n- **Consider our release cycle** - We try to follow [SemVer v2.0.0][5]. Randomly breaking public APIs is not an option.\n\n- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.\n\n## Security\n\nIf you discover any security related issues, please email dave@dcblog.dev email instead of using the issue tracker.\n\n## License\n\nlicense. Please see the [license file][6] for more information.\n\n[3]:    changelog.md\n[4]:    https://github.com/dcblogdev/laravel-module-generator\n[5]:    http://semver.org/\n[6]:    license.md\n","funding_links":["https://github.com/sponsors/dcblogdev"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcblogdev%2Flaravel-module-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcblogdev%2Flaravel-module-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcblogdev%2Flaravel-module-generator/lists"}