PHPackages                             asz/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. [Framework](/categories/framework)
4. /
5. asz/generator

ActiveLibrary[Framework](/categories/framework)

asz/generator
=============

Generate MVC with Routes , Requests and Create MigrationFile With Creating Table and More Features

1.1(5y ago)25MITBladePHP ^7.2

Since Nov 12Pushed 4y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

[![](https://camo.githubusercontent.com/a85b04a45bbbfeaaa70ef75f7ddd2e9bcd4fd61c4269a5d315499bdcdcc26a97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f61686d61647a72657161742f67656e657261746f72)](https://camo.githubusercontent.com/a85b04a45bbbfeaaa70ef75f7ddd2e9bcd4fd61c4269a5d315499bdcdcc26a97/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f61686d61647a72657161742f67656e657261746f72)[![](https://camo.githubusercontent.com/d8657d93ccc44cc9709b9ef8b8d8fa8600b8d80dea8a049c86f9a9cd351ded9b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f61686d61647a72657161742f67656e657261746f72)](https://camo.githubusercontent.com/d8657d93ccc44cc9709b9ef8b8d8fa8600b8d80dea8a049c86f9a9cd351ded9b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f61686d61647a72657161742f67656e657261746f72)[![](https://camo.githubusercontent.com/7e2dfe027509aab8f2c0c9889d5d6c997eb2bbd06a85c35f2b46903b858aa35d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61686d61647a72657161742f67656e657261746f72)](https://camo.githubusercontent.com/7e2dfe027509aab8f2c0c9889d5d6c997eb2bbd06a85c35f2b46903b858aa35d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f61686d61647a72657161742f67656e657261746f72)[![](https://camo.githubusercontent.com/9b09603965610b806d93d40aa02071724e65bfda89ead9a9f7936a49203ffbbb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f61686d61647a72657161742f67656e657261746f723f7374796c653d736f6369616c)](https://camo.githubusercontent.com/9b09603965610b806d93d40aa02071724e65bfda89ead9a9f7936a49203ffbbb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f61686d61647a72657161742f67656e657261746f723f7374796c653d736f6369616c)

Laravel generator package
=========================

[](#laravel-generator--package)

[![](https://github.com/ahmadzreqat/generator/raw/master/Screenshot%202020-11-12%20213655.png)](https://github.com/ahmadzreqat/generator/blob/master/Screenshot%202020-11-12%20213655.png)

Overview
--------

[](#overview)

- This is a Laravel package to generate your code :

- all DB data type and keys is added
- when you fill out the table form the packege will generate Model , Controller , Requests , Routes and Migration files with all fields that's added in form

Installation :
--------------

[](#installation-)

You can install `asz/generator` via Composer by adding `"asz/generator": "^1.1"`as requirement to your composer.json. OR :

```
composer require asz/generator
```

- Then :

```
composer dump-autoload
```

### Service Provider:

[](#service-provider)

go to your config/app.php file and add :

```
 generator\GenServiceProvider::class ,
```

#### Publishing Config file :

[](#publishing-config-file-)

```
$ php artisan vendor:publish --tag="config.generator"
```

```
$ php artisan config:cache
```

##### Now visit yourdomain/generator to start generate your code with multiable options

[](#now-visit-yourdomaingenerator-to-start-generate-your-code-with-multiable-options)

- also you can change default route and put middleware from config/generator.php

this packege will generate :

- Migration file with data type columns Here is example when Generate TestingTable :

```
id();
            $table->string('name');
            $table->string('email');
            $table->string('phone_number');
            $table->string('slug');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('testing');
    }
}
```

- Model with specific table name and fillable all table columns . continue with same example when Generate TestTable :

```
 'required',
            'email' => 'required',
            'phone_number' => 'required',
            'slug' => 'required'
        ];
    }
}
```

- generate controller with default methods. continue with same example when Generate TestTable :

```
validated());
          // your return route here
    }

    public function show($id)
    {
        $Testing = Testing::findOrFail($id);
          // your return route here
    }

    public function edit($id)
    {
        $Testing = Testing::findOrFail($id);
          // your return route here
    }

    public function update(TestingRequests $request, $id)
    {
         $Testing = Testing::findOrFail($id);
         $Testing->update($request->validated());
         // your return route here

    }

    public function destroy($id)
    {
       $Testing = Testing::findOrFail($id);
       $Testing->delete();
         // your return route here
    }
}
```

- Routes Generates and can choose your middleware "default null"

```
Route::group(['prefix' => 'testing', 'middleware' => ''], function () {
    Route::get('/', [App\Http\Controllers\testingController::class, 'index']);
    Route::post('/store', [App\Http\Controllers\testingController::class, 'store']);
    Route::get('/edit/{id}', [App\Http\Controllers\testingController::class, 'edit']);
    Route::put('/update/{id}', [App\Http\Controllers\testingController::class, 'update']);
    Route::delete('/destroy/{id}', [App\Http\Controllers\testingController::class, 'destroy']);
    Route::get('/show/{id}', [App\Http\Controllers\testingController::class, 'show']);
});
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

2

Last Release

2011d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ed3074af3aa753021268738d30cc4abaccb5724b3bf47a29d57111d27b29290?d=identicon)[ahmadzreqat](/maintainers/ahmadzreqat)

---

Top Contributors

[![ahmadzreqat](https://avatars.githubusercontent.com/u/61236176?v=4)](https://github.com/ahmadzreqat "ahmadzreqat (34 commits)")

### Embed Badge

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

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

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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