PHPackages                             onesite/laravel-module - 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. onesite/laravel-module

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

onesite/laravel-module
======================

Generate a module with model, migration, controller, routes and factory

v1.1.3(5y ago)03.1k↓40%MITPHPPHP ^7.2CI failing

Since May 29Pushed 5y ago1 watchersCompare

[ Source](https://github.com/1sitevn/laravel-module)[ Packagist](https://packagist.org/packages/onesite/laravel-module)[ RSS](/packages/onesite-laravel-module/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)Dependencies (15)Versions (7)Used By (0)

Laravel artisan make:resource command
=====================================

[](#laravel-artisan-makeresource-command)

This package adds the `php artisan make:module command`, allowing you to:

> Generate a module create a model, migration, controller, routes and model factory in a single easy to use command.

This package serves as a way of very quickly getting an idea off the ground, reducing the time you need to spend setting up various parts of your application so that you can concentrate on the complexity.

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

[](#installation)

Install MakeResource through Composer.

```
"require": {
    "onesite/laravel-module": "~1.0"
}

```

Next, update your `config/app.php` to add the included service provider `\OneSite\Module\ModuleGeneratorServiceProvider::class`:

```
'providers' => [
    //...
    \OneSite\Module\ModuleGeneratorServiceProvider::class
],

```

And you're good to go.

Using the generator
-------------------

[](#using-the-generator)

From the command line, run:

```
php artisan make:module ModelName "attributes"

```

For the simplest example, let's create a new `admin` module:

```
php artisan make:module admin

```

This will create the following:

- modules\\Admin\\app\\Http\\Controllers\\BaseController.php
- modules\\Admin\\app\\Http\\Controllers\\ExampleController.php
- modules\\Admin\\resources\\views/example.blade.php

as well as appending to:

- modules\\Admin\\routes.php

Copy to composer.json and run `composer dump-autoload` to register composer for module, example with module `admin`:

```
  "autoload": {
    "psr-4": {
      "Module\\Admin\\": [
        "modules/admin/app/"
      ]
    }
  }

```

Next, update your `app/Providers/AppServiceProvider.php` to add the included service provider to your `register` function:

```
public function register()
{
    $this->app->register(\Modules\ModuleName\Providers\AppServiceProvider::class);
}

```

Running tests
-------------

[](#running-tests)

A full test suite is included. To execute the tests, from the package directory:

```
vendor/bin/phpunit tests/testMakeNewModule.php

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Recently: every ~48 days

Total

6

Last Release

2023d ago

### Community

Maintainers

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

---

Tags

laravelgenerators

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/onesite-laravel-module/health.svg)

```
[![Health](https://phpackages.com/badges/onesite-laravel-module/health.svg)](https://phpackages.com/packages/onesite-laravel-module)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9742.3M121](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k14.1M122](/packages/laravel-pulse)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)

PHPackages © 2026

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