PHPackages                             luchavez/boilerplate-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. luchavez/boilerplate-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

luchavez/boilerplate-generator
==============================

A boilerplate generator for building packages and implementing DDD on Laravel 8|9|10.

1.2.0(2y ago)121.7k2MITPHPPHP ^8.1

Since Mar 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/luchavez-technologies/boilerplate-generator)[ Packagist](https://packagist.org/packages/luchavez/boilerplate-generator)[ Docs](https://github.com/luchavez-technologies/boilerplate-generator)[ RSS](/packages/luchavez-boilerplate-generator/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (9)Versions (20)Used By (2)

Boilerplate Generator for Laravel 8|9|10
========================================

[](#boilerplate-generator-for-laravel-8910)

[![Latest Version on Packagist](https://camo.githubusercontent.com/79770d418513cb956efba8a1197628612cc06bf22707a7262a87147bf4aa178c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c7563686176657a2f626f696c6572706c6174652d67656e657261746f722e737667)](https://packagist.org/packages/luchavez/boilerplate-generator)[![Total Downloads](https://camo.githubusercontent.com/97d5164ba073a43678e68633a1b259cfddd05d7d4cb762a272ceb511890b42d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c7563686176657a2f626f696c6572706c6174652d67656e657261746f722e737667)](https://packagist.org/packages/luchavez/boilerplate-generator)[![GitHub Repo stars](https://camo.githubusercontent.com/bdf89ece9393a31c7a3704e7565fa832a9663bcdea200ce535b494e2e9ab1a5d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c7563686176657a2d746563686e6f6c6f676965732f626f696c6572706c6174652d67656e657261746f72)](https://github.com/luchavez-technologies/boilerplate-generator)[![Discord](https://camo.githubusercontent.com/bd46299a29c3cae288e34846117d44d0cb853da2dad0c376fd8bca3fc269f3b6/68747470733a2f2f696d672e736869656c64732e696f2f646973636f72642f313134333734343631393935363430343239353f636f6c6f723d386339656666266c6162656c3d446973636f7264266c6f676f3d646973636f7264)](https://discord.gg/bFpDTgp3)[![Twitter Follow](https://camo.githubusercontent.com/516380eada3f11aaafd758d9d0b03958251eca9097ba558c3ae9ff53ee59820a/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6c7563686176657a74656368)](https://twitter.com/luchaveztech)

[![Supercharge your Laravel App!](images/banner.png)](images/banner.png)

If you're developing a Laravel app, you know how quickly it can grow and become complex. You don't want to end up with a messy codebase that's hard to maintain and debug. You need a way to organize your code into modular and reusable packages and domains that imitates the `Domain-Driven Design (DDD)` principles.

That's where `luchavez/boilerplate-generator` comes in handy. It's a Laravel package that helps you create, manage, and publish your own packages and domains with ease. It also provides a set of handy commands to generate common classes such as controllers, models, casts, components, and more.

With `luchavez/boilerplate-generator`, you can keep your Laravel app clean, structured, and scalable. You can also share your packages with the world or use them in other projects. It's the ultimate tool for Laravel developers who want to level up their skills and productivity.

[![](images/logo.png)](images/logo.png)

Installation
------------

[](#installation)

```
composer require luchavez/boilerplate-generator -W --dev

// Execute a series of necessary steps to utilize the package
php artisan bg:install

// Publish env variables from packages and domains to the `.env` file
php artisan bg:env:publish --all
```

Usage
-----

[](#usage)

### List of `bg:package` commands

[](#list-of-bgpackage-commands)

NameCommandDescriptionPackage List`bg:package:list`List all locally installed packages.Package Create`bg:package:create`Create a new Laravel package.Package Remove`bg:package:remove`Remove a Laravel package.Package Enable`bg:package:enable`Enable a Laravel package.Package Disable`bg:package:disable`Disable a Laravel package.Package Clone`bg:package:clone`Clone a Laravel package using Git.Package Publish`bg:package:publish`Publish a Laravel package using Git.### List of `bg:domain` commands

[](#list-of-bgdomain-commands)

NameCommandDescriptionDomain List`bg:domain:list`List all locally installed domains.Domain Create`bg:domain:create`Create a new Laravel domain.Domain Remove`bg:domain:remove`Remove a Laravel domain.Domain Enable`bg:domain:enable`Enable a Laravel domain.Domain Disable`bg:domain:disable`Disable a Laravel domain.### List of `bg:make` commands

[](#list-of-bgmake-commands)

TypeCommandLaravel CounterpartDescriptionCast`bg:make:cast``make:cast`Create a new custom Eloquent cast class in Laravel or in a specific package.Channel`bg:make:channel``make:channel`Create a new channel class in Laravel or in a specific package.Class`bg:make:class`❌Create a new PHP class in Laravel or in a specific package.Command`bg:make:command``make:command`Create a new Artisan command in Laravel or in a specific package.Component`bg:make:component``make:component`Create a new view component class in Laravel or in a specific package.Config`bg:make:config`❌Create a new view component class in Laravel or in a specific package.Controller`bg:make:controller``make:controller`Create a new controller class in Laravel or in a specific package.Data`bg:make:data`❌Create a new data class in Laravel or in a specific package.Data Factory`bg:make:df`❌Create a new data factory class in Laravel or in a specific package.Data Transfer Object`bg:make:dto`❌Create data tranfer object (DTO) files in Laravel or in a specific package.Event`bg:make:event``make:event`Create a new event class in Laravel or in a specific package.Exception`bg:make:exception``make:exception`Create a new custom exception class in Laravel or in a specific package.Facade`bg:make:facade`❌Create a new facade in Laravel or in a specific package.Factory`bg:make:factory``make:factory`Create a new model factory in Laravel or in a specific package.Helper`bg:make:helper`❌Create a new helper file in Laravel or in a specific package.Interface`bg:make:interface`❌Create a new interface in Laravel or in a specific package.Job`bg:make:job``make:job`Create a new job class in Laravel or in a specific package.Listener`bg:make:listener``make:listener`Create a new event listener class in Laravel or in a specific package.Mail`bg:make:mail``make:mail`Create a new email class in Laravel or in a specific package.Middleware`bg:make:middleware``make:middleware`Create a new middleware class in Laravel or in a specific package.Migration`bg:make:migration``make:migration`Create a new migration file in Laravel or in a specific package.Model`bg:make:model``make:model`Create a new Eloquent model class in Laravel or in a specific package.Notification`bg:make:notification``make:notification`Create a new notification class in Laravel or in a specific package.Observer`bg:make:observer``make:observer`Create a new observer class in Laravel or in a specific package.Policy`bg:make:policy``make:policy`Create a new policy class in Laravel or in a specific package.Provider`bg:make:provider``make:provider`Create a new service provider class in Laravel or in a specific package.Repository`bg:make:repository`❌Create a new repository class in Laravel or in a specific package.Request`bg:make:request``make:request`Create a new form request class in Laravel or in a specific package.Resource`bg:make:resource``make:resource`Create a new resource file in Laravel or in a specific package.Routes`bg:make:route`❌Create new route file in Laravel or in a specific package.Rule`bg:make:rule``make:rule`Create a new validation rule in Laravel or in a specific package.Scope`bg:make:scope`❌Create a new scope class in Laravel or in a specific package.Seeder`bg:make:seeder``make:seeder`Create a new seeder class in Laravel or in a specific package.Container`bg:make:service`❌Create a new service container in Laravel or in a specific package.Test`bg:make:test``make:test`Create a new test class in Laravel or in a specific package.Trait`bg:make:trait`❌Create a new interface in Laravel or in a specific package.### Other `bg` commands

[](#other-bg-commands)

NameCommandDescriptionDescribe`bg:describe`Display all information about Laravel app and/or package/s.Env Variables`bg:env:publish`Publish all environment variables from root, packages, and domains.Install`bg:install`Setup your Laravel application to utilize the package.Clear Logs`bg:log:clear`Clear laravel.log contents.Test`bg:test`Run the application and package tests.Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [James Carlo Luchavez](https://github.com/luchavez-technologies)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~37 days

Total

17

Last Release

871d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.0.9PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9751834583538187236ea6491879aa80263a43dd036aa4e4fd0a71f721a0bed4?d=identicon)[jamescarloluchavez](/maintainers/jamescarloluchavez)

---

Top Contributors

[![luchtech](https://avatars.githubusercontent.com/u/26067874?v=4)](https://github.com/luchtech "luchtech (13 commits)")

---

Tags

dddlaravellaravel-packagepackagelaravelBoilerplateGenerator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luchavez-boilerplate-generator/health.svg)

```
[![Health](https://phpackages.com/badges/luchavez-boilerplate-generator/health.svg)](https://phpackages.com/packages/luchavez-boilerplate-generator)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
