PHPackages                             lassehaslev/laravel-modules - 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. lassehaslev/laravel-modules

ActiveLaravel-plugin[Utility &amp; Helpers](/categories/utility)

lassehaslev/laravel-modules
===========================

1.0.0(8y ago)1102

Since Dec 11Compare

[ Source](https://github.com/LasseHaslev/laravel-modules)[ Packagist](https://packagist.org/packages/lassehaslev/laravel-modules)[ RSS](/packages/lassehaslev-laravel-modules/feed)WikiDiscussions Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

lassehaslev/laravel-modules
===========================

[](#lassehaslevlaravel-modules)

> Use [Package development](https://laravel.com/docs/5.3/packages) in your local projects.

Structure your applications functionality into modules and autoload the packages ServiceProviders.

Install and Setup
-----------------

[](#install-and-setup)

1. Run `composer require lassehaslev/laravel-modules`.
2. *(Not needed in laravel 5.5)* Add the following line to `providers` in `config/app.php`

    ```
    LasseHaslev\LaravelModules\Providers\ServiceProvider::class,

    ```
3. Ok, this step is very important: Add the following to your projects composer.json. If you do not, we cannot find out where your modules are loaded from.

    ```
    "extra": {
        ...
        "merge-plugin": {
            "include": [
                "Modules/*/composer.json"
            ],
            "recurse": true,
            "replace": false,
            "merge-dev": true,
            "merge-extra": false,
            "merge-extra-deep": false
        }
    }
    ```
4. Now, run `php artisan modules:make-folder` to create modules folder.

### Discover packages

[](#discover-packages)

Run `php artisan package:discover-modules` to find all packages.

This will discover vendor packages and package modules.

> You should replace the discover function in composer to auto update every time you run a composer command.

```
"post-autoload-dump": [
    ...
    "@php artisan package:discover-modules"
]

```

> Remember to run this command every time you create a new module.

Create local packages
---------------------

[](#create-local-packages)

I recommend you to use [LasseHaslev/laravel-package-template](https://github.com/LasseHaslev/laravel-package-template) to get a flying start to your local package.

Go to [LasseHaslev/laravel-package-template](https://github.com/LasseHaslev/laravel-package-template) quick package setup.

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

[](#configuration)

If you deside to change the place where your modules lives you must change path in composer.json `extra.merge-plugin.include`.

You must also overwrite the config for modules `Config::set( 'modules.path', base_dir( 'your/new/path' ) )`

Development
-----------

[](#development)

```
# Install dependencies
composer install

# Install for running automatic tests
yarn

# Make Modules folders in orcestra to make tests work
mkdir vendor/orchestra/testbench-core/laravel/Modules

# Run one time
npm run test

# Automaticly run test on changes
npm run dev
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

3

Last Release

3201d ago

Major Versions

0.0.2 → 1.0.02017-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/39edaff7913420649a4d7e159faecfef8210b583f645ef2f89545f2c72b64a9b?d=identicon)[LasseHaslev](/maintainers/LasseHaslev)

### Embed Badge

![Health badge](/badges/lassehaslev-laravel-modules/health.svg)

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

###  Alternatives

[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

3.9k27.8k](/packages/azuracast-azuracast)[theofidry/composer-inheritance-plugin

Composer plugin to merge multiple sub composer.json files

29171.1k](/packages/theofidry-composer-inheritance-plugin)[fresns/plugin-manager

Enhance Laravel Apps: Organized &amp; Scalable

513.2k2](/packages/fresns-plugin-manager)[bedita/manager

BEdita Manager - official admin webapp for BEdita4 API

131.1k](/packages/bedita-manager)

PHPackages © 2026

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