PHPackages                             jamacio/module-laravel - 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. [Framework](/categories/framework)
4. /
5. jamacio/module-laravel

ActiveLibrary[Framework](/categories/framework)

jamacio/module-laravel
======================

Laravel module with auto-discovery support. Organize all Laravel main folders in a single module for easier maintenance and discovery.

v1.0.3(1y ago)011MITPHP

Since Mar 25Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Installation via Composer
=========================

[](#installation-via-composer)

Use the command below to install the package via Composer. After installation, follow the steps to create modules in the `app/Code/YourModuleName` folder:

```
composer require jamacio/module-laravel
```

Module Laravel
==============

[](#module-laravel)

**Module Laravel** is a package designed to streamline Laravel's core folder structure by consolidating Routes, Views and Migrations into a single module folder. This approach simplifies maintenance and improves discoverability for modular applications.

Overview
--------

[](#overview)

In traditional Laravel applications, core folders are distributed across multiple directories (e.g., `routes/`, `resources/views/`, `database/migrations/`, etc.). This package centralizes these components into a unified module structure under a dedicated folder (e.g., `app/Code/YourModuleName`). Key advantages include:

- **Simplified Maintenance:** Centralize module-specific assets for easier management.
- **Improved Discoverability:** Quickly locate and manage module-specific resources.
- **Auto-Discovery Support:** Automatically registers service providers using Laravel’s package auto-discovery feature.

Features
--------

[](#features)

- **Organized Folder Structure:** Groups Routes, Views and Migrations into a single module folder.
- **Auto-Discovery:** Utilizes Laravel’s auto-discovery to register service providers without manual configuration.
- **Dependency Management:** Supports module dependency ordering through an XML configuration file (`module.xml`).
- **Modular Routing and Views:** Allows module-specific routes and views to override or extend default Laravel functionality.
- **Dynamic Resource Loading:** Automatically loads migrations for each module.

Folder Structure
----------------

[](#folder-structure)

After Laravel installation, your module folder structure will look like this:

```
app/
└── Code/
    └── YourModuleName/
        ├── module.xml
        ├── Routes/
        │   ├── web.php
        │   └── api.php
        ├── Views/
        │   └── index.blade.php
        ├── Database/
        │   └── Migrations/
        │       └── 2021_01_01_000000_create_example_table.php
        ├── Controllers/
        │   └── YourModuleController.php

```

This structure organizes all module-specific assets under a single folder, simplifying management and maintenance. Each subfolder serves a specific purpose:

- **module.xml:** Contains metadata and dependencies for the module.
- **Routes:** Includes route files (`web.php` and `api.php`) for module-specific routes.
- **Views:** Stores Blade templates for the module.
- **Database:** Contains subfolders for migrations.
- **Controllers:** Houses controllers for managing HTTP requests.

Module Configuration
--------------------

[](#module-configuration)

The module must reside within the folder: `app/Code/YourModuleName`, and it must include a `module.xml` file with the same name as the folder. Below is an example:

```

```

### Module Dependency Sequence

[](#module-dependency-sequence)

If you need a module to execute after another, you can define the sequence in the `module.xml` file as shown below:

```

```

This ensures that `SampleModule` will execute after `SampleModuleOld`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance46

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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

Total

4

Last Release

413d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1648be7ab062db3f01488236318487c553353f04bbdab881d3a35c6b70ded05c?d=identicon)[jamacio](/maintainers/jamacio)

---

Top Contributors

[![jamacio](https://avatars.githubusercontent.com/u/19245366?v=4)](https://github.com/jamacio "jamacio (9 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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