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 2w 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

Maturity38

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

[phpids/phpids

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

791150.0k2](/packages/phpids-phpids)[paragonie/ecc

PHP Elliptic Curve Cryptography library

25866.3k44](/packages/paragonie-ecc)[nicobleiler/php-passphrase

Passphrase generator with Laravel integration, inspired by Bitwarden. Uses the EFF long word list by default with support for custom wordlists.

4912.6k](/packages/nicobleiler-php-passphrase)[dwgebler/encryption

Encryption wrapper for PHP using libsodium — simple API for symmetric and asymmetric encryption, password hashing, digital signing, and message authentication.

317.5k](/packages/dwgebler-encryption)

PHPackages © 2026

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