PHPackages                             aplr/laravel-bouncer - 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. aplr/laravel-bouncer

ActiveLibrary[API Development](/categories/api)

aplr/laravel-bouncer
====================

Rigorously restricts access to your apis.

v0.1.6(8y ago)0141PHPPHP &gt;=7.0

Since Apr 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/aplr/laravel-bouncer)[ Packagist](https://packagist.org/packages/aplr/laravel-bouncer)[ RSS](/packages/aplr-laravel-bouncer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (8)Used By (0)

🦍 Bouncer
=========

[](#-bouncer)

Introduction
------------

[](#introduction)

The `bouncer` package enables you to restrict access to your apis using application keys.

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

[](#installation)

Require the aplr/laravel-bouncer package in your composer.json and update your dependencies:

```
$ composer require aplr/laravel-bouncer
```

Usage
-----

[](#usage)

In order to check if requests to your api include a valid key, you can use the Bounce-middleware:

```
protected $middlewareGroups = [
    'web' => [
       // ...
    ],

    'api' => [
        // ...
        \Aplr\Bouncer\Bounce::class,
    ],
];
```

To generate a new key, simply use the following method:

```
use Aplr\Bodybuilder\Facades\Bouncer;

$key = Bouncer::createKey('My App');
```

You can manually check if a given key is valid by using the following method:

```
$valid = Bouncer::check('ZKEpwUSii5yvWt1xgLwHd8yguQGBZtrSi39hXFFd');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

7

Last Release

2926d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1723f152d0d0015ac9fd0ee662732f276ac4fe314c245f6dad7a710155e75bb9?d=identicon)[aplr](/maintainers/aplr)

---

Top Contributors

[![aplr](https://avatars.githubusercontent.com/u/1051396?v=4)](https://github.com/aplr "aplr (9 commits)")

---

Tags

apilaravelaccessbouncer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aplr-laravel-bouncer/health.svg)

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)

PHPackages © 2026

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