PHPackages                             mordisacks/laravel-force-https - 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. mordisacks/laravel-force-https

ActiveLibrary[Security](/categories/security)

mordisacks/laravel-force-https
==============================

Laravel middleware for forcing https connection

1.0.1(7y ago)37.1k1MITPHP

Since Sep 20Pushed 4y agoCompare

[ Source](https://github.com/MordiSacks/laravel-force-https)[ Packagist](https://packagist.org/packages/mordisacks/laravel-force-https)[ Docs](https://github.com/MordiSacks/laravel-force-https)[ RSS](/packages/mordisacks-laravel-force-https/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (1)

Laravel Force HTTPS Middleware
------------------------------

[](#laravel-force-https-middleware)

### Install

[](#install)

Require this package with composer using the following command:

```
composer require mordisacks/laravel-force-https
```

After updating composer, add the service provider to the `providers` array in `config/app.php`

```
MordiSacks\LaravelForceHttps\ServiceProvider::class,
```

**Laravel 5.5** uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

To install this package on only development systems, add the `--dev` flag to your composer command:

```
composer require --dev mordisacks/laravel-force-https
```

### Usage

[](#usage)

Just add `forceHttps` to your middleware list

```
Route::group(['middleware' => ['forceHttps']], function () {
    Route::get('/home', 'HomeController@index')->name('home');
});
```

Or in a controller

```
    public function __construct()
    {
        $this->middleware('forceHttps');
    }
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

Every ~0 days

Total

3

Last Release

2794d ago

Major Versions

0.0.1 → 1.0.02018-09-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/f843e1ac6ca3aabf914bae50226984d02b8def3482c8e826a7fcdc023c363fcd?d=identicon)[MordiSacks](/maintainers/MordiSacks)

---

Top Contributors

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

---

Tags

httpsmiddlewarelaravelsslforce

### Embed Badge

![Health badge](/badges/mordisacks-laravel-force-https/health.svg)

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

###  Alternatives

[daanra/laravel-lets-encrypt

A Laravel package to easily generate SSL certificates using Let's Encrypt

22650.9k](/packages/daanra-laravel-lets-encrypt)[acmephp/core

Raw implementation of the ACME protocol in PHP

38973.7k7](/packages/acmephp-core)[spatie/ssl-certificate-chain-resolver

SSL certificate chain resolver

3069.6k](/packages/spatie-ssl-certificate-chain-resolver)[kelunik/acme-client

Let's Encrypt / ACME client written in PHP for the CLI.

3933.9k1](/packages/kelunik-acme-client)[masterro/laravel-xss-filter

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

41254.5k](/packages/masterro-laravel-xss-filter)[acmephp/ssl

PHP wrapper around OpenSSL extension providing SSL encoding, decoding, parsing and signing features

141.2M4](/packages/acmephp-ssl)

PHPackages © 2026

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