PHPackages                             huserg/laravel-expiration-mailer - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. huserg/laravel-expiration-mailer

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

huserg/laravel-expiration-mailer
================================

A simple package to implement a simple expiration mail notification for secrets or other reminders

0.1.9(1y ago)023[4 PRs](https://github.com/huserg/laravel-expiration-mailer/pulls)MITPHPPHP ^8.3CI passing

Since Dec 17Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/huserg/laravel-expiration-mailer)[ Packagist](https://packagist.org/packages/huserg/laravel-expiration-mailer)[ Docs](https://github.com/huserg/laravel-expiration-mailer)[ GitHub Sponsors](https://github.com/:HuserG)[ RSS](/packages/huserg-laravel-expiration-mailer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (14)Versions (11)Used By (0)

Laravel Expiration Mailer
=========================

[](#laravel-expiration-mailer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6a5bd0c4a79bc8bbd806fe9ac1fc19f07a67ac175d7dba0d99fb590c79e036b5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6875736572672f6c61726176656c2d65787069726174696f6e2d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/huserg/laravel-expiration-mailer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a3055cbb34e6701803c9d100d6d30e1baa5e77c983fa0fc12b0e081e4e7c7412/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6875736572672f6c61726176656c2d65787069726174696f6e2d6d61696c65722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/huserg/laravel-expiration-mailer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8ae035ce508953b9600d59bbe409705ad67d59fa5063fc457453250f0cf8eaa9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6875736572672f6c61726176656c2d65787069726174696f6e2d6d61696c65722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/huserg/laravel-expiration-mailer/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/34331c6629bacc0a1578b88bbb4d2dd253a18f33d680422936f25cfcf86bf701/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6875736572672f6c61726176656c2d65787069726174696f6e2d6d61696c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/huserg/laravel-expiration-mailer)

---

This repo is a Laravel package to send an email to users when a secret or any value is about to expire.

---

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

[](#installation)

You can install the package via composer:

```
composer require huserg/laravel-expiration-mailer
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="laravel-expiration-mailer-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-expiration-mailer-config"
```

This is the contents of the published config file:

```
return [
# for the moment it's empty
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="laravel-expiration-mailer-views"
```

Usage
-----

[](#usage)

Configure your route in `routes/web.php`

```
use Huserg\LaravelExpirationMailer\Http\Controllers\ExpirationMailerController;

Route::group(['prefix' => 'expirations'], function () {
    Route::get('', [ExpirationController::class, 'index'])->name('lem.expirations.index');
    Route::post('', [ExpirationController::class, 'store'])->name('lem.expirations.store');
    Route::post('{id}/force-send', [ExpirationController::class, 'forceSend'])->name('lem.expirations.force-send');
});
```

To override default 30 and 14 days schedule, add this to your `app/Console/Kernel.php`

```
protected function schedule(Schedule $schedule): void
{
    $schedule->command('expiration-mailer:send-email')->daily(); # or any other schedule
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [:author\_name](https://github.com/:author_username)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance69

Regular maintenance activity

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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 ~0 days

Total

6

Last Release

511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1459c21462afbe03843c6697d93f01e0c4ec1f32b197c200ec6694852c05539?d=identicon)[Husnet](/maintainers/Husnet)

---

Top Contributors

[![huser-g](https://avatars.githubusercontent.com/u/95212326?v=4)](https://github.com/huser-g "huser-g (32 commits)")[![huserg](https://avatars.githubusercontent.com/u/5238616?v=4)](https://github.com/huserg "huserg (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

laravelhusergexpiration-mailer

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/huserg-laravel-expiration-mailer/health.svg)

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[xammie/mailbook

Laravel Mail Explorer

482458.3k1](/packages/xammie-mailbook)[spatie/laravel-notification-log

Log notifications sent by your Laravel app

207902.8k](/packages/spatie-laravel-notification-log)[wnx/laravel-sends

Keep track of outgoing emails in your Laravel application.

200427.3k](/packages/wnx-laravel-sends)[spatie/laravel-discord-alerts

Send a message to Discord

151408.0k](/packages/spatie-laravel-discord-alerts)[backstage/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24157.5k5](/packages/backstage-laravel-mails)

PHPackages © 2026

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