PHPackages                             maurohmartinez/force-ssl-laravel - 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. maurohmartinez/force-ssl-laravel

ActiveLibrary[Security](/categories/security)

maurohmartinez/force-ssl-laravel
================================

A simple package to force SSL requests

v1.3.0(1y ago)1153MITPHPPHP ^8.0

Since May 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/maurohmartinez/force-ssl-laravel)[ Packagist](https://packagist.org/packages/maurohmartinez/force-ssl-laravel)[ RSS](/packages/maurohmartinez-force-ssl-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Force SSL for Laravel
=====================

[](#force-ssl-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/03b7fec1691170a439638c7e6626b516104fb48631904d90de8c2b06a957c0f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6175726f686d617274696e657a2f666f7263652d73736c2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maurohmartinez/force-ssl-laravel)[![Total Downloads](https://camo.githubusercontent.com/aa91e23e996b55fdc944a9aa6261f68961e93c5a4c5859c676421f400d7ac4b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6175726f686d617274696e657a2f666f7263652d73736c2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maurohmartinez/force-ssl-laravel)

A simple package to force SSL in Laravel applications.

Just add to your `.env` file the following line in those environments where you want to skip it (by default it is `true`).

```
   FORCE_SSL_ENABLED=true
```

Or publish the config file and edit it from there.

```
   php artisan migratephp artisan vendor:publish --provider="MHMartinez\ForceSsl\Providers\ForceSslServiceProvider"
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

636d ago

PHP version history (2 changes)v1.0.2PHP ^7.3|^8.0

v1.3.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/21192abc454e8b809201f9150490b1b6f694cfdf3e6494d04fb915b9fb1e697d?d=identicon)[maurohmartinez](/maintainers/maurohmartinez)

---

Top Contributors

[![maurohmartinez](https://avatars.githubusercontent.com/u/33960976?v=4)](https://github.com/maurohmartinez "maurohmartinez (6 commits)")

---

Tags

laravellaravel-packagemiddlewareredirectionssllaravelforce ssl

### Embed Badge

![Health badge](/badges/maurohmartinez-force-ssl-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/maurohmartinez-force-ssl-laravel/health.svg)](https://phpackages.com/packages/maurohmartinez-force-ssl-laravel)
```

###  Alternatives

[akaunting/laravel-firewall

Web Application Firewall (WAF) package for Laravel

999465.8k2](/packages/akaunting-laravel-firewall)[soved/laravel-gdpr

GDPR compliance with ease

299127.5k2](/packages/soved-laravel-gdpr)[masterro/laravel-xss-filter

Filter user input for XSS but don't touch other html

41254.5k](/packages/masterro-laravel-xss-filter)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)[nickurt/laravel-pwned-passwords

PwnedPasswords for Laravel 11.x/12.x/13.x

187.5k](/packages/nickurt-laravel-pwned-passwords)[dasundev/filament-access-secret

Secures access to Filament by requiring a secret key in the URL.

382.4k](/packages/dasundev-filament-access-secret)

PHPackages © 2026

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