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(5mo ago)0152proprietaryPHPPHP ^8.0

Since Dec 10Pushed 5mo 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 1mo ago

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 77% of packages

Maintenance72

Regular maintenance activity

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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

160d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/202a0dadbfb1854b49f12eb4b6eb3c1d2eeddebaf79feae169ae402386a5e9d8?d=identicon)[stellar-security-os](/maintainers/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

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[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

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

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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