PHPackages                             itinysun/api-result - 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. itinysun/api-result

ActiveLibrary[API Development](/categories/api)

itinysun/api-result
===================

stander result response for laravel api request

v1.0.3(3y ago)07MITPHP

Since Apr 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Itinysun/api-result)[ Packagist](https://packagist.org/packages/itinysun/api-result)[ Docs](https://github.com/Itinysun/api-result)[ RSS](/packages/itinysun-api-result/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

API Response For Laravel
========================

[](#api-response-for-laravel)

安装
--

[](#安装)

```
composer require itinysun/api-result
```

### 更新

[](#更新)

```
composer update itinysun/api-result
```

使用方法
----

[](#使用方法)

```
return ApiResult::success($response_body_data)

return ApiResult::error(ErrorCode::needLogin)
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

1113d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc83a23d3cdc2fb33144705d4185c7431220d16ecf62903e40f1c4cfd24a2c79?d=identicon)[tinysun](/maintainers/tinysun)

---

Top Contributors

[![Itinysun](https://avatars.githubusercontent.com/u/5356264?v=4)](https://github.com/Itinysun "Itinysun (8 commits)")

---

Tags

laravelApiResult

### Embed Badge

![Health badge](/badges/itinysun-api-result/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[vemcogroup/laravel-weather

Weather package for Laravel to use different providers to get weather info

5525.0k](/packages/vemcogroup-laravel-weather)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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