PHPackages                             kosmosx/support - 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. [Framework](/categories/framework)
4. /
5. kosmosx/support

AbandonedArchivedLumen[Framework](/categories/framework)

kosmosx/support
===============

Utilities support.

1.0.0(6y ago)0150MITPHPPHP ^7.1.3

Since Aug 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/KosmosX/support)[ Packagist](https://packagist.org/packages/kosmosx/support)[ RSS](/packages/kosmosx-support/feed)WikiDiscussions develop Synced 3d ago

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

KosmosX Support
---------------

[](#kosmosx-support)

[![](https://camo.githubusercontent.com/093902439ff11427de7fe252d55fd80c588fba59b931fa416ddc5c0a211456b8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e312d677265656e2e737667)](https://camo.githubusercontent.com/093902439ff11427de7fe252d55fd80c588fba59b931fa416ddc5c0a211456b8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e312d677265656e2e737667)[![](https://camo.githubusercontent.com/38bbfd9727a6f61bd6013f369beacca2f30c38431cc66d8cb09371e9071b67ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2533453d352e372d626c75652e737667)](https://camo.githubusercontent.com/38bbfd9727a6f61bd6013f369beacca2f30c38431cc66d8cb09371e9071b67ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d2533453d352e372d626c75652e737667)[![](https://camo.githubusercontent.com/fb8a9e523786e1002dc45c0483be7cb6285bd7bef0b1faf94ef38b59ab5099dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c756d656e2d2533453d352e372d626c75652e737667)](https://camo.githubusercontent.com/fb8a9e523786e1002dc45c0483be7cb6285bd7bef0b1faf94ef38b59ab5099dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c756d656e2d2533453d352e372d626c75652e737667)

```
composer require kosmosx/support

```

**Register service poviders**

```
/Kosmosx/Support/SupportServiceProvider::class

php artisan kosmosx:publish:support

```

**Use it**

```
$support = app('factory.support');

$statusSuccess = $support->success(200, $var, 'message...'); //return object StatusService
$statusFail = $support->fail(400, $var, 'message...');       //return object StatusService

$statusFail->isSuccess() //return false
$statusFail->isFail()    //return true
$statusFail->toArray()
//result
[
    "success"=>false,
    "data"=>[...],
    "message"=>"message...",
    "statusCode"=>200
]

$api = $support->api()
$api->collection($data, $transformer, $includesData = null, $serializer = null) //Create collection with data Transformer

```

**Route API auto discovery**

```
\ApiService::apiDiscovery();

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

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

Unknown

Total

1

Last Release

2456d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86b56131c92d8421d2a54614993c2bf00e91b1265de5b88948fd90d00b986d7e?d=identicon)[Fabrizio Cafolla](/maintainers/Fabrizio%20Cafolla)

---

Top Contributors

[![FabrizioCafolla](https://avatars.githubusercontent.com/u/13237032?v=4)](https://github.com/FabrizioCafolla "FabrizioCafolla (18 commits)")

---

Tags

frameworklaravelrestlumenrediscache

### Embed Badge

![Health badge](/badges/kosmosx-support/health.svg)

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

PHPackages © 2026

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