PHPackages                             coreblue/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. [Security](/categories/security)
4. /
5. coreblue/moat

ActiveLibrary[Security](/categories/security)

coreblue/moat
=============

Password protect your staging websites

v1.0(7y ago)028PHP

Since Oct 3Pushed 7y ago2 watchersCompare

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

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

Moat
====

[](#moat)

This package makes it easy to password protect your Laravel staging websites.

Installation
============

[](#installation)

You can install the package via composer:

```
composer require coreblue/moat
```

Setup
=====

[](#setup)

Register the Moat middleware in the application's route middleware groups.

```
//app/http/Kernel.php
protected $middlewareGroups = [
    'web' => [
        \CoreBlue\Moat\Middleware\ApplyMoat::class,
    ],
];
```

Usage
=====

[](#usage)

To get started with Moat run the following command.

```
php artisan moat:create
```

Once the create command has been run you will be able to run the following commands.

You can enable Moat via:

```
php artisan moat:up
```

You can disable Moat via:

```
php artisan moat:down
```

You can set a new password via:

```
php artisan moat:password
```

You can check the current status via:

```
php artisan moat:status
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Unknown

Total

1

Last Release

2781d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/864c0396e55795ccc90c9a15b7631fd5d6ee0df9f78fda98fc6dc74818099dd7?d=identicon)[scotthelps](/maintainers/scotthelps)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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