PHPackages                             tempest-tools/moat - 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. [Database &amp; ORM](/categories/database)
4. /
5. tempest-tools/moat

ActiveLibrary[Database &amp; ORM](/categories/database)

tempest-tools/moat
==================

Middleware associated with Laravel Doctrine ACL. This middleware will check permissions for access to routes, based on the route name and the request type.

2.0.1(6y ago)02MITPHPPHP &gt;=7.1.0

Since Jun 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tempestwf/tempest-tools-moat)[ Packagist](https://packagist.org/packages/tempest-tools/moat)[ RSS](/packages/tempest-tools-moat/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (12)Used By (0)

Tempest Tools Moat
==================

[](#tempest-tools-moat)

This package allows you to easily place templates which draw on stored information about the user's request to laravel in order to check if a resource is allowed to be accessed by the current user.

The package used laravel-doctrine/acl at it’s core, however the functionality that was stored in laravel-doctrine/acl has been replaced due to performance concerns in the base package and errors that package had with phpunit.

The base package would retrieve and iterate all permissions available to a user on each request, which if used in an application that has a lot of permissions could be quite a drain on resources. I have replaced this with a simple query.

Examples given in the code are based on using the Tempest Tools Skeleton, so the routing examples may not look exactly as you are used to.

Please see the wiki for additional documentation.

Tempest Tools Moat can be seen in action in the Tempest Tools Skeleton:

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1.0
- laravel/framework = 5.3.\*,
- [Composer](https://getcomposer.org/).

\##Installation

After installing with composer make sure to add the middleware to your Kernel.php file: \\app\\Http\\Kernel.php

```
  protected $routeMiddleware = [
    'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
    'can'        => \Illuminate\Foundation\Http\Middleware\Authorize::class,
    'throttle'   => \Illuminate\Routing\Middleware\ThrottleRequests::class,
    'acl' => \TempestTools\Moat\Http\Middleware\Acl::class
  ];

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 89.7% 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 ~111 days

Recently: every ~194 days

Total

8

Last Release

2485d ago

Major Versions

1.0.1 → v2.0.0.x-dev2017-11-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/b272d429dbdcd0466fd676f26f771c41901238539e7b434df644260b28dc480c?d=identicon)[tempestwf](/maintainers/tempestwf)

---

Top Contributors

[![victoriousgaming](https://avatars.githubusercontent.com/u/6251305?v=4)](https://github.com/victoriousgaming "victoriousgaming (61 commits)")[![tempestwf](https://avatars.githubusercontent.com/u/27391853?v=4)](https://github.com/tempestwf "tempestwf (6 commits)")[![jerazo](https://avatars.githubusercontent.com/u/4166861?v=4)](https://github.com/jerazo "jerazo (1 commits)")

---

Tags

acldatabasedoctrinelaravelmiddlewareormmiddlewarelaraveldatabaseormdoctrineacltempest toolsaccess control layer

### Embed Badge

![Health badge](/badges/tempest-tools-moat/health.svg)

```
[![Health](https://phpackages.com/badges/tempest-tools-moat/health.svg)](https://phpackages.com/packages/tempest-tools-moat)
```

###  Alternatives

[laravel-doctrine/acl

ACL for Laravel and Doctrine

44445.3k7](/packages/laravel-doctrine-acl)[laravel-doctrine/migrations

Doctrine Migrations for Laravel

782.8M16](/packages/laravel-doctrine-migrations)[laravel-doctrine/extensions

Doctrine extensions for Laravel

493.5M19](/packages/laravel-doctrine-extensions)[laravel-doctrine/fluent

A fluent PHP mapping driver for Doctrine2.

43430.3k13](/packages/laravel-doctrine-fluent)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3516.7k3](/packages/wayofdev-laravel-cycle-orm-adapter)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

101.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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