PHPackages                             coreuxio/lib - 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. coreuxio/lib

ActiveLibrary[API Development](/categories/api)

coreuxio/lib
============

A small set of tools to speed up Laravel API development

v1.0.8(3y ago)08proprietaryPHPPHP ^7.4||^8.0

Since Apr 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/coreuxio/lib)[ Packagist](https://packagist.org/packages/coreuxio/lib)[ Docs](https://github.com/coreuxio/lib)[ RSS](/packages/coreuxio-lib/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (2)Versions (10)Used By (0)

Core UX - Laravel Library
=========================

[](#core-ux---laravel-library)

A personal set of tools to start building APIs or Laravel Apps

Features
--------

[](#features)

- Standard API Response
- Request Time

### Standard API Response

[](#standard-api-response)

Adding meta data helps when debugging from Webhook logs

```
{
    "status": "success",
    "data": "This could be anything including arrays and object",
    "errors": [],
    "meta": {
        "httpCode": 200,
        "milliseconds": 120,
        "timestamp": "2023-04-07 17:19:05"
    },
    "pagination": null
}
```

#### Usage

[](#usage)

In your App/Http/Controller add ApiResponse as a trait

```
use \Coreux\Lib\API\Traits\ApiResponse;
class Controller extends BaseController
{
    use AuthorizesRequests, ValidatesRequests, ApiResponse;
}
```

Now you can respond return this as a successful return

```
return $this->apiReturn($users);
```

You can also use Pagination from Eloquent

```
return $this->apiReturnPaginated($usersPaginated,$transformer=null);
```

Or you can return an error and specify the code

```
return $this->apiError($errors,$code=400);
```

### Request Time

[](#request-time)

By defining at the following line in your index.php (App entry) the API response will be able to return the milliseconds your code ran for

```
define('APP_START', microtime(true));
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

9

Last Release

1167d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.0.2PHP ^7.4||^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ef1de55d9cb86cf59eb31745b33e30db5b88efebf7c88eedf589f570ad2befb?d=identicon)[CoreUX](/maintainers/CoreUX)

---

Top Contributors

[![lperezdude](https://avatars.githubusercontent.com/u/11982633?v=4)](https://github.com/lperezdude "lperezdude (11 commits)")

---

Tags

commontoolsservices

### Embed Badge

![Health badge](/badges/coreuxio-lib/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M223](/packages/laravel-octane)[bagisto/bagisto

Bagisto Laravel E-Commerce

27.6k172.1k9](/packages/bagisto-bagisto)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[laravel/nightwatch

The official Laravel Nightwatch package.

36210.1M36](/packages/laravel-nightwatch)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k420.9k26](/packages/team-reflex-discord-php)

PHPackages © 2026

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