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

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

winxaito/laravel-https
======================

Redirects http requests to https according to the configuration

v0.1.0(8y ago)129GPL-3.0-or-laterPHPPHP &gt;=7.0.0

Since Jan 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/WinXaito/laravel-https)[ Packagist](https://packagist.org/packages/winxaito/laravel-https)[ Docs](https://github.com/WinXaito/laravel-https)[ RSS](/packages/winxaito-laravel-https/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

*Si vous souhaitez lire ce fichier README en français, [cliquez ici](https://github.com/WinXaito/laravel-https/blob/master/README_fr.md).*

Laravel HTTPS redirection
=========================

[](#laravel-https-redirection)

This package aims to redirect your HTTP requests to HTTPS very simply.

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

[](#installation)

*NB: This package has not been tested below Laravel 5.5*

First, use the function below:

```
composer require winxaito/laravel-https

```

If you don't use auto-discovery, add the ServiceProvider to the providers array in `config/app.php`

```
WinXaito\LaravelHttpsRedirect\LaravelHttpsServiceProvider::class,
```

If you want to work with the configurations without going through an environment file, run the following command and then edit the `config/https-redirection.php`file

```
php artisan vendor:publish --provider="WinXaito\LaravelHttpsRedirect\LaravelHttpsServiceProvider"
```

How to use it ?
---------------

[](#how-to-use-it-)

This package works with environment variables in order of priority.
List of constants in order of priority:

- `HTTPS_FORCE`: If this value is true, then in all cases the requests will be redirected to *HTTPS*, otherwise we go to the following constant:
- `HTTPS_PROHIBIT`: If this constant is true, the queries will not be redirected, if it is false, then we go to the following constant:
- `APP_ENV`: If this constant is *production*, then we redirect to *HTTPS*, otherwise we go to the following constant:
- `APP_DEBUG`: If the application is not in debug mode, it is redirected to *HTTPS*, unless *HTTPS\_PROHIBIT* is true. If the application is in debug mode then the address will not be redirected.

By default if no environment variable is defined we have the following values:

- `HTTPS_FORCE = false`
- `HTTPS_PROHIBIT = false`
- `APP_ENV = production`
- `APP_DEBUG = false`

Therefore by default the redirection is enabled.

License
-------

[](#license)

The license is GNU GPL3, therefore if you use this you must respect the indications of the license. For proprietary software that would like to use this library without making their source code available, please contact me.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3032d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81b3eb6f94c493d6cdd9915efeacbd2c8b5595cb9a3442cefd90ad333d612568?d=identicon)[WinXaito](/maintainers/WinXaito)

---

Top Contributors

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

---

Tags

https-redirectlaravel-5-packagelaravel-httpshttpslaravelredirecthttps-redirect

### Embed Badge

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

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

###  Alternatives

[bepsvpt/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

5484.7M9](/packages/bepsvpt-secure-headers)[fsasvari/laravel-trailing-slash

The package that adds redirection with trailing slash to Laravel framework.

63164.3k](/packages/fsasvari-laravel-trailing-slash)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[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)[sockeon/sockeon

Framework-agnostic PHP WebSocket and HTTP server library with attribute-based routing and support for namespaces and rooms.

291.3k2](/packages/sockeon-sockeon)

PHPackages © 2026

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