PHPackages                             taylornetwork/presenter - 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. taylornetwork/presenter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

taylornetwork/presenter
=======================

A presenter class for Laravel.

1.1.0(9y ago)020PHPPHP &gt;=5.4.0

Since Nov 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/taylornetwork/presenter)[ Packagist](https://packagist.org/packages/taylornetwork/presenter)[ RSS](/packages/taylornetwork-presenter/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Presenter for Laravel
=====================

[](#presenter-for-laravel)

Adds another place to put logic for models. Instead of cluttering up models with logic to display/format data, add them to a presenter!

This is a rewrite of [laracasts/Presenter](https://github.com/laracasts/Presenter) with some added functionality, commands, etc.

Install
-------

[](#install)

Via Composer

```
$ composer require taylornetwork/presenter
```

Setup
-----

[](#setup)

Add the service provider to the providers array in `config/app.php`

```
'providers' => [

    TaylorNetwork\Presenter\PresenterServiceProvider::class,

],
```

Publish Config
--------------

[](#publish-config)

```
$ php artisan vendor:publish
```

This will add `config/presenter.php` where you can define the namespace you want your presenter classes to be stored.

Usage
-----

[](#usage)

Create a presenter using the artisan command, for example a presenter for the User model.

```
$ php artisan make:presenter UserPresenter
```

This will create a presenter class you can add logic to that you don't want in the model or the view. Model attributes are accessible via `$this->model`

```
use TaylorNetwork\Presenter\Presenter;

class UserPresenter extends Presenter
{
    /**
     * Get the user's full name
     *
     * @return string
     */
    public function fullName()
    {
        return $this->model->first_name . ' ' . $this->model->last_name;
    }

    /**
     * Get the time since the user signed up
     *
     * @return string
     */
    public function userSince()
    {
        return $this->model->created_at->diffForHumans();
    }
}
```

You will need to add the presentable trait and a `$presenter` property to your model

```
use TaylorNetwork\Presenter\Presentable;
use App\Presenters\UserPresenter;

class User extends Model
{
    use Presentable;

    /**
     * Presenter Class
     *
     * @var string
     */
    protected $presenter = UserPresenter::class;

    // Code
}
```

You can access the presenter with `present()`

```
{{ $user->present()->fullName }}, you signed up {{ $user->present()->userSince }}
```

Credits
-------

[](#credits)

- Main Author: [Sam Taylor](https://github.com/taylornetwork)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3410d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83340094473f0bf5b2cf062bf394df221a52a30aa0e21cd0a77302977d6393ce?d=identicon)[samueljtaylor](/maintainers/samueljtaylor)

---

Top Contributors

[![samyrataylor](https://avatars.githubusercontent.com/u/15961687?v=4)](https://github.com/samyrataylor "samyrataylor (9 commits)")

### Embed Badge

![Health badge](/badges/taylornetwork-presenter/health.svg)

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

###  Alternatives

[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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