PHPackages                             teikun-86/laravel-modular - 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. teikun-86/laravel-modular

ActiveLibrary

teikun-86/laravel-modular
=========================

Laravel Modular Structure

v0.1.3(1mo ago)046—0%MITPHP

Since Jul 16Pushed 1mo agoCompare

[ Source](https://github.com/teikun-86/laravel-modular-tool)[ Packagist](https://packagist.org/packages/teikun-86/laravel-modular)[ RSS](/packages/teikun-86-laravel-modular/feed)WikiDiscussions main Synced 1w ago

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

Laravel Modular
===============

[](#laravel-modular)

Laravel Modular is a package that helps you structure your Laravel application into modules. It provides commands to easily create and manage modules, keeping your codebase organized and scalable.

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

[](#installation)

You can install the package via composer:

```
composer require teikun-86/laravel-modular
```

Configuration
-------------

[](#configuration)

You can publish the configuration file using the following artisan command:

```
php artisan vendor:publish --tag="modular-config"
```

This will create a `config/modular.php` file in your application where you can configure the base namespace for your modules:

```
return [
    /*
     |------------------------------------------------------------
     | Namespace Configuration
     |------------------------------------------------------------
     | Base namespace for all generated modules.
     | Can be overridden by environment variable or module config.
     | Should usually match your application's root namespace.
     | Default: 'LaravelApp'
     | Example: 'LaravelApp', 'MyProject'
     | Example output: namespace LaravelApp\Modules\User\Models;
     |------------------------------------------------------------
     */
    'namespace' => env('MODULAR_NAMESPACE', 'LaravelApp'),
];
```

Usage
-----

[](#usage)

### Creating a Module

[](#creating-a-module)

To create a new module, you can use the `make:module` artisan command:

```
php artisan make:module {name}
```

You can optionally pass a `--namespace` option:

```
php artisan make:module {name} --namespace="CustomNamespace"
```

This command will automatically:

1. Create a new directory for your module under the application's `modules/` path.
2. Set up the basic `src/` directory.
3. Generate a ServiceProvider for the module.
4. Add the ServiceProvider to your application's bootstrap providers file.
5. Update your `composer.json` to include the new module's PSR-4 autoloading rules and run `composer dump-autoload`.

### Creating Module Classes

[](#creating-module-classes)

You can also create specific classes inside your modules (like ServiceProviders, Controllers, etc.) using the `make:module-class` command.

```
php artisan make:module-class --module={name} --type={type} {class_name}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance91

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity26

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.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

44d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/141127571?v=4)[azizsama](/maintainers/azizsama)[@azizsama](https://github.com/azizsama)

---

Top Contributors

[![teikun-86](https://avatars.githubusercontent.com/u/60819208?v=4)](https://github.com/teikun-86 "teikun-86 (7 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/teikun-86-laravel-modular/health.svg)

```
[![Health](https://phpackages.com/badges/teikun-86-laravel-modular/health.svg)](https://phpackages.com/packages/teikun-86-laravel-modular)
```

###  Alternatives

[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.8M231](/packages/backpack-crud)[code16/sharp

Laravel Content Management Framework

79466.8k10](/packages/code16-sharp)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

138249.0k8](/packages/statamic-rad-pack-runway)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21336.4k4](/packages/ecotone-laravel)

PHPackages © 2026

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