PHPackages                             internachi/modularize - 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. internachi/modularize

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

internachi/modularize
=====================

1.1.1(3mo ago)2145.5k↑73%23MITPHPCI passing

Since Jan 31Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/InterNACHI/modularize)[ Packagist](https://packagist.org/packages/internachi/modularize)[ RSS](/packages/internachi-modularize/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (10)Versions (4)Used By (3)

 [ ![Build Status](https://github.com/internachi/modularize/workflows/PHPUnit/badge.svg) ](https://github.com/internachi/modularize/actions) [ ![Latest Stable Release](https://camo.githubusercontent.com/a00c3c0bc53be4a0beaed3d244f4b4408e7ca97776ce7b28912ad584f8d669db/68747470733a2f2f706f7365722e707567782e6f72672f696e7465726e616368692f6d6f64756c6172697a652f762f737461626c65) ](https://packagist.org/packages/internachi/modularize) [ ![MIT Licensed](https://camo.githubusercontent.com/f8cfdfa616ecbb947dd0b6e71706f16c3c0c2013fecda524a7b7f89e41cfb899/68747470733a2f2f706f7365722e707567782e6f72672f696e7465726e616368692f6d6f64756c6172697a652f6c6963656e7365) ](./LICENSE)

Modularize
==========

[](#modularize)

Traits for package authors to add [internachi/modular](https://github.com/internachi/modular) support to their Laravel commands.

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

[](#installation)

```
composer require internachi/modularize
```

Usage
-----

[](#usage)

Add the `Modularize` trait to your package commands:

```
use Illuminate\Console\Command;
use InterNACHI\Modularize\Support\Modularize;

class SomeCommand extends Command
{
    use Modularize;

    public function handle()
    {
        if ($module = $this->module()) {
            // Command was called with --module, $module is a ModuleConfig class
            // with name, base path, namespaces, and helper methods.
        }
    }
}
```

If you're using Laravel file generator commands, add the `ModularizeGeneratorCommand` trait:

```
use Illuminate\Console\GeneratorCommand;
use InterNACHI\Modularize\Support\ModularizeGeneratorCommand;

class MakeWidget extends GeneratorCommand
{
    use ModularizeGeneratorCommand;

    // ...
}
```

This adds a `--module` option to your command. When used, generated files are placed in the module directory with correct namespacing.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance81

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 88.5% 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 ~25 days

Total

3

Last Release

102d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21592?v=4)[Chris Morrell](/maintainers/inxilpro)[@inxilpro](https://github.com/inxilpro)

---

Top Contributors

[![inxilpro](https://avatars.githubusercontent.com/u/21592?v=4)](https://github.com/inxilpro "inxilpro (23 commits)")[![tgeorgel](https://avatars.githubusercontent.com/u/11785727?v=4)](https://github.com/tgeorgel "tgeorgel (2 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (1 commits)")

---

Tags

laravelmodularInterNACHI

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/internachi-modularize/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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