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

ActiveLibrary

sinclairt/resource-generator
============================

Creates and remove resource classes

1.1.6(9y ago)044MITPHP

Since Dec 15Pushed 9y agoCompare

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

READMEChangelogDependencies (7)Versions (18)Used By (0)

README
======

[](#readme)

Create and remove components of a resource. These include:

- Model
- Model Interface
- Model Facade
- Repository
- Repository Interface
- Repository Facade
- Resourceful Controller
- Migration
- Seeder
- Create Form Request
- Update From Request

### How do I get set up?

[](#how-do-i-get-set-up)

- `composer require sinclairt\resource-generator`.
- Register the service provider `Sinclair\ResourceGenerator\ResourceGeneratorServiceProvider` in `app\config`.
- Run `php artisan` to see two new commands `resource:create` and `resource:remove`.

### Usage

[](#usage)

Both commands require the name argument i.e. `php artisan resource:create foo`.

You can pass in optional flags to only create/remove particular elements:

- `--model` (remove only)
- `--repository`
- `--controller`
- `--create-request`
- `--update-request`
- `--migration`
- `--seeder`
- `--all`

### Customise

[](#customise)

Run `php artisan vendor:publish` to publish the file stubs to `resources/stubs/vendor/resource-generator`. Here you can edit the stubs to make your generation easier.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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 ~29 days

Recently: every ~50 days

Total

17

Last Release

3329d ago

### Community

Maintainers

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

---

Top Contributors

[![sinclairt](https://avatars.githubusercontent.com/u/16877448?v=4)](https://github.com/sinclairt "sinclairt (12 commits)")[![tom-sinclair](https://avatars.githubusercontent.com/u/23167798?v=4)](https://github.com/tom-sinclair "tom-sinclair (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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