PHPackages                             gizburdt/paint - 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. gizburdt/paint

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

gizburdt/paint
==============

Manipulate, transform and present data with ease

1.0.0(1mo ago)118MITPHPPHP ^8.2CI passing

Since May 31Pushed 1mo agoCompare

[ Source](https://github.com/gizburdt/paint)[ Packagist](https://packagist.org/packages/gizburdt/paint)[ Docs](https://github.com/gizburdt/paint)[ RSS](/packages/gizburdt-paint/feed)WikiDiscussions master Synced 1w ago

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

Paint
=====

[](#paint)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d2acba10949a0bfc0ab0b2623614501c9ffacc7ef4546643b878ccd930b22e04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67697a62757264742f7061696e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gizburdt/paint)[![Total Downloads](https://camo.githubusercontent.com/55d36e5a0c40b0dce3bbcb158bc33a86708033c5ebb81021591a64025eb6ad71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67697a62757264742f7061696e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gizburdt/paint)[![Tests](https://camo.githubusercontent.com/547d202895df81e1b35be6abd8cb0c797e4d94c0756bfc1a2e043fe182b3327a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67697a62757264742f7061696e742f74657374732e796d6c3f6272616e63683d6d6173746572266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/gizburdt/paint/actions/workflows/tests.yml)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Manipulate, transform and present data with ease.

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

[](#installation)

You can install the package via composer:

```
composer require gizburdt/paint
```

Usage
-----

[](#usage)

Create a presenter by extending `Presenter` and adding methods. The original object is available as `$this->entity`.

```
use Gizburdt\Paint\Presenter;

class UserPresenter extends Presenter
{
    public function fullName(): string
    {
        return "{$this->entity->first_name} {$this->entity->last_name}";
    }

    public function name(): string
    {
        return strtoupper($this->entity->first_name);
    }
}
```

Add the `Presentable` trait to the class you want to present and point the `$presenter`property to your presenter:

```
use Gizburdt\Paint\Presentable;

class User
{
    use Presentable;

    protected string $presenter = UserPresenter::class;
}
```

Call `present()` to get the presenter instance. Methods can be accessed as properties, and any property that is not defined on the presenter falls back to the entity:

```
$user = User::find(1);

$user->present()->fullName();   // "John Doe"  (regular method call)
$user->present()->name;         // "JOHN"      (name() accessed as a property)
$user->present()->email;        // falls back to $user->email
```

Testing
-------

[](#testing)

```
composer test
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance89

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

54d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1470623?v=4)[Gijs Jorissen](/maintainers/gizburdt)[@gizburdt](https://github.com/gizburdt)

---

Top Contributors

[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (6 commits)")

---

Tags

laravelpresenter

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gizburdt-paint/health.svg)

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

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)[culturegr/presenter

Eloquent Model Presenter for Laravel applications

141.4k](/packages/culturegr-presenter)

PHPackages © 2026

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