PHPackages                             erickjmenezes/modularavel - 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. erickjmenezes/modularavel

ActiveLibrary[Framework](/categories/framework)

erickjmenezes/modularavel
=========================

Create independent modules inside your Laravel Project

v1.1.2(2y ago)05MITPHPPHP ^8.2

Since Oct 9Pushed 2y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

Modularavel
===========

[](#modularavel)

> PLEASE, NEVER USE THIS PACKAGE.

In huge Laravel projects, we often need to deal with multiple route files, or hundreds of models, or hundreds of controllers, and the project becomes harder and harder to maintain. But how to avoid?

The concept of this package is to provide the ability to create small packages, or libraries, inside your Laravel project, without losing the comfort of the monorepo architecture.

---

### Installation:

[](#installation)

```
composer require erickjmenezes/modularavel
```

---

### How to use:

[](#how-to-use)

```
php artisan make:lib
```

With this command, the package will generate a new library, with minimal basic structure, inside `$PROJECT_ROOT$/libs/`. Here you can develop and test your brand-new functionality, without affecting the existing ones.

**THAT'S IT!**

Take a look in the generated structure:

```
.
├── app/
├── public/
├── bootstrap/
├── config/
├── database/
├── resources/
├── routes/
├── storage/
├── vendor/
├── tests/
└── libs/
    └── /
        ├── src/
        │   ├── Http/
        │   │   ├── Controllers/
        │   │   ├── Resources/
        │   │   └── Requests/
        │   ├── Models/
        │   └── Providers/
        ├── config/
        ├── resources/
        │   └── views/
        ├── tests/
        │   ├── Unit/
        │   └── Feature/
        ├── routes/
        ├── vendor/
        ├── composer.json
        └── composer.lock

```

### Customization

[](#customization)

By default, the generated library will not have all the folders you see above. You must choose what you want. Run the following command to see what you can customize:

```
php artisan make:lib --help
```

### The generated library...

[](#the-generated-library)

- Is automatically recognized. You don't need to move a finger.
- Has its own `composer.json`.
    - Install packages inside the lib folder to develop with comfort. When everything is ready, just do a composer install in your project root folder and everything will be synced.
- Has everything ready to create new controllers, routes, views, commands, and whatever you want.
    - If you already know how to develop a package for laravel, you'll feel at home. It's a package like any other. If not, no problem, you'll feel at home too!
- Easy to decouple.
    - If you, for some reason, want to decouple the library from the libs folder and put in a standalone repo, it is almost as easy as copy-paste the contents to another repo.
    - You need a few extra steps to finish the move, but it is straightforward.
        - Run `composer remove libs/`.
        - Delete/Move the lib folder that is inside the `libs` folder.
        - Remove the reference from the root `composer.json`, in the `repositories` section.
        - Update the library `testbench.yaml` according to your needs. See `orchestral/testbench` for further information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

781d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c4d7b81b04cad437d9e4579d02e2a96c62320da264c82be0f5fb784034b49c2?d=identicon)[ErickJMenezes](/maintainers/ErickJMenezes)

---

Top Contributors

[![ErickJMenezes](https://avatars.githubusercontent.com/u/49132967?v=4)](https://github.com/ErickJMenezes "ErickJMenezes (22 commits)")

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/erickjmenezes-modularavel/health.svg)

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

###  Alternatives

[code16/sharp

Laravel Content Management Framework

78959.5k4](/packages/code16-sharp)[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)
