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

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

groch/resource-generator
========================

Generate all Structure for a given resource name.

1.1.0(6y ago)044MITPHPPHP ~5.6|~7.0CI failing

Since Jul 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/thomasgroch/ResourceGenerator)[ Packagist](https://packagist.org/packages/groch/resource-generator)[ Docs](https://github.com/thomasgroch/ResourceGenerator)[ RSS](/packages/groch-resource-generator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (11)Used By (0)

resource-generator
==================

[](#resource-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9201c04723bfaaad6ab8a17508fa555005e757db6270d5a37a73f6b3c5de7b9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67726f63682f7265736f757263652d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/groch/resource-generator)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Generate all Structure for a given resource name

Note: The code in this sample was originally written for a user experience prototype and does not necessarily demonstrate how to create production quality code.

Structure
---------

[](#structure)

Create and remove components of a resource. These include:

```
Resourceful Controller
Migration
Seeder
Create Form Request
Update From Request
Test
Transformer

```

Install
-------

[](#install)

Via Composer

```
$ composer require groch/resource-generator
```

Register the service provider in `config/app.php`.

```
groch\ResourceGenerator\ResourceGeneratorServiceProvider::class,
```

Publish assets from the package.

```
php artisan vendor:publish --tag=install-resource
```

Add your `UsersTableSeeder` and move the default "User.php" model to `Model` namespace/folder.

```
php artisan migrate:fresh --seed

php artisan config:clear
php artisan config:cache
composer dump-autoload

php artisan key:generate
php artisan jwt:secret
```

Usage
-----

[](#usage)

Run `php artisan` to see the new command `gen:resource`.

Generate a new resource

```
php artisan gen:resource car
```

Remove a generated resource

```
php artisan gen:resource car --delete=1
```

Change log
----------

[](#change-log)

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

Credits
-------

[](#credits)

- Thomas Letsch Groch

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~4 days

Total

10

Last Release

2238d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b96f53c8fbf24e42259edf7a3b1813e00cf3512a3cc8ec777cdfea9e3b2c49c2?d=identicon)[thomasgroch](/maintainers/thomasgroch)

---

Top Contributors

[![thomasgroch](https://avatars.githubusercontent.com/u/67318?v=4)](https://github.com/thomasgroch "thomasgroch (18 commits)")

---

Tags

grochResourceGenerator

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[tomshaw/electricgrid

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

116.6k](/packages/tomshaw-electricgrid)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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