PHPackages                             vbk-solutions/laravel-module-support - 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. vbk-solutions/laravel-module-support

ActiveLibrary

vbk-solutions/laravel-module-support
====================================

Composer-installable module support for Laravel applications.

1.0.1(1mo ago)03↓100%MITPHPPHP ^8.2

Since Mar 14Pushed 1mo agoCompare

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

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Module Support
======================

[](#laravel-module-support)

Composer-installable module support for Laravel applications.

That gives you a clean split:

- **this package** provides module discovery, state management, commands, dependency checks and provider loading
- **your app** keeps ownership of the actual business modules

---

What this package does
----------------------

[](#what-this-package-does)

The package provides:

- module discovery through `modules/*/module.php`
- enable / disable state handling
- dependency checks between modules
- automatic loading of service providers for enabled modules
- artisan commands such as:
    - `module:list`
    - `module:status`
    - `module:enable`
    - `module:disable`
    - `module:depends-on`
    - `module:create`
    - `module:test`

This package does **not** move your own modules into `vendor/`. Only the support framework itself lives in `vendor/`.

---

Requirements
------------

[](#requirements)

- PHP `^8.2`
- Laravel `^11.0 | ^12.0`

---

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

[](#installation)

### Install from Packagist

[](#install-from-packagist)

When a stable release is available:

```
composer require vbk-solutions/laravel-module-support
```

---

Quick start for a fresh Laravel app
-----------------------------------

[](#quick-start-for-a-fresh-laravel-app)

After requiring the package, do the following.

### 1. Publish the config

[](#1-publish-the-config)

```
php artisan vendor:publish --tag=module-support-config
```

This creates:

```
config/modules.php
```

Default contents:

```
