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

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

hitman/resource
===============

resource generator

020HTML

Since Oct 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Hitmanv/larap-resource)[ Packagist](https://packagist.org/packages/hitman/resource)[ RSS](/packages/hitman-resource/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

一个 restful 资源生成工具
=================

[](#一个-restful-资源生成工具)

使用方法
====

[](#使用方法)

STEP-1:
-------

[](#step-1)

```
    composer require hitman/resource --dev
```

STEP-2:
-------

[](#step-2)

修改**config/app.php**, service providers 添加

```
Hitman\Resource\ResourceServiceProvider::class,
```

STEP-3:
-------

[](#step-3)

### 生成数据库字典

[](#生成数据库字典)

```
php artisan resource:doc
```

### 生成资源对应的文件

[](#生成资源对应的文件)

生成资源对应的 model/admin-controller/admin-api-controller/view/route

```
php artisan resource:make
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1020820?v=4)[hitmanv](/maintainers/hitmanv)[@Hitmanv](https://github.com/Hitmanv)

---

Top Contributors

[![Hitmanv](https://avatars.githubusercontent.com/u/1020820?v=4)](https://github.com/Hitmanv "Hitmanv (9 commits)")

### Embed Badge

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

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

PHPackages © 2026

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