PHPackages                             teguh02/api-response - 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. [API Development](/categories/api)
4. /
5. teguh02/api-response

ActiveLibrary[API Development](/categories/api)

teguh02/api-response
====================

Laravel Package for Transform, Manipulate and Validate API Response

1.0.4(1y ago)08MITPHPPHP ^8.0CI failing

Since Apr 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/teguh02/api-response)[ Packagist](https://packagist.org/packages/teguh02/api-response)[ Docs](https://github.com/teguh02/api-response)[ RSS](/packages/teguh02-api-response/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (7)Versions (6)Used By (0)

Laravel Package for Transform, Manipulate and Validate API Response
===================================================================

[](#laravel-package-for-transform-manipulate-and-validate-api-response)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ded6c5c4cb97b33f6f0b089a9414b9d4bef7d333c0c5fd7c632432f7a2de9294/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746567756830322f6170692d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/teguh02/api-response)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f17d9d3f713c18c0bf16aa48528e31a6d2a06bd33a44820bcaff9cd78422a9e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746567756830322f6170692d726573706f6e73652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/teguh02/api-response/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f29ac575b143f0e728b47b4e79f8fc4fa798bbc5d6144428efab611bd3818fc4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f746567756830322f6170692d726573706f6e73652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/teguh02/api-response/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b7cebad0bb28f200958fa325aac1b1e7079e97a140c4235fe718ef39bb923114/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746567756830322f6170692d726573706f6e73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/teguh02/api-response)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/a31c465ac80b56265392bda2fd5258152ef3b98423d07409b2752aa2d7fdb3e7/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6170692d726573706f6e73652e6a70673f743d31)](https://spatie.be/github-ad-click/api-response)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require teguh02/api-response
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="api-response-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="api-response-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="api-response-views"
```

Usage
-----

[](#usage)

```
$apiResponse = new teguh02\ApiResponse();
echo $apiResponse->echoPhrase('Hello, teguh02!');
```

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)

- [teguh02](https://github.com/teguh02)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance45

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

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

Every ~2 days

Total

5

Last Release

432d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86437a73401dd2749be2dcae882e8a9937fe5dcd6b0d8895e5358c697f6a1898?d=identicon)[teguh02](/maintainers/teguh02)

---

Top Contributors

[![teguh02](https://avatars.githubusercontent.com/u/43981051?v=4)](https://github.com/teguh02 "teguh02 (22 commits)")

---

Tags

laravelapi-responseteguh02

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/teguh02-api-response/health.svg)

```
[![Health](https://phpackages.com/badges/teguh02-api-response/health.svg)](https://phpackages.com/packages/teguh02-api-response)
```

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M100](/packages/dedoc-scramble)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

11337.8k1](/packages/neuron-core-neuron-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)

PHPackages © 2026

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