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

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

dam1r89/proto-generator
=======================

Laravel 5 prototyping tool. Creates files based on the templates. It comes with template for views, model, migration and controllers.

2.0.14(9y ago)62652[1 issues](https://github.com/dam1r89/laravel-proto-generator/issues)PHPPHP &gt;=5.4.0

Since Mar 13Pushed 8y ago6 watchersCompare

[ Source](https://github.com/dam1r89/laravel-proto-generator)[ Packagist](https://packagist.org/packages/dam1r89/proto-generator)[ RSS](/packages/dam1r89-proto-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (21)Used By (0)

Install

```
composer require "dam1r89/proto-generator" --dev

```

Add to `config/app.php` under the providers key, but before application providers.

```
dam1r89\ProtoGenerator\ProtoGeneratorServiceProvider::class,

```

If you want to edit templates you can publish them.

```
php artisan vendor:publish --tag="proto-generator"

```

Example
-------

[](#example)

To scaffold resource with name *post* you type:

```
php artisan proto post --fields='{"name":{}, "body":{}, "rating": {"type": "number"}}'

```

fields flag is json data which is transferred to the templates.

and add bindings to the `routes.php` file:

```
Route::resource('post', 'PostsController');

```

then go to local serving address, for example on **** and you can see simple crud application.

For hasOne relation use field name and id: `"category_id": {"label": "name"}`.

Flags
-----

[](#flags)

*-r* replace files withouth asking
*-t* template folder - default `standard`
*-f* fields
*-d* additional context data
*-o* output folder - default base

Using from app
--------------

[](#using-from-app)

```
use dam1r89\ProtoGenerator\ContextDataParser;
use dam1r89\ProtoGenerator\Proto;

$parser = new ContextDataParser('users', ['first_name', 'last_name']);
$context = $parser->getContextData();

$context['additional_data'] = 'whatever';

$p = Proto::create('source/path/', base_path(), $context);
$p->generate(true);

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~46 days

Recently: every ~82 days

Total

17

Last Release

3325d ago

Major Versions

1.0.0 → 2.0.12015-03-14

1.0.12 → 2.0.132016-11-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bba8f57f8d1c05d28ffd8ec432a1520579c5cc84d4f93995a0656f22324224d?d=identicon)[dam1r89](/maintainers/dam1r89)

---

Top Contributors

[![dam1r89](https://avatars.githubusercontent.com/u/3540487?v=4)](https://github.com/dam1r89 "dam1r89 (38 commits)")[![ivanmijatovic89](https://avatars.githubusercontent.com/u/5983331?v=4)](https://github.com/ivanmijatovic89 "ivanmijatovic89 (11 commits)")[![JungleGenius](https://avatars.githubusercontent.com/u/11284739?v=4)](https://github.com/JungleGenius "JungleGenius (1 commits)")

---

Tags

laravelgeneratorscaffoldcommandprototyping

### Embed Badge

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

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

###  Alternatives

[dcblogdev/laravel-module-generator

Generate Laravel Modules from a template.

7710.1k1](/packages/dcblogdev-laravel-module-generator)[msztorc/laravel-env

Laravel env helper commands

7855.4k](/packages/msztorc-laravel-env)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

295.1k](/packages/linkxtr-laravel-qrcode)[prevailexcel/laravel-action-service-trait

A simple Laravel package to create actions, traits and services using artisan commands

143.0k](/packages/prevailexcel-laravel-action-service-trait)

PHPackages © 2026

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