PHPackages                             flaack/laravel-make-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. [API Development](/categories/api)
4. /
5. flaack/laravel-make-module

ActiveLibrary[API Development](/categories/api)

flaack/laravel-make-module
==========================

Provides an artisan make:module command

11[1 PRs](https://github.com/flaack/laravel-make-module/pulls)PHP

Since May 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/flaack/laravel-make-module)[ Packagist](https://packagist.org/packages/flaack/laravel-make-module)[ RSS](/packages/flaack-laravel-make-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Make Module
===================

[](#laravel-make-module)

This package provides a `php artisan make:module` console command.

About
-----

[](#about)

This comprises an opinionated way to organize the classes and folders in a *modular* fashion, instead of the conventional folder layout Laravel offers out-of-the-box.

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

[](#compatibility)

- Works with Laravel versions 5.x and 6.x

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

[](#installation)

- `composer require --dev flaack/laravel-make-module`

Usage
-----

[](#usage)

- `php artisan make:module Foo`

The resulting `Foo`-related classes will be scaffolded like this:

```
app
└── Modules
    └── Api
        └── Foo
            ├── Model
            │   └── Foo.php
            ├── Resource
            │   ├── Foo.php
            │   └── Foos.php
            └── FooController.php

```

Along with a new database migration:

```
database
└── migrations
    └── 2019_11_25_224100_create_foos_table.php

```

Under the hood
--------------

[](#under-the-hood)

This command invokes `make:model` with `--migration=true`, `make:resource` (for both item and collection resource classes), and `make:controller` with `--api=true`, and for each of these invocations, overrides laravel's default folder layout for the resulting classes.

The scaffolded results are placed in `app/Modules/Api`, in a directory by the name given for the module.

Todo's / Nice-to-haves
----------------------

[](#todos--nice-to-haves)

- Configuration options?
- A flag to *not* override defaults, sometimes
- A model stub with a `protected $appends = [];`
    - ... because I *always* use it for api's
- A controller stub having some boilerplate for:
    - `use App\Modules\Api\Foo\*` directives
    - `index` method, returning `Foo::paginate()` as a `new JsonCollection`
    - `show` method, returning `new JsonResource($foo)`

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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://www.gravatar.com/avatar/2ee49ad733df973944b83cda87e6a30c42ef4711a2f2443b00447255f889b13e?d=identicon)[emjayess](/maintainers/emjayess)

---

Top Contributors

[![emjayess](https://avatars.githubusercontent.com/u/194904?v=4)](https://github.com/emjayess "emjayess (7 commits)")

---

Tags

apiartisanartisan-commandlaravellaravel-package

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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