PHPackages                             rits/modular - 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. rits/modular

ActiveLibrary[Framework](/categories/framework)

rits/modular
============

Modular structure for laravel projects.

1.0.0(8y ago)014MITPHPPHP ^7.0

Since May 31Pushed 8y agoCompare

[ Source](https://github.com/rits-tecnologia/modular)[ Packagist](https://packagist.org/packages/rits/modular)[ Docs](https://rits.com.br)[ RSS](/packages/rits-modular/feed)WikiDiscussions master Synced 3d ago

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

Modular
=======

[](#modular)

[![Build Status](https://camo.githubusercontent.com/5cdb2ae1e23386602713a2d75dd29cb49cc383ca08401ef944294449ce1e6318/68747470733a2f2f7472617669732d63692e6f72672f726974732d7465636e6f6c6f6769612f6d6f64756c61722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rits-tecnologia/modular)[![Coverage Status](https://camo.githubusercontent.com/52ec090d6b16c1340378c2ae57ad7af3b61ed3b2930048aa3249f006fd192343/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f726974732d7465636e6f6c6f6769612f6d6f64756c61722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/rits-tecnologia/modular?branch=master)[![Code Climate](https://camo.githubusercontent.com/efe6767f8ea56ea8395a87216b22632f70a29a3e3f9299a747fd608bb9c69678/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f726974732d7465636e6f6c6f6769612f6d6f64756c61722f6261646765732f6770612e737667)](https://codeclimate.com/github/rits-tecnologia/modular)[![Total Downloads](https://camo.githubusercontent.com/fcf56532644c38b3ada638da1c75a25ca2177fd811735acc05db81f1bd984276/68747470733a2f2f706f7365722e707567782e6f72672f726974732f6d6f64756c61722f642f746f74616c2e737667)](https://packagist.org/packages/rits/modular)[![Latest Stable Version](https://camo.githubusercontent.com/3d6da086faf9f0d115669d0b46272299e9adaffeaec0341afa494cebcf2bddd5/68747470733a2f2f706f7365722e707567782e6f72672f726974732f6d6f64756c61722f762f737461626c652e737667)](https://packagist.org/packages/rits/modular)[![Latest Unstable Version](https://camo.githubusercontent.com/0d5bde8bd13537dcc652a36ae046c239d82a9c186e450c3c61661fe1c57ef9df/68747470733a2f2f706f7365722e707567782e6f72672f726974732f6d6f64756c61722f762f756e737461626c652e737667)](https://packagist.org/packages/rits/modular)[![License](https://camo.githubusercontent.com/c6b7dad95e0fbcd6f91b96f3c89b760b8945dfbc92df7713eddfe816446e565f/68747470733a2f2f706f7365722e707567782e6f72672f726974732f6d6f64756c61722f6c6963656e73652e737667)](https://packagist.org/packages/rits/modular)

Offers a easy way to modularize your laravel app.

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

[](#installation)

Require this package with composer:

```
composer require rits/modular
```

After updating composer, add the ModularServiceProvider to the providers array in config/app.php. Use vendor:publish command to create the configuration file.

```
php artisan vendor:publish --tag=rits/modular
```

Usage
-----

[](#usage)

You can choose wherever you want to store your modules. In most cases app/Modules is a good choice. Create a class that extends the ModuleDefinition class, and add the class name in the modular.php config file.

Example:

- Create the app/Modules/Frontend/Module.php file;
- Create the class with the correct namespace and extend Rits\\Modular\\ModuleDefinition;
- Add App\\Modules\\Frontend\\Module::class to the available array in the modular.php config file.

Restrictions
------------

[](#restrictions)

All module's controllers must be in a Controllers folder in the module main directory.

Roadmap
-------

[](#roadmap)

1. Create a command to easily create a new module;
2. Rewrite the README.md with better examples;
3. Provide a example repository.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

3270d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc0ab205db52fb9d614e8defc492cb8b5c9a11c20c2f4ee97bde89e6f4d7ff9b?d=identicon)[ferrl](/maintainers/ferrl)

---

Tags

frameworklaravelmodules

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rits-modular/health.svg)

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

###  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)[kompo/kompo

Laravel &amp; Vue.js FullStack Components for Rapid Application Development

11812.4k21](/packages/kompo-kompo)

PHPackages © 2026

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