PHPackages                             maztch/laravel-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. [Database &amp; ORM](/categories/database)
4. /
5. maztch/laravel-generator

ActiveLibrary[Database &amp; ORM](/categories/database)

maztch/laravel-generator
========================

Laravel API/Scaffold/CRUD Generator based on Mitul Golakiya (me@mitul.me).

v1.1(10y ago)023MITPHP &gt;=5.5.9

Since Nov 12Compare

[ Source](https://github.com/maztch/laravel-generator)[ Packagist](https://packagist.org/packages/maztch/laravel-generator)[ RSS](/packages/maztch-laravel-generator/feed)WikiDiscussions Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

Laravel5 Generator (Laravel5.2)
===============================

[](#laravel5-generator-laravel52)

Other versions:

5.1.\* | [1.0](https://github.com/maztch/laravel-generator/tree/1.0)

Based on Mitul generator, this is a more simple scaffold and just need to be used in dev.

I did this beacuse i need more simple generator and keep all out the repo dependencies in production.

Diferences with Mitul:

There are no Requests and there are no Library/Repositories Base controller is removed (Maztch/Controller/AppBaseController) Added delete function in controller for DELETE method and keep destroy just as an alias.

Except for this, is exactly the same.

The artisan command can generate the following items:

- Migration File
- Model
- Controller
- View
    - index.blade.php
    - table.blade.php
    - show.blade.php
    - show\_fields.blade.php
    - create.blade.php
    - edit.blade.php
    - fields.blade.php
- adjusts routes.php

Documentation is in process...
==============================

[](#documentation-is-in-process)

Documentation
-------------

[](#documentation)

While we write the docs you can take a look to [Mitul repo](https://github.com/mitulgolakiya/laravel-api-generator).

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

[](#installation)

1. Add this package to your composer.json:

    ```
     "repositories": [
         {
             "type": "git",
             "url": "https://github.com/mitulgolakiya/laracast-flash"
         }
     ],
     "require": {
         "laracasts/flash": "dev-master",
         "laravelcollective/html": "5.2.*@dev",
         "bosnadev/repositories": "dev-master",
         "maztch/laravel-generator": "dev-master"
     }

    ```
2. Run composer update

    ```
     composer update

    ```
3. Add the ServiceProviders to the providers array in `config/app.php`.

As we are using these two packages [laravelcollective/html](https://github.com/LaravelCollective/html) &amp; [laracasts/flash](https://github.com/laracasts/flash) as a dependency.

So we need to add those ServiceProviders as well.

```
    Collective\Html\HtmlServiceProvider::class,
    Laracasts\Flash\FlashServiceProvider::class,
    Maztch\Generator\GeneratorServiceProvider::class,

```

Also for convenience, add these facades in alias array in `config/app.php`.

```
    'Form'      => Collective\Html\FormFacade::class,
    'Html'      => Collective\Html\HtmlFacade::class,
    'Flash'     => Laracasts\Flash\Flash::class

```

Configuration
-------------

[](#configuration)

Publish Configuration file `generator.php`.

```
    php artisan vendor:publish --provider="Maztch\Generator\GeneratorServiceProvider"

```

Publish &amp; Initialization
----------------------------

[](#publish--initialization)

Mainly, we need to do three basic things to get started.

1. Publish some common views like `errors.blade.php` &amp; `paginate.blade.php`.
2. Publish `api_routes.php` which will contain all our api routes.
3. Init `routes.php` for api routes. We need to include `api_routes.php` into main `routes.php`.

    ```
     php artisan maztch.generator:publish

    ```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity61

Established project with proven stability

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 ~35 days

Total

3

Last Release

3857d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1656570?v=4)[maztch](/maintainers/maztch)[@maztch](https://github.com/maztch)

---

Tags

apilaravelmigrationgeneratorscaffoldmodelcrud

### Embed Badge

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

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

PHPackages © 2026

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