PHPackages                             ilvalerione/laravel-https-redirect - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ilvalerione/laravel-https-redirect

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ilvalerione/laravel-https-redirect
==================================

Flexible https redirect for Laravel based applications

1.2.1(6y ago)234MITPHPPHP &gt;=7.1.0

Since Nov 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ilvalerione/laravel-https-redirect)[ Packagist](https://packagist.org/packages/ilvalerione/laravel-https-redirect)[ RSS](/packages/ilvalerione-laravel-https-redirect/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (16)Used By (0)

Laravel https redirect
======================

[](#laravel-https-redirect)

[![Build Status](https://camo.githubusercontent.com/ba289b706c2f6b07b5b306a90c728b70077c69cbe1e718a26136b74702fe90c9/68747470733a2f2f7472617669732d63692e6f72672f696c76616c6572696f6e652f6c61726176656c2d68747470732d72656469726563742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ilvalerione/laravel-https-redirect)[![Latest Stable Version](https://camo.githubusercontent.com/0a26405520e4f0dd76460deaf75a110e80d8a79b39fdac3753ee2dced6c503c1/68747470733a2f2f706f7365722e707567782e6f72672f696c76616c6572696f6e652f6c61726176656c2d68747470732d72656469726563742f762f737461626c65)](https://packagist.org/packages/ilvalerione/laravel-https-redirect)[![License](https://camo.githubusercontent.com/acc183d4595712310523648c9cdbeb1c13fbd3750703c9300431969a4fb6a95c/68747470733a2f2f706f7365722e707567782e6f72672f696c76616c6572696f6e652f6c61726176656c2d68747470732d72656469726563742f6c6963656e7365)](https://packagist.org/packages/ilvalerione/laravel-https-redirect)

- **Author:** Valerio Barbera -
- **Author Website:** www.inspector.dev

Flexible https redirect for Laravel based applications

Install
-------

[](#install)

`composer require ilvalerione/laravel-https-redirect`

Config
------

[](#config)

`php artisan vendor:publish --provider="Aventure\HttpsRedirect\HttpsRedirectServiceProvider"`

This command publish a new configuration file in your `config` directory to list all environment names that you want force to https:

```
return [
    'environments' => [
        // 'local',  '*'
]
```

Use
---

[](#use)

Add `HttpsMiddleware` middleware in your global middleware section:

```
class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    protected $middleware = [
        ...,

        \Aventure\HttpsRedirect\Middleware\HttpsCheck::class,
    ];

    ...
```

Use as Route-Middleware
-----------------------

[](#use-as-route-middleware)

In alternative you can add middleware as named middleware in your Kernel file:

```
class Kernel extends HttpKernel
{
    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    protected $routeMiddleware  = [
        ...,

        'https_redirect' => \Aventure\HttpsRedirect\Middleware\HttpsCheck::class,
    ];

    ...
```

And use it programmatically in your routes configuration:

```
Route::middleware('https_redirect')->group(function(){

    Route::view('example', 'example');

});
```

LICENSE
=======

[](#license)

This package are licensed under the [MIT](LICENSE) license.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Recently: every ~112 days

Total

14

Last Release

2384d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.0.0

1.2.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/320345fbe48c7cff2b3a25992c8207e959ae7817fb2fb97bb176dc6e559aacf5?d=identicon)[valerione](/maintainers/valerione)

---

Top Contributors

[![ilvalerione](https://avatars.githubusercontent.com/u/13559278?v=4)](https://github.com/ilvalerione "ilvalerione (51 commits)")

---

Tags

httpsmiddlewarelaravel

### Embed Badge

![Health badge](/badges/ilvalerione-laravel-https-redirect/health.svg)

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

###  Alternatives

[matthewbdaly/laravel-etag-middleware

A Laravel middleware for adding ETags to HTTP requests to improve response times

64326.0k2](/packages/matthewbdaly-laravel-etag-middleware)[tomschlick/request-migrations

HTTP Request Migrations

1844.5k](/packages/tomschlick-request-migrations)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[spinen/laravel-browser-filter

Filters http requests based on browser type.

2146.3k](/packages/spinen-laravel-browser-filter)[akhan619/laravel-ses-tracking

A Laravel artisan based package to create the AWS (SES + SNS) infrastructure to receive email event notifications with Http/Https endpoint.

149.9k](/packages/akhan619-laravel-ses-tracking)[akhan619/laravel-ses-event-manager

A Laravel package to manage incoming SES email events with http/s webhooks.

148.8k](/packages/akhan619-laravel-ses-event-manager)

PHPackages © 2026

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