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
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-02