PHPackages                             joskoomen/abstract-api - 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. joskoomen/abstract-api

Abandoned → [ypa/abstract-api](/?search=ypa%2Fabstract-api)Package

joskoomen/abstract-api
======================

Abstract package for extra security in API's

1.5.0(6y ago)01.4k1MIT

Since Apr 8Pushed 6y agoCompare

[ Source](https://github.com/your-personal-agency/laravel-abstract-api)[ Packagist](https://packagist.org/packages/joskoomen/abstract-api)[ RSS](/packages/joskoomen-abstract-api/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (11)Used By (1)

Laravel &amp; Lumen Abstract API Security
=========================================

[](#laravel--lumen-abstract-api-security)

### Laravel

[](#laravel)

1. Add the Service Provider to `config/app.php`

```
/*
 * Package Service Providers...
 */
\Ypa\AbstractApi\AbstractApiServiceProvider::class,

```

2. Run `php artisan vendor:publish` to publish the config file;
3. Add the `.env` variables and their values;
4. Add the middleware in `App\Http\Kernel.php` to `$routeMiddleware`

```
'abstract.api' => \Ypa\AbstractApi\AbstractApiMiddleware::class,

```

5. And i advice to add it to the `api` group in the same file:

```
'api' => [
    'throttle:60,1',
    'bindings',
    'abstract.api
],

```

6. For sending you can add the `AbstractApiValidationTrait` to your controller.
7. Right before your API request you can use the following method:

```
$form_params = $this->addTimeAndSignature(request()->all());

```

That's it!

### Lumen

[](#lumen)

1. Add the `.env` variables and their values;

```
YPA_ABSTRACT_API_TIME_DIFFERENCES=30
YPA_ABSTRACT_API_HASH_SECRET="${APP_KEY}"
YPA_ABSTRACT_API_HASHTYPE=sha512
YPA_ABSTRACT_API_DEBUG=true
YPA_ABSTRACT_API_DISABLE=false

```

2. Add the middleware in your bootstrap file.

```
$app->routeMiddleware([
    'abstract.api' => \Ypa\AbstractApi\AbstractApiMiddleware::class,
]);,

```

3. Add the middleware to your routes you want to secure like any other middleware in Lumen.
4. For sending you can add the `AbstractApiValidationTrait` to your controller.
5. Right before your API request you can use the following method:

```
$form_params = $this->addTimeAndSignature(request()->all());

```

That's it!

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Recently: every ~20 days

Total

9

Last Release

2369d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/720590?v=4)[Jos Koomen](/maintainers/joskoomen)[@joskoomen](https://github.com/joskoomen)

---

Top Contributors

[![joskoomen](https://avatars.githubusercontent.com/u/720590?v=4)](https://github.com/joskoomen "joskoomen (57 commits)")

### Embed Badge

![Health badge](/badges/joskoomen-abstract-api/health.svg)

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[team-reflex/discord-php

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

1.1k379.4k24](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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