PHPackages                             owenmelbz/https-enforcement - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. owenmelbz/https-enforcement

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

owenmelbz/https-enforcement
===========================

Laravel 5.x middleware to enforce https redirection for your app.

0.0.5(8y ago)252.6k2MITPHP

Since May 25Pushed 8y agoCompare

[ Source](https://github.com/OwenMelbz/https-enforcement)[ Packagist](https://packagist.org/packages/owenmelbz/https-enforcement)[ RSS](/packages/owenmelbz-https-enforcement/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Laravel 5 HTTPS Enforcement Agent
=================================

[](#laravel-5-https-enforcement-agent)

An automatic piece of middleware for Laravel 5.x, which will redirect users accessing non https urls, to the secure equivalent unless specified in the ignore list

Usage
-----

[](#usage)

1- Install via composer `composer require owenmelbz/https-enforcement`

2- Register the service provider - typically done inside the `app.php` providers array e.g `OwenMelbz\HttpsEnforcement\HttpsEnforcementServiceProvider::class`

3- Add `ENFORCE_HTTPS=true` to your application environment config e.g `.env`

4- Enjoy your stress free architecture agnostic redirects

Why?
----

[](#why)

Too often we've wasted time configuring SSL redirection, with proxy systems like CloudFlare, with apache development machines and nginx production, this removes all the headache and can simply be turned off and on at a whim.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90% 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 ~1 days

Total

5

Last Release

3269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/672fbfa799365c6b8e334b066ad674e06ed4c6d68536ad2fe9be3bd565b5c601?d=identicon)[OwenMelbz](/maintainers/OwenMelbz)

---

Top Contributors

[![OwenMelbz](https://avatars.githubusercontent.com/u/1094740?v=4)](https://github.com/OwenMelbz "OwenMelbz (9 commits)")[![lloy0076](https://avatars.githubusercontent.com/u/1174532?v=4)](https://github.com/lloy0076 "lloy0076 (1 commits)")

---

Tags

httpslaravel-5-packageredirecthttpslaravelredirectforceenforce

### Embed Badge

![Health badge](/badges/owenmelbz-https-enforcement/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[yaroslawww/laravel-force-https

Easy redirect to https for Laravel.

139.7k](/packages/yaroslawww-laravel-force-https)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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