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(1mo ago)228.2k↑21.9%22MITPHPCI passing

Since Jan 31Pushed 1mo ago1 watchersCompare

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

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

 [ ![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 93% of packages

Maintenance89

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity36

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

56d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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