{"id":27217358,"url":"https://github.com/jmrashed/laravel-module-generator","last_synced_at":"2026-02-15T20:03:37.862Z","repository":{"id":286887241,"uuid":"962878945","full_name":"jmrashed/laravel-module-generator","owner":"jmrashed","description":"A simple and customizable Laravel Module Generator package to help you rapidly scaffold modular components in your Laravel application.","archived":false,"fork":false,"pushed_at":"2025-04-08T20:45:59.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-13T02:35:40.220Z","etag":null,"topics":["generator","laravel","module","package"],"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/jmrashed.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":"2025-04-08T20:14:12.000Z","updated_at":"2025-04-08T20:49:05.000Z","dependencies_parsed_at":"2025-04-08T21:40:03.484Z","dependency_job_id":null,"html_url":"https://github.com/jmrashed/laravel-module-generator","commit_stats":null,"previous_names":["jmrashed/laravel-module-generator","mrzstack/laravel-module-generator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jmrashed/laravel-module-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Flaravel-module-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Flaravel-module-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Flaravel-module-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Flaravel-module-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmrashed","download_url":"https://codeload.github.com/jmrashed/laravel-module-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmrashed%2Flaravel-module-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29487789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["generator","laravel","module","package"],"created_at":"2025-04-10T05:28:14.558Z","updated_at":"2026-02-15T20:03:37.847Z","avatar_url":"https://github.com/jmrashed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Module Generator\n\n[![Latest Version](https://img.shields.io/packagist/v/jmrashed/laravel-module-generator.svg?style=flat-square)](https://packagist.org/packages/jmrashed/laravel-module-generator)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/jmrashed/laravel-module-generator/ci.yml?branch=main)](https://github.com/jmrashed/laravel-module-generator/actions)\n[![Total Downloads](https://img.shields.io/packagist/dt/jmrashed/laravel-module-generator.svg?style=flat-square)](https://packagist.org/packages/jmrashed/laravel-module-generator)\n[![Test Status](https://img.shields.io/github/workflow/status/jmrashed/laravel-module-generator/CI)](https://github.com/jmrashed/laravel-module-generator/actions)\n[![License](https://img.shields.io/packagist/l/jmrashed/laravel-module-generator.svg?style=flat-square)](LICENSE)\n\n\u003e 🚀 A simple and flexible Laravel package to scaffold modular components with ease and speed.\n\nThe **Laravel Module Generator** helps you quickly create fully structured, reusable modules within your Laravel projects — perfect for organizing large applications and promoting clean architecture.\n\n---\n\n## 📚 Table of Contents\n\n- [Features](#-features)\n- [Installation](#-installation)\n- [Configuration](#-configuration)\n- [Usage](#-usage)\n  - [Basic Usage](#basic-usage)\n  - [Available Options](#available-options)\n  - [Real-World Example](#real-world-example)\n- [Testing](#-testing)\n- [Contributing](#-contributing)\n- [License](#-license)\n\n---\n\n## ✨ Features\n\n- 📦 Generate Laravel modules with MVC structure\n- 🔧 Supports custom namespaces and folder structures\n- 🧰 Command-line driven with Artisan commands\n- 🔌 Easily customizable and extendable\n- 🗂 Keeps your Laravel app clean, modular, and maintainable\n\n---\n\n## 🛠 Installation\n\n### Via Composer\n\n```bash\ncomposer require jmrashed/laravel-module-generator --dev\n```\n\n\u003e Alternatively, you can clone this repository:\n\n```bash\ngit clone git@github.com:jmrashed/laravel-module-generator.git\ncd laravel-module-generator\ncomposer install\n```\n\n---\n\n### Publish Configuration (Optional)\n\n```bash\nphp artisan vendor:publish --tag=module-generator-config\n```\n\nThis will create a `config/module-generator.php` file where you can customize module settings.\n\n---\n\n## ⚙️ Configuration\n\nYou can customize the following in `config/module-generator.php`:\n\n- Base modules path (default: `modules/`)\n- Default namespace\n- Folder structure (e.g., Controllers, Models, Views, etc.)\n- Custom routing configurations\n- Middleware and service provider setups\n\nThis allows you to adapt the package to fit your project’s architecture standards.\n\n---\n\n## 🚀 Usage\n\n### Basic Usage\n\nTo generate a new module, run:\n\n```bash\nphp artisan make:module Blog\n```\n\nThis will scaffold the module with default folders and routing files under `modules/Blog`.\n\n### Available Options\n\n| Option         | Description                                       |\n|----------------|---------------------------------------------------|\n| `--with-model` | Also create a model class for the module          |\n| `--api`        | Generate an API-ready module (Controller + Routes)|\n| `--force`      | Overwrite module if it already exists             |\n\n### Real-World Example\n\nTo create an **API** module with a **Blog** model, simply run:\n\n```bash\nphp artisan make:module Blog --with-model --api\n```\n\nThis will create a `Blog` module under `modules/Blog/` with:\n\n- `BlogController.php`\n- `Blog.php` model\n- `api.php` routes\n\nExample structure:\n\n```\nmodules/\n└── Blog/\n    ├── Controllers/\n    │   └── BlogController.php\n    ├── Models/\n    │   └── Blog.php\n    ├── Routes/\n    │   └── api.php\n    └── Views/\n        └── index.blade.php\n```\n\n---\n\n## 🧪 Testing\n\nTo run tests:\n\n```bash\nphp artisan test\n```\n\nOr directly with PHPUnit:\n\n```bash\nvendor/bin/phpunit\n```\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions! If you'd like to contribute, please follow these steps:\n\n1. **Fork** the repository\n2. **Create** your branch (`git checkout -b feature/your-feature-name`)\n3. **Commit** your changes (`git commit -am 'Add some feature'`)\n4. **Push** to the branch (`git push origin feature/your-feature-name`)\n5. **Create a Pull Request**\n\nPlease ensure that your code follows [PSR-12](https://www.php-fig.org/psr/psr-12/) coding standards and includes tests for new features.\n\nFor more detailed guidelines, please check the [CONTRIBUTING.md](CONTRIBUTING.md) file.\n\n---\n\n## 📃 License\n\nThis package is open-source software licensed under the [MIT license](LICENSE).\n\n---\n\n## 🙌 Acknowledgements\n\nBuilt with ❤️ by [Md Rasheduzzaman](https://rasheduzzaman.com).  \nFollow me on [GitHub](https://github.com/jmrashed) or [Twitter](https://twitter.com/_rasheduzzaman) for more Laravel goodies. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Flaravel-module-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmrashed%2Flaravel-module-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmrashed%2Flaravel-module-generator/lists"}