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

ActiveLibrary

tdebatty/laravel-resource-generator
===================================

Source code generator for laravel resources

8.0.0(2y ago)45.6k↓100%1MITPHPCI failing

Since Jul 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tdebatty/laravel-resource-generator)[ Packagist](https://packagist.org/packages/tdebatty/laravel-resource-generator)[ RSS](/packages/tdebatty-laravel-resource-generator/feed)WikiDiscussions master Synced today

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

Laravel Resource Generator
==========================

[](#laravel-resource-generator)

A source code generator for Laravel resources.

In Laravel, you can create a resource controller using the command `php artisan make:controller PostController --resource`. But:

- the controller contains only empty methods
- you have to manually add request validation
- you have to write all your views

With this plugin, you immediately get working code:

- a fully functional controller with request validation
- basic views to list, create, modify and delete your resource

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

[](#installation)

```
$ composer require --dev tdebatty/laravel-resource-generator

```

Example
-------

[](#example)

```
$ php artisan resource:make Post -i fa
Generate migration and model...
Generate routes...
Generate views...
Generate controller...
Done!
You may now fill the migration file
And then run php artisan migrate
Your resources will be available at http://127.0.0.1:8000/app/posts

```

The default controller and views assume resources have a *name* field. You have to add this field manually to your migration file (and other fields according to your needs):

```
$ nano database/migrations/*_create_posts_table.php

```

You can now migrate and check the result:

```
$ php artisan migrate
$ php artisan serve

```

[![](./doc/index.png)](./doc/index.png)

[![](./doc/show.png)](./doc/show.png)

[![](./doc/edit.png)](./doc/edit.png)

Compatibility
-------------

[](#compatibility)

Currently generates code for Laravel 5.6 (Bootstrap 4). The generated code is vanilla Laravel code (i.e. views use Blade syntax with no additional libraries or dependencies).

The generator can also add icons using following icon sets:

- Font Awesome 5 : `php artisan resource:make Model -i fa`
- Font Awesome 4 : `php artisan resource:make Model -i fa4`

###  Health Score

34

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 75.9% 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 ~201 days

Recently: every ~342 days

Total

10

Last Release

996d ago

Major Versions

0.0.3 → 6.0.12019-10-02

6.2.0 → 8.0.02023-06-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c315a5fa6bd564f98127e90046ff629dad5a22cd509cc53d07f5858c85b08fc?d=identicon)[tdebatty](/maintainers/tdebatty)

---

Top Contributors

[![tdebatty](https://avatars.githubusercontent.com/u/872972?v=4)](https://github.com/tdebatty "tdebatty (22 commits)")[![t-cylab](https://avatars.githubusercontent.com/u/180541903?v=4)](https://github.com/t-cylab "t-cylab (7 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[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)
