PHPackages                             blixx/forcehttps - 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. blixx/forcehttps

ActiveLibrary[Security](/categories/security)

blixx/forcehttps
================

Forces HTTPS for your Laravel project

030PHP

Since May 10Pushed 7y agoCompare

[ Source](https://github.com/josseblixx/forcehttps)[ Packagist](https://packagist.org/packages/blixx/forcehttps)[ RSS](/packages/blixx-forcehttps/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Blixx/ForceHttps
================

[](#blixxforcehttps)

This package is work in progress
--------------------------------

[](#this-package-is-work-in-progress)

### Installation instructions

[](#installation-instructions)

#### Step 1: Install package

[](#step-1-install-package)

`composer require blixx/forcehttps`

#### Step 2: Add to Web middleware in app/Http/Kernel.php:

[](#step-2-add-to-web-middleware-in-apphttpkernelphp)

```
protected $middlewareGroups = [
'web' => [
    ...
    \Blixx\ForceHttps\Middleware\ForceHttpsMiddleware::class,
],

```

#### Step 3: Set your env to live in the .env file

[](#step-3-set-your-env-to-live-in-the-env-file)

This package will only run in live or staging mode, so please set your live environment properly:

`APP_ENV=live`

#### You're set!

[](#youre-set)

This package is work in progress
--------------------------------

[](#this-package-is-work-in-progress-1)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/494657dfc8131e8e29eb325da3233e4ec152b789161134ca6ca618abfcc0a5bc?d=identicon)[josseblixx](/maintainers/josseblixx)

### Embed Badge

![Health badge](/badges/blixx-forcehttps/health.svg)

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

###  Alternatives

[mews/purifier

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

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

PHP Elliptic Curve Cryptography library

24820.0k36](/packages/paragonie-ecc)

PHPackages © 2026

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