PHPackages                             laravelha/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. laravelha/generator

ActiveLibrary

laravelha/generator
===================

Laravelha Generator

v2.0.1(5y ago)225.1k4[1 issues](https://github.com/laravelha/generator/issues)MITPHP

Since Jan 5Pushed 5y ago2 watchersCompare

[ Source](https://github.com/laravelha/generator)[ Packagist](https://packagist.org/packages/laravelha/generator)[ RSS](/packages/laravelha-generator/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (6)Versions (17)Used By (0)

Laravelha Generator
===================

[](#laravelha-generator)

[Laravel](https://laravel.com/) [RAD](https://pt.wikipedia.org/wiki/Desenvolvimento_r%C3%A1pido_de_aplica%C3%A7%C3%B5es) Package based on [Laravel-5-Generators-Extended](https://github.com/laracasts/Laravel-5-Generators-Extended)

Install
-------

[](#install)

After install fresh Laravel application:

1. Install preset `composer require laravelha/preset-api --dev` or `composer require laravelha/preset-web --dev`
2. Run preset `php artisan preset ha-api` or `php artisan preset ha-web --option=auth`
3. Via `composer require laravelha/generator --dev`
4. Run `php artisan ha-generator:  ` to create automatically generated code.
5. The following commands are available.:

```
ha-generator:migration      "Create a new migration class and apply schema at the same time"
ha-generator:model          "Create a new model class and apply schema at the same time"
ha-generator:factory        "Create a new factory class and apply schema at the same time"
ha-generator:requests       "Create a new requests class and apply schema at the same time"
ha-generator:controller     "Create a new controller and resources for api"
ha-generator:resources      "Create a new resources class and apply schema at the same time"
ha-generator:route          "Insert new resources routes"
ha-generator:test           "Create a new feature test and apply schema at the same time"
ha-generator:lang           "Create a new lang resource and apply schema at the same time"
ha-generator:view           "Create a new views resource and apply schema at the same time"
ha-generator:breadcrumb     "Insert new resources breadcrumb"
ha-generator:nav            "Insert new nav item"
ha-generator:crud           "Run all commands"
ha-generator:existing:crud  "Run all commands from a existing database"
ha-generator:package        "Create scaffolding structure to packages"
```

6. For more information for each command use: `php artisan help ha-generator:`

Happy way
---------

[](#happy-way)

This is my approach to use it.

1. Install laravel fresh application

```
composer create-project --prefer-dist laravel/laravel blog && cd blog
```

2. Make the first commit

```
git init
git add .
git commit -m 'feat: install laravel fresh app'
```

3. Install Laravelha/Preset for your case

```
composer require laravelha/preset-web --dev
```

4. Run preset

```
php artisan preset ha-web --option=auth
```

5. Make the commit

```
git add .
git commit -m 'feat: install and run laravel laravelha/preset-web with auth'
```

6. Install generator and publish config

```
composer require laravelha/generator --dev
php artisan vendor:publish --tag=ha-generator
```

7. Run crud generator

```
php artisan ha-generator:crud Category -s 'title:string(150), description:text:nullable, published_at:timestamp:nullable'
```

8. Commit then

```
git add .
git commit -m 'feat: create category crud by generator'
```

9. Run other crud generator

```
php artisan ha-generator:crud Post -s 'title:string(150), content:text, published_at:timestamp:nullable, category_id:unsignedBigInteger:foreign'
```

10. Commit last crud

```
git add .
git commit -m 'feat: create post crud by generator'
```

> It is very important that the stage is clean before running the generator, because if you give up what was generated it is possible to undo completely with `git clean -fd; git checkout .`

> Every command generated is store on /storage/logs, if you need detailer each command within crud, use the option `--log-details`

Auto generated structure
------------------------

[](#auto-generated-structure)

```
app/
├── .php
│
└── Http
    ├── Controllers
    |   ├── Auth
    |   ├── IndexController.php
    |   └── Controller.php
    |
    └── Requests
        └── Requests
            ├── StoreRequest.php
            └── UpdateRequest.php
config/
└── ha-generator.php

database
├── factories
|   └── Factory.php
|
└── migrations
  └── YYYY_MM_DD_HHmmSS_create__table.php

resources
├── lang/pt-br
|   └── .php
|
└── views
   └──
       ├── create.blade
       ├── delete.blade
       ├── edit.blade
       ├── index.blade
       └── show.blade

routes
├── api.php
├── breadcrumbs.php
└── web.php

```

Examples
--------

[](#examples)

[API](https://github.com/laravelha/poc-api) api generated from generator
[WEB](https://github.com/laravelha/poc-api) web application generated from generator

Screenshots
-----------

[](#screenshots)

[![API](/.github/images/api.jpeg)](/.github/images/api.jpeg)[![WEB](/.github/images/web.jpeg)](/.github/images/web.jpeg)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 82.7% 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 ~19 days

Recently: every ~11 days

Total

16

Last Release

2034d ago

Major Versions

v1.2.2 → v2.0.02020-10-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5609896?v=4)[Pedro Augusto](/maintainers/pedroufv)[@pedroufv](https://github.com/pedroufv)

---

Top Contributors

[![pedroufv](https://avatars.githubusercontent.com/u/5609896?v=4)](https://github.com/pedroufv "pedroufv (81 commits)")[![Tiagofv](https://avatars.githubusercontent.com/u/39660849?v=4)](https://github.com/Tiagofv "Tiagofv (17 commits)")

---

Tags

laravelgeneratorrad

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[laravel/ai

The official AI SDK for Laravel.

732506.3k60](/packages/laravel-ai)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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