PHPackages                             yasinkose/api-responder - 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. yasinkose/api-responder

ActiveLibrary[API Development](/categories/api)

yasinkose/api-responder
=======================

A api responder

v1.0.3(4y ago)12381MITPHPPHP &gt;=7.4

Since Dec 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/YasinKose/api-responder)[ Packagist](https://packagist.org/packages/yasinkose/api-responder)[ RSS](/packages/yasinkose-api-responder/feed)WikiDiscussions master Synced 3w ago

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

Api Responder
=============

[](#api-responder)

[![Packagist](https://camo.githubusercontent.com/945f85a4a93c9016f752322da6843dbb858e3e0266cbca04765e76ff7896a3c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f796173696e6b6f73652f6170692d726573706f6e6465722e737667)](https://packagist.org/packages/yasinkose/api-responder)[![Packagist](https://camo.githubusercontent.com/7eb1ef05315fc55b6dcc3c2c6d48f37880e4135d4d6598d21906efb227d7789f/68747470733a2f2f706f7365722e707567782e6f72672f796173696e6b6f73652f6170692d726573706f6e6465722f642f746f74616c2e737667)](https://packagist.org/packages/yasinkose/api-responder)[![Packagist](https://camo.githubusercontent.com/a5e48f53a10dc0ce1dc70dc35c10f001e6e32d7669dceb1b4cc63d5866b944cc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f796173696e6b6f73652f6170692d726573706f6e6465722e737667)](https://packagist.org/packages/yasinkose/api-responder)

Description
-----------

[](#description)

A Simple Laravel package built to generate API Respond.

Installation
============

[](#installation)

To get started, Install via composer:

```
composer require yasinkose/api-responder
```

Laravel
-------

[](#laravel)

#### Register Service Provider

[](#register-service-provider)

Append the following line to the `providers` key in `config/app.php` to register the package:

```
YasinKose\ApiResponder\ServiceProvider::class,
```

or if you're using **Lumen**, Add the following snippet to the `bootstrap/app.php` file under the providers section as follows:

```
$app->register(YasinKose\ApiResponder\ServiceProvider::class);
```

#### Register Facades

[](#register-facades)

If you're using **Laravel**, Add `ApiResponder` `Facades` to the `aliases` key:

```
'Respond' => YasinKose\ApiResponder\Facades\ApiResponder::class,
```

or if you're using **Lumen** Add the following snippet to the `bootstrap/app.php`

```
class_alias(YasinKose\ApiResponder\Facades\ApiResponder::class, "Respond");
```

Usage
-----

[](#usage)

```
 Respond::ok(string $message = "OK", $attr = [])
 Respond::unAuthenticated(string $message = "Unauthorized", $errors = [])
 Respond::forbidden(string $message = "Forbidden", $errors = [])
 Respond::error(string $message = null, $errors = [])
 Respond::created($attr = null)
 Respond::failedValidation(string $message = "Unprocessable Entity", $errors = [])
 Respond::noContent(string $message = "No Content", $errors = [])
```

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

Contributors ✨
--------------

[](#contributors-)

Thanks goes to these people:

- [Yasin Köse](https://github.com/yasinkose/api-responder)
- [All contributors](https://github.com/yasinkose/api-responder/graphs/contributors)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

1531d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58294158?v=4)[Yasin Köse](/maintainers/YasinKose)[@YasinKose](https://github.com/YasinKose)

---

Top Contributors

[![YasinKose](https://avatars.githubusercontent.com/u/58294158?v=4)](https://github.com/YasinKose "YasinKose (9 commits)")

---

Tags

apiresponder

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yasinkose-api-responder/health.svg)

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

###  Alternatives

[binarytorch/larecipe

Generate gorgeous recipes for your Laravel applications using MarkDown

2.5k2.9M17](/packages/binarytorch-larecipe)[resend/resend-laravel

Resend for Laravel

1222.7M9](/packages/resend-resend-laravel)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)

PHPackages © 2026

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