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 1y 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 yesterday

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

30

—

LowBetter than 62% of packages

Maintenance41

Moderate activity, may be stable

Popularity10

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

640d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36804374?v=4)[Tony Yasa](/maintainers/tyasa81)[@tyasa81](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[tomshaw/electricgrid

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

119.4k](/packages/tomshaw-electricgrid)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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