PHPackages                             creativesofttechsolutions/laravelmodules - 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. creativesofttechsolutions/laravelmodules

ActiveLibrary[Framework](/categories/framework)

creativesofttechsolutions/laravelmodules
========================================

A lightweight and powerful module/plugin manager for Laravel applications.

v1.0.0(11mo ago)09MITPHPPHP ^8.2

Since Jun 14Pushed 11mo agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Modules Package
=======================

[](#laravel-modules-package)

A modular management package for Laravel, enabling seamless integration and structured development for Laravel-based projects.

---

Features
--------

[](#features)

- **Modular Structure**: Each module contains its own controllers, routes, views, configurations, and more.
- **Hooks System**: Supports actions and filters for customizable functionality.
- **Tenant Support**: Includes tenant-specific migrations and configurations for multitenancy.
- **Artisan Commands**: Simplified commands to create modules, controllers, middleware, models, and migrations.

---

Module Structure
----------------

[](#module-structure)

Modules are stored in the `modules/` directory and follow this organized structure:

```
modules/Blog/
├── Config/
│   ├── config.php
│   ├── navbar_config.php
│   └── hooks.php        # Example filters & actions
├── Controllers/
│   └── BlogController.php
├── Middleware/
├── Migrations/
├── Providers/
│   └── BlogServiceProvider.php  # Auto-loads views, routes, hooks
├── Resources/
│   └── views/
│       └── index.blade.php
├── Routes/
│   ├── web.php          # Web routes
│   ├── central.php      # Central routes
│   └── tenant.php       # Tenant routes

```

---

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

[](#installation)

Install the package via Composer:

```
composer require creativesofttechsolutions/laravelmodules
```

Publish configuration files:

```
php artisan vendor:publish --tag=modules-config
```

---

Usage
-----

[](#usage)

### Create a New Module

[](#create-a-new-module)

Create a module using the Artisan command:

```
php artisan make:module Blog
```

### Create a New Controller

[](#create-a-new-controller)

Add a controller to a module:

```
php artisan module:make-controller Blog TestController
```

### Create Middleware

[](#create-middleware)

Generate middleware for a module:

```
php artisan module:make-middleware Blog TestMiddleware
```

Register middleware in the module's service provider:

```
$router = $this->app['router'];
$router->aliasMiddleware('example.middleware', ExampleMiddleware::class);
```

### Create a Model

[](#create-a-model)

Add a model to a module with an associated migration:

```
php artisan module:make-model Blog Post -m
```

### Create a Migration

[](#create-a-migration)

Generate a migration for a module:

```
php artisan module:make-migration Blog create_posts_table
```

---

Tenant-Specific Features
------------------------

[](#tenant-specific-features)

### Run Tenant Migrations

[](#run-tenant-migrations)

```
php artisan tenant:migrate --domain=demo.mlmmultitenancy.test --fresh
```

### Run Tenant Migrations with Seeders

[](#run-tenant-migrations-with-seeders)

```
php artisan tenant:migrate --domain=demo.mlmmultitenancy.test --fresh --seed
```

---

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

[](#configuration)

### Hooks System

[](#hooks-system)

Customize functionality with `hooks.php`:

```
add_action('example_action', function ($args) {
    // Perform your action here
});

apply_filters('example_filter', $data);
```

### Auto-Loading

[](#auto-loading)

The `BlogServiceProvider` automatically registers:

- Routes
- Views
- Configurations
- Hooks

---

Contribution
------------

[](#contribution)

Contributions are welcome! Feel free to submit issues or pull requests to improve this package.

---

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance52

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/84709cb56727bcf759bc23c2fc6cbf8efc8ec0bd456a61827ceeeda2bb3050be?d=identicon)[creativesofttechsolutions](/maintainers/creativesofttechsolutions)

---

Top Contributors

[![creativesofttechsolutions](https://avatars.githubusercontent.com/u/216281582?v=4)](https://github.com/creativesofttechsolutions "creativesofttechsolutions (1 commits)")

### Embed Badge

![Health badge](/badges/creativesofttechsolutions-laravelmodules/health.svg)

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

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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