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(1y ago)238.6k↓36.4%21MITPHPPHP &gt;=5

Since Oct 2Pushed 1y 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 1mo ago

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

34

—

LowBetter than 77% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity34

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

704d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87c0c49081a79a456bf9730ec426e840236cf7ed3ef0596fe31f62c45b0fcf38?d=identicon)[hazaveh](/maintainers/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

[pedroborges/meta-tags

HTML meta tags generator for PHP.

4628.6k1](/packages/pedroborges-meta-tags)[indragunawan/facade-bundle

Support Facades for Symfony services.

1713.0k](/packages/indragunawan-facade-bundle)

PHPackages © 2026

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