PHPackages                             hazaveh/verify-domain - 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. hazaveh/verify-domain

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

hazaveh/verify-domain
=====================

Verify Domain Ownership with PHP

1.0.4(2y ago)2311.5k↑20.8%31MITPHPPHP &gt;=5

Since Oct 2Pushed 2y ago2 watchersCompare

[ Source](https://github.com/hazaveh/verify-domain)[ Packagist](https://packagist.org/packages/hazaveh/verify-domain)[ RSS](/packages/hazaveh-verify-domain/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (7)Used By (1)

 [![](https://camo.githubusercontent.com/b95d573b4d8aa4b9bcd5bfd78ad205ea2180b0f33eebdc7c4b83302142f7ab9d/68747470733a2f2f68617a617665682e6e65742f77702d636f6e74656e742f75706c6f6164732f7665726966792d646f6d61696e2e6a706567)](https://camo.githubusercontent.com/b95d573b4d8aa4b9bcd5bfd78ad205ea2180b0f33eebdc7c4b83302142f7ab9d/68747470733a2f2f68617a617665682e6e65742f77702d636f6e74656e742f75706c6f6164732f7665726966792d646f6d61696e2e6a706567)

VERIFY DOMAIN
=============

[](#verify-domain)

PHP Verify Domain lets you verify the ownership of a domain by validating uploaded **File Content**, **Meta Tags** and **TXT DNS records**. You might have seen similar behaviour when verifying your domain in services like "Google Search Console" and ...

You can learn more about Verify Domain package in this [blog post](https://hazaveh.net/2023/10/verify-domain-ownership-in-php/).

This library is compatible with php &gt; 5 and has almost zero runtime dependency.

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

[](#installation)

Simply run via composer:

```
composer require hazaveh/verify-domain

```

Usage
-----

[](#usage)

Simply instantiate the VerifyDomain Class or inject it using your DI container.

```
use Hazaveh\VerifyDomain\VerifyDomain;

$verify = new VerifyDomain();

/**
* Verifies if a TXT record with the value of "php-is-awesome" exists.
 */
$byDNS = $verify->verifyByDNS('hazaveh.net', 'php-is-awesome');

/**
* Verifies "https://hazaveh.net/verification.txt" with the content of "php-is-awesome" exists.
 */
$byFile = $verify->verifyByFile("hazaveh.net", 'verification.txt', "php-is-awesome");

/**
* Verifies '' exists on hazaveh.net
 */
$byMeta = $verify->verifyByMeta("hazaveh.net", 'verification', "verification-code-123");
```

Contribution
------------

[](#contribution)

Add something cool or fix a broken cup, run the tests and create a PR ❤️🚀

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~64 days

Total

5

Last Release

750d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12988865?v=4)[Mahdi Hazaveh](/maintainers/hazaveh)[@hazaveh](https://github.com/hazaveh)

---

Top Contributors

[![hazaveh](https://avatars.githubusercontent.com/u/12988865?v=4)](https://github.com/hazaveh "hazaveh (14 commits)")[![SurajDadral](https://avatars.githubusercontent.com/u/40318315?v=4)](https://github.com/SurajDadral "SurajDadral (1 commits)")

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/hazaveh-verify-domain/health.svg)

```
[![Health](https://phpackages.com/badges/hazaveh-verify-domain/health.svg)](https://phpackages.com/packages/hazaveh-verify-domain)
```

###  Alternatives

[desandro/imagesloaded

JavaScript is all like \_You images done yet or what?\_

8.9k449.7k1](/packages/desandro-imagesloaded)[rappasoft/laravel-livewire-tables

A dynamic table component for Laravel Livewire

2.0k2.9M31](/packages/rappasoft-laravel-livewire-tables)[szeidler/composer-patches-cli

28259.3k4](/packages/szeidler-composer-patches-cli)[wa72/html-pretty-min

HTML minifier and indenter that works on the DOM tree

22231.3k8](/packages/wa72-html-pretty-min)[veewee/reflecta

Unleash the Power of Optics in your code!

13422.0k7](/packages/veewee-reflecta)[apen/additional_reports

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).

14167.3k](/packages/apen-additional-reports)

PHPackages © 2026

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