PHPackages                             naviisml/laravel-suspendable - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. naviisml/laravel-suspendable

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

naviisml/laravel-suspendable
============================

Temporarily or permanently suspend models.

1.0.0(5mo ago)055MITPHP

Since Jan 21Pushed 5mo agoCompare

[ Source](https://github.com/naviisml/laravel-suspendable)[ Packagist](https://packagist.org/packages/naviisml/laravel-suspendable)[ RSS](/packages/naviisml-laravel-suspendable/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel API Guard
=================

[](#laravel-api-guard)

A lightweight Laravel package to authenticate requests using API keys via a custom guard.

Features
--------

[](#features)

- Auth guard: `auth:apikey`
- Secure access with public/private key headers
- Artisan command to generate keys

Installation
------------

[](#installation)

1. Install the package (`composer require naviisml/laravel-api-guard`)
2. Publish the configuration\* (`php artisan api-guard:install`)

*\*This step is optional.*

3. A auth guard will automatically be added if it doesn't exist in the `config/auth.php` configuration.

```
'guards' => [
    'apikey' => [
        'driver' => 'apikey',
        'provider' => 'users', // Optional
    ],
],
```

Usage
-----

[](#usage)

### Authentication Guard

[](#authentication-guard)

Use `auth:apikey` on API routes:

```
Route::middleware('auth:apikey')->group(function () {
    Route::get('/secure-endpoint', fn() => 'Access granted');
});
```

### Required Headers

[](#required-headers)

HeaderDescription`X-Public-Key`Public API key`X-Private-Key`Private API key### Generate Keys

[](#generate-keys)

Run the artisan command:

```
php artisan make:api-keys
```

###  Health Score

33

↑

LowBetter than 72% of packages

Maintenance71

Regular maintenance activity

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

163d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43450192?v=4)[Navi](/maintainers/naviisml)[@naviisml](https://github.com/naviisml)

---

Top Contributors

[![naviisml](https://avatars.githubusercontent.com/u/43450192?v=4)](https://github.com/naviisml "naviisml (1 commits)")

### Embed Badge

![Health badge](/badges/naviisml-laravel-suspendable/health.svg)

```
[![Health](https://phpackages.com/badges/naviisml-laravel-suspendable/health.svg)](https://phpackages.com/packages/naviisml-laravel-suspendable)
```

###  Alternatives

[himiklab/yii2-sortable-grid-view-widget

Sortable modification of standard Yii2 GridView widget

79361.2k7](/packages/himiklab-yii2-sortable-grid-view-widget)[nsavinov/nova-percent-field

A Laravel Nova field.

21280.0k](/packages/nsavinov-nova-percent-field)

PHPackages © 2026

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