PHPackages                             ziming/laravel-email-sniper-link - 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. ziming/laravel-email-sniper-link

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

ziming/laravel-email-sniper-link
================================

Laravel package to generate email sniper links based on given email

1.5(2mo ago)1519.9k↓29.2%1MITPHPPHP ^8.1CI passing

Since Jan 14Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ziming/laravel-email-sniper-link)[ Packagist](https://packagist.org/packages/ziming/laravel-email-sniper-link)[ Docs](https://github.com/ziming/laravel-email-sniper-link)[ GitHub Sponsors](https://github.com/ziming)[ RSS](/packages/ziming-laravel-email-sniper-link/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (28)Versions (12)Used By (0)

Laravel Email Sniper Link
=========================

[](#laravel-email-sniper-link)

[![Latest Version on Packagist](https://camo.githubusercontent.com/81e56adaa33490d3a8034a0079a0d6117c976a0283fb02c80eb9e3fde30312d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a696d696e672f6c61726176656c2d656d61696c2d736e697065722d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ziming/laravel-email-sniper-link)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9d36186ca2320ea582142406a54d65ce45b9f180685908ece49790a74f781aca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a696d696e672f6c61726176656c2d656d61696c2d736e697065722d6c696e6b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ziming/laravel-email-sniper-link/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ce27cd98d25cafa5df6b781c031a8027451b55a738bb3d97665dcbdab35906e7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a696d696e672f6c61726176656c2d656d61696c2d736e697065722d6c696e6b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ziming/laravel-email-sniper-link/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/40e8551d6e82477237243e22b71d2af2860cd186e1829bb136e954b7544ae80a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a696d696e672f6c61726176656c2d656d61696c2d736e697065722d6c696e6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ziming/laravel-email-sniper-link)

This package helps you generate a sniper link for your email. Which makes it a lot easier for people to find your email.

For a quick explainer on what is an email sniper link, you can check out this link below.

A common use case is for your verify email page.

This package currently generate email sniper links for

- Google Mail
- Outlook
- Yahoo Mail
- Proton Mail
- iCloud Mail

Support us
----------

[](#support-us)

You can make a donation or make a PR

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

[](#installation)

You can install the package via composer:

```
composer require ziming/laravel-email-sniper-link
```

Usage
-----

[](#usage)

```
use Ziming\LaravelEmailSniperLink\LaravelEmailSniperLink;

// This just do a quick guess based on the ending email address such as gmail.com, outlook.com, icloud.com etc.
LaravelEmailSniperLink::getSniperLinkQuick('receiver@gmail.com', 'optional-from-email-that-proton-mail-uses@gmail.com')

// This will do a more accurate guess by not only checking the ending email address but also the MX record of the email address
// if the email address domain is not 1 of the common ones.
// Which is more useful for business emails. But it does make network calls to fetch the MX records, so it is a little slower
LaravelEmailSniperLink::getSniperLink('receiver@gmail.com', 'optional-from-email@gmail.com')
```

The `LaravelEmailSniperLink` class has more static methods as well which might be useful for you.

Some helper functions are also available. For now there are 2.

```
// This just do a quick guess based on the ending email address such as gmail.com, outlook.com, icloud.com etc.
email_sniper_link_quick(string $receiverEmail, ?string $fromEmail = null);

// This will do a more accurate guess by not only checking the ending email address but also the MX record of the email address
// if the email address domain is not 1 of the common ones.
// Which is more useful for business emails. But it does make network calls to fetch the MX records, so it is a little slower
email_sniper_link(string $receiverEmail, ?string $fromEmail = null);
```

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)

- [ziming](https://github.com/ziming)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance87

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.7% 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 ~99 days

Recently: every ~184 days

Total

9

Last Release

62d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/20bbe714df709bd31994360fbba65adce9f28fd930c5590265d4d58c452fe32e?d=identicon)[ziming.opensource](/maintainers/ziming.opensource)

---

Top Contributors

[![ziming](https://avatars.githubusercontent.com/u/679513?v=4)](https://github.com/ziming "ziming (29 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")

---

Tags

hacktoberfestlaraveluser-experiencelaravelziminglaravel-email-sniper-link

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ziming-laravel-email-sniper-link/health.svg)

```
[![Health](https://phpackages.com/badges/ziming-laravel-email-sniper-link/health.svg)](https://phpackages.com/packages/ziming-laravel-email-sniper-link)
```

###  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)
