PHPackages                             elsuterino/respondus - 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. elsuterino/respondus

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

elsuterino/respondus
====================

Typed resources.

1.0.2(2y ago)07MITPHPPHP ^8.2

Since Dec 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/elsuterino/respondus)[ Packagist](https://packagist.org/packages/elsuterino/respondus)[ RSS](/packages/elsuterino-respondus/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Barklis/Respondus
=================

[](#barklisrespondus)

Overview
--------

[](#overview)

Barklis/Respondus is a PHP package designed to handle Data Transfer Object (DTO) responses in a typed manner. It offers seamless integration with [Spatie TypeScript Transformer](https://github.com/spatie/typescript-transformer), enhancing the efficiency and readability of DTO responses in PHP applications.

Requirements
------------

[](#requirements)

- PHP 8.2 or higher

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

[](#installation)

To install the package, use Composer:

`composer require elsuterino/respondus`

Usage
-----

[](#usage)

Barklis/Respondus simplifies the process of creating DTOs and managing their visibility. You can easily define hidden fields for your resources.

### Creating a Resource

[](#creating-a-resource)

```
use Barklis\Respondus\Options;
use Barklis\Respondus\Respondus;

class UserResource extends Respondus
{
    public function makeFromModel(User $user): self
    {
        $this->id = $user->id;
        $this->email = $user->email;
        // Additional fields...
        return $this;
    }
    // Other class methods...
}

$resource = (new UserResource)->makeFromModel($user)->setHidden(UserResource::class, 'email')->toArray();
```

License This project is licensed under the MIT License. For more details, see the LICENSE file.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

3

Last Release

928d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/432be51135543bd6e90c54c8702a7daecae6ddeb60ce47b562b22cec3f16186c?d=identicon)[elsuterino](/maintainers/elsuterino)

---

Top Contributors

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

---

Tags

laraveldto

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/elsuterino-respondus/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k12.5k1](/packages/vinkius-labs-laravel-page-speed)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[tomshaw/electricgrid

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

119.4k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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