PHPackages                             yubarajshrestha/ym - 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. yubarajshrestha/ym

ActiveLibrary[Framework](/categories/framework)

yubarajshrestha/ym
==================

An awesome package to modularize your laravel app.

v1.0.2(9y ago)141MIT

Since Dec 16Compare

[ Source](https://github.com/yubarajshrestha/laravel-module)[ Packagist](https://packagist.org/packages/yubarajshrestha/ym)[ RSS](/packages/yubarajshrestha-ym/feed)WikiDiscussions Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

Modularizing Laravel
====================

[](#modularizing-laravel)

[![GitHub stars](https://camo.githubusercontent.com/c71eeb015968a6327096cd4f11921bb46abbfb806aedd1c66285cc1585397c66/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7975626172616a73687265737468612f6c61726176656c2d6d6f64756c652e737667)](https://github.com/yubarajshrestha/laravel-module/stargazers)[![Latest Stable Version](https://camo.githubusercontent.com/ff879f768f79ebab5648a97ba9a83120e25d2cd79ee5465875f6915484675206/68747470733a2f2f706f7365722e707567782e6f72672f7975626172616a73687265737468612f796d2f762f737461626c65)](https://packagist.org/packages/yubarajshrestha/ym)[![Total Downloads](https://camo.githubusercontent.com/c1b1f3e69b0a2e3946b4acc852345f83453a96eca705992ed7eeced52509c811/68747470733a2f2f706f7365722e707567782e6f72672f7975626172616a73687265737468612f796d2f646f776e6c6f616473)](https://packagist.org/packages/yubarajshrestha/ym)[![License](https://camo.githubusercontent.com/abbcd1353fa76db0eaac8ecd86e4c70ddcdf11d84d4000043cd6ce951a654c70/68747470733a2f2f706f7365722e707567782e6f72672f7975626172616a73687265737468612f796d2f6c6963656e7365)](https://packagist.org/packages/yubarajshrestha/ym)

**If you are sick trying to findout the controllers, routes and views from too many project files in laravel then yes, this package is for you.**

> This helps you to organize your Laravel Project codes by modularizing all your controllers, views and models. This will be very helpful when your laravel project is very big.

### How to?

[](#how-to)

#### Step 1: Install package

[](#step-1-install-package)

Add the package in your composer.json by executing the command.

```
composer require yubarajshrestha/ym

```

#### Step 2: Add Providers

[](#step-2-add-providers)

Add the service provider to `config/app.php`

`YubarajShrestha\YM\YMServiceProvider::class,``YubarajShrestha\YM\YMModuleProvider::class,`

#### Step 3: Add PSR-4 Autoloader

[](#step-3-add-psr-4-autoloader)

Add following line after **"App\\": "app/"** in `composer.json`**"Modules\\": "Modules/"**

```
Example:
"psr-4": {
    "App\\": "app/",
    "Modules\\": "Modules/"
}

```

#### Step 4: Publish Vendor Files

[](#step-4-publish-vendor-files)

You need to have some files and don't worry it's quite easy. You just want to execute the command now.

`php artisan vendor:publish`

#### Step 5: We are there now

[](#step-5-we-are-there-now)

Final step is to migrate some files. Execute migration command.

`php artisan migrate`

#### Step 6: Awesome

[](#step-6-awesome)

1. Your laravel project is now ready to go 👍.
2. All you have to do is serve your laravel app. and then visit `/ym`. Eg. `http://localhost:8000/ym`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

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

Total

3

Last Release

3483d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4140257658433cc8eb3a1a36a13fdf25ae15b9716c682f1c69a5a3bfb13f0a4b?d=identicon)[meyubaraj](/maintainers/meyubaraj)

---

Tags

laravellaravel-moduleym

### Embed Badge

![Health badge](/badges/yubarajshrestha-ym/health.svg)

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

###  Alternatives

[mhmiton/laravel-modules-livewire

Using Laravel Livewire in Laravel Modules package with automatically registered livewire components for every modules.

234455.5k9](/packages/mhmiton-laravel-modules-livewire)[hemp/presenter

Easy Model Presenters in Laravel

247608.3k1](/packages/hemp-presenter)[rahulalam31/laravel-abuse-ip

Block ip address of all spammer's around the world.

27234.5k](/packages/rahulalam31-laravel-abuse-ip)[hexters/laramodule

Laramodule is an HMVC pattern for the Laravel framework.

322.8k2](/packages/hexters-laramodule)

PHPackages © 2026

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