baracod / larastarterkit
A powerful Modular Monolith Starter Kit for Laravel with Vue, Vuetify and Nwidart Modules.
Fund package maintenance!
baracod
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 2
pkg:composer/baracod/larastarterkit
Requires
- php: ^8.3
- illuminate/console: ^11.0|^12.0
- illuminate/contracts: ^11.0|^12.0
- illuminate/support: ^11.0|^12.0
- nwidart/laravel-modules: ^11.0|^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9|^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1
- orchestra/testbench: ^9.0|^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- spatie/laravel-ray: ^1.35
This package is auto-updated.
Last update: 2025-12-29 09:11:11 UTC
README
Larastarterkit is the ultimate Modular Monolith starter kit for Laravel. It empowers you to generate full-stack modules (Backend + Frontend) in seconds, enforcing a solid architecture based on nwidart/laravel-modules.
Stop reinventing the wheel. Focus on your business logic, not the boilerplate.
โจ Features
- ๐ Modular Architecture: Built on top of
nwidart/laravel-modules. Separate your domain logic cleanly. - ๐จ Fullstack Ready: Generates Vue 3 components, Vuetify UIs, and TypeScript definitions automatically.
- ๐ Auth & Permissions: Includes a pre-configured Auth module with Sanctum, Role-Based Access Control (RBAC), and menu management.
- ๐ Powerful Generators:
module:make: Scaffolds a complete module (API, Web, Vue).- Generators for Models, Controllers, Requests, and Routes.
- ๐ Auto-Documentation: Integrated Swagger UI. Your API documentation is generated automatically.
- ๐ Auto-Translation: Internationalize your app instantly using the Google Translate API (Free tier supported).
- ๐ Stub Overrides: Fully customizable templates. Bring your own code style.
๐ Requirements
- PHP
^8.3 - Laravel
11.xor12.x - Composer
๐ฆ Installation
You can install the package via composer:
composer require baracod/larastarterkit
After installation, you can publish the configuration file (optional but recommended for customization):
php artisan vendor:publish --tag=larastarterkit-modules-config
๐ Usage
creating a New Module
The magic happens with a single command. To create a fully working module named Blog:
php artisan module:make Blog
This command will:
- Saffold the directory structure in
Modules/Blog. - Generate the Service Provider, Routes (API & Web), and Composer file.
- Register the module in
Modules/modules.json. - Generate the default Vue.js frontend structure.
Generating Resources
You can also programmatically generate resources (useful for seeders or custom scripts):
use Baracod\Larastarterkit\Generator\ModuleGenerator; use Baracod\Larastarterkit\Generator\ModelGen; // 1. Initialize Module $moduleGen = new ModuleGenerator('Ecommerce'); $moduleGen->generate(); // 2. Generate a Model from a DB Table $modelGen = new ModelGen(); $module = $moduleGen->getModuleOfTable('products'); $modelGen->generateModelFromTable('products', $module);
๐ง Configuration & Stubs
Larastarterkit is designed to be customizable. You can override any file generated by the package.
- Publish Stubs:
php artisan vendor:publish --tag=larastarterkit-stubs
- Edit Templates:
Go to
stubs/larastarterkit/in your project root and modify the files (e.g.,controller.stub,vue-component.stub). The package will prioritize your custom stubs automatically.
๐ Documentation
For full documentation, guides, and API reference, please visit our official documentation:
๐ Read the Documentation (Replace with your real URL)
๐งช Testing
composer test
๐ค Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/amazing-feature). - Commit your changes (
git commit -m 'Add some amazing feature'). - Push to the branch (
git push origin feature/amazing-feature). - Open a Pull Request.
๐ License
The MIT License (MIT). Please see License File for more information.
Made with โค๏ธ by Baracod