PHPackages                             stellarsecurity/laravel-hardening - 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. stellarsecurity/laravel-hardening

ActiveLibrary[Security](/categories/security)

stellarsecurity/laravel-hardening
=================================

Stellar Security hardening guard for Laravel (blocks APP\_DEBUG=true on production-like hosts).

v1.0.0(6mo ago)0203proprietaryPHPPHP ^8.0

Since Dec 10Pushed 6mo agoCompare

[ Source](https://github.com/StellarSecurity-Packages/stellar-laravel-hardening)[ Packagist](https://packagist.org/packages/stellarsecurity/laravel-hardening)[ RSS](/packages/stellarsecurity-laravel-hardening/feed)WikiDiscussions main Synced today

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

stellar-laravel-hardening
=========================

[](#stellar-laravel-hardening)

Tiny Laravel package that protects you from pushing `APP_DEBUG=true` to anything that *smells* like production.

What it does
------------

[](#what-it-does)

- Looks at:
    - `APP_ENV` / `config('app.env')`
    - `APP_DEBUG` / `config('app.debug')`
    - Current HTTP host
    - `WEBSITE_SITE_NAME` (Azure App Service)
- If the environment is "production-like" and debug is enabled, it:
    - Logs a critical message
    - Aborts with HTTP 500

Install
-------

[](#install)

```
composer require stellarsecurity/laravel-hardening
```

The service provider is auto-discovered.

Publish the config if you want to tweak the rules:

```
php artisan vendor:publish --tag=config --provider="Stellar\LaravelHardening\Providers\StellarHardeningServiceProvider"
```

Then edit `config/stellar_hardening.php`.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance66

Regular maintenance activity

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

207d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150491881?v=4)[Bob](/maintainers/stellar-security-os)[@stellar-security-os](https://github.com/stellar-security-os)

---

Top Contributors

[![bleko1234](https://avatars.githubusercontent.com/u/14978903?v=4)](https://github.com/bleko1234 "bleko1234 (2 commits)")

### Embed Badge

![Health badge](/badges/stellarsecurity-laravel-hardening/health.svg)

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

###  Alternatives

[mews/purifier

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

2.0k18.7M143](/packages/mews-purifier)[paragonie/ecc

PHP Elliptic Curve Cryptography library

24820.0k39](/packages/paragonie-ecc)

PHPackages © 2026

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