hazaveh/verify-domain 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hazaveh/verify-domain

最新稳定版本:1.0.4

Composer 安装命令:

composer require hazaveh/verify-domain

包简介

Verify Domain Ownership with PHP

README 文档

README

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.

This library is compatible with php > 5 and has almost zero runtime dependency.

Installation

Simply run via composer:

composer require hazaveh/verify-domain

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 '<meta name="verification" content="verification-code-123">' exists on hazaveh.net
 */
$byMeta = $verify->verifyByMeta("hazaveh.net", 'verification', "verification-code-123");

Contribution

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

统计信息

  • 总下载量: 7.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 23
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 23
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-02