PHPackages                             salipropham/laravel-mvcsp - 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. salipropham/laravel-mvcsp

ActiveLibrary[Framework](/categories/framework)

salipropham/laravel-mvcsp
=========================

Implement MVC + Service + Presenter layer to Laravel 5

v0.1.1(7y ago)11.9kAMLPHP

Since Feb 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/salipropham/laravel-mvcsp)[ Packagist](https://packagist.org/packages/salipropham/laravel-mvcsp)[ Docs](https://github.com/salipropham/laravel-mvcsp)[ RSS](/packages/salipropham-laravel-mvcsp/feed)WikiDiscussions master Synced yesterday

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

Laravel-MVCSP
=============

[](#laravel-mvcsp)

Implement MVC + Service + Presenter layer to Laravel 5

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

[](#installation)

Via Composer

```
$ composer require salipropham/laravel-mvcsp
```

Usage
-----

[](#usage)

#### Service Layer

[](#service-layer)

Create new service via artisan command. The service stored in `app/Services` folder.

```
$ php artisan make:service ServiceName

```

In controller, you can use `service` helper function to use it like a singleton.

```
public function index(Request $request)
{
    $srvDummy = service(DummyService::class);
    if($request->get('key')){
        $srvDummy->loveU();
    } else {
        $srvDummy->willLoveU;
    }

    // something or nothing...

}
```

#### Presenter Layer

[](#presenter-layer)

The Presenter stored in `app/Presenters` folder.

```
$ php artisan make:presenter PresenterName

```

Presenter will transform your data into view data, prevent writing logic on view.

```
public function index(Request $request)
{

    // something or nothing...

    $prsFoo = presenter(FooPresenter::class);

    return view('example', $prsFoo);
}
```

FooPresenter.php

```
class LovePresenter extends Presenter
{

    /**
     * Keep or not original data that has passed on init
     * @var bool
     */
    protected $keepOrigData = true;

    public function transform()
    {
        // logic here and only here

        $this->mydata = 'transformed data';
    }
}
```

In addition, we can pass data to Presenter via `presenter` helper or `setOriginalData` function.

```
presenter($name, $original_data)
//or
$prsFoo->setOriginalData($original_data)
```

To get transformed data, simple like drinking a coffee cup :)

```
$data = $prsFoo->parse();
// or a static method
$data = FooPresenter::parse();
```

License
-------

[](#license)

Please see the [license file](license.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

2619d ago

### Community

Maintainers

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

---

Top Contributors

[![salipropham](https://avatars.githubusercontent.com/u/9390445?v=4)](https://github.com/salipropham "salipropham (5 commits)")

---

Tags

laravelservice layerLaravelMVCSPPresenter Layer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/salipropham-laravel-mvcsp/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k96.9M674](/packages/laravel-socialite)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k84.2M225](/packages/laravel-horizon)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)

PHPackages © 2026

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