PHPackages                             assurdeal/sail-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. assurdeal/sail-https

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

assurdeal/sail-https
====================

Enable https on Laravel sail powered apps.

v0.1.1(3y ago)34.8kMITPHPPHP ^8.1|^8.2

Since Mar 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/assurdeal/laravel-sail-https)[ Packagist](https://packagist.org/packages/assurdeal/sail-https)[ RSS](/packages/assurdeal-sail-https/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Laravel Sail Https
==================

[](#laravel-sail-https)

[![Latest Version on Packagist](https://camo.githubusercontent.com/78d68c4a2896b15f04c173a783953dd6944b307c9b3f7f34f1defeb979c9e26b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61737375726465616c2f7361696c2d68747470732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/assurdeal/sail-https)[![GitHub Tests Action Status](https://camo.githubusercontent.com/3bb5f3f43f8e8c5223799cec0b785f8b2b5b1546c1b29fca15b0eaac9409699e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61737375726465616c2f6c61726176656c2d7361696c2d68747470732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/assurdeal/laravel-sail-https/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e4187d46ea81425f4b54b82da4bf0295650954e55b0a00499d5d83712921bf45/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f61737375726465616c2f6c61726176656c2d7361696c2d68747470732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/assurdeal/laravel-sail-https/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/75a74a661f19d2b39cb55576599785ca6fdda55be46a17d1bc4285c0a6e4218b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61737375726465616c2f7361696c2d68747470732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/assurdeal/sail-https)

This package allows you to use HTTPS in your Laravel Sail development environment.

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

[](#installation)

You can install the package via composer:

```
composer require assurdeal/sail-https --dev
```

You can publish the config file with:

```
php artisan vendor:publish --tag="sail-https-config"
```

Usage
-----

[](#usage)

Add your authorized domains to your `.env` file:

```
SAIL_HTTPS_AUTHORIZED_DOMAINS=example.text,example2.test
```

Add the following to your `docker-compose.yml` file:

```
volumes:
  sail-caddy:
    driver: local
```

```
### Caddy Server reverse proxy ############################
caddy:
  image: caddy:latest
  restart: unless-stopped
  ports:
    - '${APP_SSL_PORT:-443}:443'
  volumes:
    - './vendor/assurdeal/sail-https/.docker/caddy/Caddyfile:/etc/caddy/Caddyfile'
    - sail-caddy:/data
    - sail-caddy:/config
  networks:
    - sail
```

Set up SSL certificate
----------------------

[](#set-up-ssl-certificate)

First get the Caddy container ID

```
docker ps | grep caddy
```

Then copy the Certificate from the Container

```
docker cp {container_id}:/config/caddy/pki/authorities/local/root.crt ~/Desktop
```

### MacOS

[](#macos)

Finally, open up "Keychain Access.app" and drag and drop the certificate into the "login" keychain. Open the certificate (it should be called something like "Caddy Local Authority") and configure it to "Always Trust".

### Windows

[](#windows)

1. To add, use the command: certutil -addstore -f "ROOT" root.crt
2. To remove, use the command: certutil -delstore "ROOT" serial-number-hex

### Linux (Ubuntu, Debian)

[](#linux-ubuntu-debian)

1. To add:
    - Copy your CA to dir `/usr/local/share/ca-certificates/`
    - Use command: `sudo cp root.crt /usr/local/share/ca-certificates/root.crt`
    - Update the CA store: `sudo update-ca-certificates`
2. To remove:
    - Remove your CA.
    - Update the CA store: `sudo update-ca-certificates --fresh`

**Note:** Restart Kerio Connect to reload the certificates in the 32-bit versions or Debian 7.

### Linux (CentOs 6)

[](#linux-centos-6)

1. Install the ca-certificates package: `yum install ca-certificates`
2. Enable the dynamic CA configuration feature: `update-ca-trust force-enable`
3. Add it as a new file to /etc/pki/ca-trust/source/anchors/: `cp root.crt /etc/pki/ca-trust/source/anchors/`
4. Use command: `update-ca-trust extract`

### Linux (CentOs 5)

[](#linux-centos-5)

Append your trusted certificate to file /etc/pki/tls/certs/ca-bundle.crt

`cat root.crt >>/etc/pki/tls/certs/ca-bundle.crt`

**Note:** Restart Kerio Connect to reload the certificates in the 32-bit version.

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

Big Thanks to all developers who worked hard to create something amazing!

Creator
-------

[](#creator)

[![Percy Mamedy](https://camo.githubusercontent.com/209b20c0fcf36bda6ce4e0c8e26a91d6ad79d6c17592eef0d1fd23c175a5eddf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d50657263792532304d616d6564792d6f72616e67652e737667)](https://twitter.com/PercyMamedy)

Twitter: [@PercyMamedy](https://twitter.com/PercyMamedy)
GitHub: [percymamedy](https://github.com/percymamedy)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

1158d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3db0a14dead2c0a8eec8526b1cfa43aabff2e4cde044fefb9d4ddccb0fbc8128?d=identicon)[percymamedy](/maintainers/percymamedy)

---

Top Contributors

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

---

Tags

devlaravellaravel-sailtoolsphphttpslaravelsaildev-toolsassurdeal

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/assurdeal-sail-https/health.svg)

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

###  Alternatives

[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[napp/xray-laravel

AWS X-Ray for Laravel applications.

61407.3k](/packages/napp-xray-laravel)[percymamedy/laravel-dev-booter

Boost your Laravel app by registering Prod services only on Prod.

35320.7k1](/packages/percymamedy-laravel-dev-booter)[tapp/filament-google-autocomplete-field

Filament plugin that provides a Google Autocomplete field

3098.1k](/packages/tapp-filament-google-autocomplete-field)[tzookb/tbmsg

users messaging system

10917.1k](/packages/tzookb-tbmsg)[mindtwo/native-enum

Package for using native php enums.

2626.0k1](/packages/mindtwo-native-enum)

PHPackages © 2026

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