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

ActiveLibrary

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 1mo ago

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 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

1121d 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

[laravel/octane

Supercharge your Laravel application's performance.

4.0k21.5M159](/packages/laravel-octane)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[laravel/nightwatch

The official Laravel Nightwatch package.

3486.1M13](/packages/laravel-nightwatch)[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[spinen/laravel-clickup

SPINEN's Laravel Package for ClickUp.

282.2k](/packages/spinen-laravel-clickup)

PHPackages © 2026

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