PHPackages                             tyasa81/ezresponse - 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. tyasa81/ezresponse

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

tyasa81/ezresponse
==================

Template Response Class for standardized response format

v1.0.1(1y ago)0127MITPHPPHP ^8.2

Since Oct 1Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/tyasa81/EzResponse)[ Packagist](https://packagist.org/packages/tyasa81/ezresponse)[ Docs](https://github.com/tyasa81/ezresponse)[ GitHub Sponsors]()[ RSS](/packages/tyasa81-ezresponse/feed)WikiDiscussions main Synced 1mo ago

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

Template Response Class for standardized response format
========================================================

[](#template-response-class-for-standardized-response-format)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a791378f8ca75cdd331b43b00b00a71711eeaf524e12421ce9ad555432298f6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f747961736138312f657a726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tyasa81/ezresponse)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4f5f1d8bf5cdfb862733bc4d56e14acf5fcd87f7fd3da21d29f079772463309b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f747961736138312f657a726573706f6e73652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/tyasa81/ezresponse/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/713f91f633ca0e353927fc5226b5f1d5e4240cb4a7e8d075daf31a99125461f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f747961736138312f657a726573706f6e73652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/tyasa81/ezresponse/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c9ad6f0a98416c67f33f65bbef592e32cc5e85fb22affc7d0f4e1074e90eb4cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747961736138312f657a726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tyasa81/ezresponse)

Simple Response and Form Request Base Templates to Make all projects consistent.

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

[](#installation)

You can install the package via composer:

```
composer require tyasa81/ezresponse
```

Usage
-----

[](#usage)

```
return new SuccessResponse(data: ["test"=>1]);
return new FailResponse(message: "test", data: ["test"=>1]);
return new TooManyRequestResponse();
return new UnauthorizedResponse();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Tony Yasa](https://github.com/tyasa81)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance45

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

2

Last Release

594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bf2677afb69b7f20b48a9a66bde2626a82c5536e6fc764884db5664979768fa?d=identicon)[tyasa81](/maintainers/tyasa81)

---

Top Contributors

[![tyasa81](https://avatars.githubusercontent.com/u/36804374?v=4)](https://github.com/tyasa81 "tyasa81 (7 commits)")

---

Tags

laravelTony Yasaezresponse

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/tyasa81-ezresponse/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

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