PHPackages                             yangze/laravel-modules-helper - 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. [API Development](/categories/api)
4. /
5. yangze/laravel-modules-helper

ActiveLibrary[API Development](/categories/api)

yangze/laravel-modules-helper
=============================

some command help for caffeinated/modules

v0.1.7(6y ago)027MITPHPPHP &gt;=7.0.0CI failing

Since Jan 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zhenyangze/laravel-modules-helper)[ Packagist](https://packagist.org/packages/yangze/laravel-modules-helper)[ RSS](/packages/yangze-laravel-modules-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

laravel modules helper
======================

[](#laravel-modules-helper)

this is a package for creating restful api with `nwidart/laravel-modules`, the first version is aim to ***create restful api*** in modules.

Quick Installation
------------------

[](#quick-installation)

Begin by installing the package through Composer.

```
composer require yangze/laravel-modules-helper
```

Once this operation is complete, simply add both the service provider and facade classes to your project's `config/app.php` file:

*Service Provider*

```
Yangze\ModulesHelper\ModulesHelperServiceProvider::class,
```

*publish tag*

```
php artisan vendor:publish --tag Yangze\ModulesHelper\ModulesHelperServiceProvider
```

Command list
------------

[](#command-list)

commanddescriptionargsmodule:apiCreate a new module Controller class--modelUsage
-----

[](#usage)

1. create modules, such as Common

```
php artisan make:module Common
```

2. create restfull api

before you create the api, you shoule make sure the model is exists.

```
php artisan module:api common Api/CommonNewsController --model App\\Models\\CommonNews
```

3. add route to the `api.php`

in my website is app/Modules/Common/Routes/api.php,you should choose the right module.

```
Route::resource('common/news', 'CommonNewsController');
```

4. test the restful api

methodurlcommentgetapi/common/newspostapi/common/newsformgetapi/common/news/1putapi/common/news/1rawdeleteapi/common/news/1

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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.

###  Release Activity

Cadence

Every ~40 days

Recently: every ~73 days

Total

9

Last Release

2336d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00d829cadf57df1507ea7b053e44b660179233a342874c101fc6ae50f54a0d55?d=identicon)[yangze](/maintainers/yangze)

---

Top Contributors

[![zhenyangze](https://avatars.githubusercontent.com/u/15710584?v=4)](https://github.com/zhenyangze "zhenyangze (14 commits)")

---

Tags

apilaravelhelpermodulesgenerators

### Embed Badge

![Health badge](/badges/yangze-laravel-modules-helper/health.svg)

```
[![Health](https://phpackages.com/badges/yangze-laravel-modules-helper/health.svg)](https://phpackages.com/packages/yangze-laravel-modules-helper)
```

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

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