PHPackages                             vendor\_slug/package\_slug - 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. vendor\_slug/package\_slug

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

vendor\_slug/package\_slug
==========================

This is my package LaravelHttps

1.1.1(3y ago)41.1kMITPHPPHP ^7.3|^8.0

Since May 1Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Benjaber-98/laravel-https)[ Packagist](https://packagist.org/packages/vendor_slug/package_slug)[ Docs](https://github.com/Benjaber-98/laravel-https)[ RSS](/packages/vendor-slug-package-slug/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

Laravel HTTPS Checker
=====================

[](#laravel-https-checker)

Laravel Https is package is created to check for Secure HTTP requests. Laravel Https provides a middleware to force redirection to HTTPS Protocol.

[![Latest Version on Packagist](https://camo.githubusercontent.com/7530d3ee632ba19befc5ecbee68a4b880d85c25bde92474639d42eddb296a7d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62656e6a616265722d39382f6c61726176656c2d68747470732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/benjaber-98/laravel-https)[![Total Downloads](https://camo.githubusercontent.com/aebb2d75ea473d48d62ff3e3102b844f5c85da8b2a49e8e63ba6960b76fae5f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62656e6a616265722d39382f6c61726176656c2d68747470732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/benjaber-98/laravel-https)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require benjaber-98/laravel-https
```

You can publish the config file with:

```
php artisan vendor:publish
```

Then choose the number of package service provider from the list.

This is the contents of the published config file:

```
 env('FORCE_HTTPS_IN_LOCAL', false),
];
```

By default package is disabled in local environment, if you want to turn it on you can set `FORCE_HTTPS_IN_LOCAL` in `.env` file like this:

```
FORCE_HTTPS_IN_LOCAL=true
```

### Usage

[](#usage)

##### Basic Usage:

[](#basic-usage)

- Add `\Benjaber98\LaravelHttps\Middlewares\ForceHttpMiddleware::class` to your Kernel file like this:

```
// app/Http/Kernel.php

...

//use it globally for all requests
protected $middleware = [
     ...
    \Benjaber98\LaravelHttps\Middlewares\ForceHttpMiddleware::class,
];

...

// Or use it globally for all web requests
protected $middlewareGroups = [
   'web' => [
       ...
       \Benjaber98\LaravelHttps\Middlewares\ForceHttpMiddleware::class,
   ],

...
//Or register it to use in routes
protected $routeMiddleware = [
   ...
   'force_https' => \Benjaber98\LaravelHttps\Middlewares\ForceHttpMiddleware::class,
];
```

###### Route Group Example:

[](#route-group-example)

```
    Route::group(['middleware' => ['force_https']], function () {
        Route::get('/', ['PageController', 'index']);
    });
```

###### Individual Route Examples:

[](#individual-route-examples)

```
    Route::get('/', ['PageController', 'welcome'])->middleware('force_https');
```

##### From Controller File:

[](#from-controller-file)

- You can include the `force_https` middleware in the constructor of your controller file.

###### Controller File Example:

[](#controller-file-example)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Mahmoud Ben Jabir](https://github.com/Benjaber-98)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

3

Last Release

1196d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c2aaaf8743d4d1a6bbe4cc4aaa72ba50e941c7523e2c1f243e3d9a35d55397?d=identicon)[Benjaber-98](/maintainers/Benjaber-98)

---

Top Contributors

[![Benjaber-98](https://avatars.githubusercontent.com/u/32901098?v=4)](https://github.com/Benjaber-98 "Benjaber-98 (5 commits)")

---

Tags

laravelLaravel HttpsBenjaber-98

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vendor-slug-package-slug/health.svg)

```
[![Health](https://phpackages.com/badges/vendor-slug-package-slug/health.svg)](https://phpackages.com/packages/vendor-slug-package-slug)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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