PHPackages                             reptily/api-check - 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. reptily/api-check

ActiveLibrary[API Development](/categories/api)

reptily/api-check
=================

Quick check of external API

0.0.1(2y ago)13GPL-3.0-or-laterPHPPHP &gt;=7.3

Since Nov 10Pushed 2y ago1 watchersCompare

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

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

Helper class for checking the API structure of external services
================================================================

[](#helper-class-for-checking-the-api-structure-of-external-services)

Install
-------

[](#install)

```
composer require reptily/api-check
```

what problem does this helper solve?
------------------------------------

[](#what-problem-does-this-helper-solve)

Laravel façade doesn't handle big data well

#### Large Array Example

[](#large-array-example)

```
$users = [];
$user = [
    'id' => 1,
    'name' => 'Bob',
    'is_active' => true,
    'books' => []
];
$book = [
    'id' => 1,
    'name' => 'test book',
];

for ($i=0; $i < 100; $i++) {
    $user['books'][] = $book;
}

for ($i=0; $i < 500; $i++) {
    $users[] = $user;
}
```

#### benchmark facade Validator

[](#benchmark-facade-validator)

```
Validator::make($users, [
    '*.id' => ['required', 'integer'],
    '*.name' => ['required', 'string'],
    '*.is_active' => ['required', 'boolean'],
    '*.books' => ['required', 'array'],
    '*.books.*.id' => ['required', 'integer'],
    '*.books.*.name' => ['required', 'string'],
]);
```

```
End time: 84.0274 sec.
```

#### benchmark ApiCheck

[](#benchmark-apicheck)

```
ApiCheck::structure([
    ApiCheck::TYPE_ARRAYS => [
        'id' => ApiCheck::TYPE_INTEGER,
        'name' => ApiCheck::TYPE_STRING,
        'is_active' => ApiCheck::TYPE_BOOLEAN,
        'books' => [
            ApiCheck::TYPE_ARRAYS => [
                'id' => ApiCheck::TYPE_INTEGER,
                'name' => ApiCheck::TYPE_STRING,
            ]
        ]
    ]
], $users);
```

```
End time: 0.1269 sec.
```

Who USED ?!
-----------

[](#who-used-)

Example base response

```
{
  "id": 1,
  "name": "Bob"
}
```

ApiCheck

```
$result = ApiCheck::checker($response, [
    'id' => ApiCheck::TYPE_INTEGER,
    'name' => ApiCheck::TYPE_STRING,
]);
```

Example for array

```
["bob", "sara", "john"]
```

ApiCheck

```
$result = ApiCheck::checker($response, [ApiCheck::TYPE_ARRAYS => ApiCheck::TYPE_STRING]);
```

Example for array

```
{
  "data": [
    {
       "name": ["car", "foot", "ball"]
    },
    {
       "name": ["room", "tree"]
    }
  ]
}
```

ApiCheck

```
$result = ApiCheck::checker($response, [
    'data' => [
    ApiCheck::TYPE_ARRAYS => [
            'names' => [
                ApiCheck::TYPE_ARRAYS => ApiCheck::TYPE_STRING,
            ],
        ],
    ],
]);
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

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

920d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63a84b9b680bd78e5ce9e59937330e49e20c065b6d147ba2b0f246087a66aa7f?d=identicon)[reptily](/maintainers/reptily)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/reptily-api-check/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[sburina/laravel-whmcs-up

WHMCS API client and user provider for Laravel

271.3k](/packages/sburina-laravel-whmcs-up)

PHPackages © 2026

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