PHPackages                             ziming/laravel-domain-health-check - 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-domain-health-check

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

ziming/laravel-domain-health-check
==================================

Whois Domain Health Check for Laravel Health and Oh Dear. May Support RDAP in future.

1.2(2mo ago)02.6k↓17%MITPHPPHP ^8.2CI passing

Since Nov 20Pushed 4mo agoCompare

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

READMEChangelog (3)Dependencies (30)Versions (7)Used By (0)

Domain Health Check for Laravel Health and Oh Dear
==================================================

[](#domain-health-check-for-laravel-health-and-oh-dear)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4f1e9e167189d0f3185a7b8934ccc6d71ac7db00f62f6f55b83d0f16ffef9eb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a696d696e672f6c61726176656c2d646f6d61696e2d6865616c74682d636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ziming/laravel-domain-health-check)[![GitHub Tests Action Status](https://camo.githubusercontent.com/59ac5dfcf2041ed7317b85825260e03ede5a8f8f31611c4f25c3c0ef0ed66914/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a696d696e672f6c61726176656c2d646f6d61696e2d6865616c74682d636865636b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ziming/laravel-domain-health-check/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6c8eb31709a6e160288ebff865f2a2603639c69dd6fa9ab1eb8aba4e5a956cb8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a696d696e672f6c61726176656c2d646f6d61696e2d6865616c74682d636865636b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ziming/laravel-domain-health-check/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f43724d5736284f0e62be44e135ae4b52fad2adca48947039ccad34c0e43cced/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a696d696e672f6c61726176656c2d646f6d61696e2d6865616c74682d636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ziming/laravel-domain-health-check)

Domain Health Check for [Spatie Laravel Health](https://github.com/spatie/laravel-health) Package. Which also works with [Oh Dear](https://ohdear.app/?via=laravel-health-domain-check) monitoring service.

It 1st attempts an RDAP lookup for the domain expiry date, if that fails (e.g. many TLDs do not support RDAP yet), it falls back to a WHOIS lookup.

This fills a missing gap in [Oh Dear](https://ohdear.app/?via=laravel-health-domain-check) as Oh Dear only supports RDAP domain expiry checks at the moment, which does not work for many TLDs.

So by using this package, you get to monitor your domain expiry dates in both Laravel Health and Oh Dear even if your domain TLD does not support RDAP.

In the future there may be more domain related health checks added to this package.

You may also wish to check out my other Laravel Health related packages that fills in the missing gaps in Laravel Health and Oh Dear monitoring:

- [Memory Usage Health Check](https://github.com/ziming/laravel-memory-health-check)

Support me
----------

[](#support-me)

You can donate to my GitHub sponsor or use my referral link for [Oh Dear](https://ohdear.app/?via=laravel-health-domain-check) so I get a small reward if you become a paid customer in the future. This comes at no extra cost to you and helps support my open source work.

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

[](#installation)

You can install the package via composer:

```
composer require ziming/laravel-domain-health-check
```

Usage
-----

[](#usage)

```
// In your Laravel Health Service Provider register() method

use Spatie\Health\Facades\Health;
use Ziming\LaravelDomainHealthCheckHealthCheck\DomainCheck;

Health::checks([
    DomainCheck::new()
        ->daily()
        ->domain('example.com') // by default, it uses your app.url config host if you did not call this method
        ->warnWhenDaysLeftToDomainExpiry(28)
        ->failWhenDaysLeftToDomainExpiry(7),
]);
```

If it works you will be getting the following in Laravel Health and [Oh Dear](https://ohdear.app/?via=laravel-health-domain-check)

[![Laravel Health Screenshot](https://private-user-images.githubusercontent.com/679513/517117664-2b53d8a4-43b9-426c-9126-b1951f90df97.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzIxNDU1NjQsIm5iZiI6MTc3MjE0NTI2NCwicGF0aCI6Ii82Nzk1MTMvNTE3MTE3NjY0LTJiNTNkOGE0LTQzYjktNDI2Yy05MTI2LWIxOTUxZjkwZGY5Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMjI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDIyNlQyMjM0MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02OTY0MjMyM2E0NDg1M2Q3NjBjNDQyYWY4NjMzN2YyZDM0OGQ5YjJhYjI5ODgzZDFjNzAyYTRhMzYzN2M0YWZlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.PhWLWTsdpR56K-qN_LiPeUzCXvcJtVOmxPk5eIPT6ss)](https://private-user-images.githubusercontent.com/679513/517117664-2b53d8a4-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zdCJ9.PgGKZZ1WQ26YcpPz1wS4fDJ0pc3W01Jpsh4gD07SAAg)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

44

—

FairBetter than 92% of packages

Maintenance81

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.9% 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 ~39 days

Total

4

Last Release

62d ago

Major Versions

0.1 → 1.02025-11-20

### 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 (26 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

domain-lookupdomain-lookupslaravellaravel-health-checklaravel-healthchecklaravel-healthchecksoh-dearohdearrdapwhoislaravelziminglaravel-domain-health-check

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ziming-laravel-domain-health-check/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[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)[ziming/laravel-email-sniper-link

Laravel package to generate email sniper links based on given email

1519.9k](/packages/ziming-laravel-email-sniper-link)

PHPackages © 2026

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