gemz/dns
Composer 安装命令:
composer require gemz/dns
包简介
Get simply DNS records
README 文档
README
Retrieve DNS records for a given domain. Under the hood the package uses https://github.com/reactphp/reactphp for concurrent dns queries.
Installation
You can install the package via composer:
composer require gemz/dns
Usage
use Gemz\Dns\Dns; // initialization $dns = new Dns('gemz.io'); $dns = Dns::for('gemz.io'); // supported record types // returns ["A", "CAA", "CNAME", "SOA", "TXT", "MX", "AAAA", "SRV", "NS", "PTR", "SSHFP"] $dns = Dns::for('gemz.io')->allowedRecordTypes(); // get results for all record types $dns = Dns::for('gemz.io')->records(); // get result for specific record(s) $dns = Dns::for('gemz.io')->records(['A', 'CNAME']); $dns = Dns::for('gemz.io')->records('A', 'MX', 'TXT'); // using a nameserver $dns = Dns::for('gemz.io')->useNameServer('example.gemz.io')->records(); // sanitizing domain $domain = Dns::for('https://gemz.io')->getDomain(); // gemz.io // record type results $dns = Dns::for('gemz.io')->records('A', 'NS'); // depending on the record type "data" will be a string or an array with different keys // result is an array in form of: [ "A" => [ ["ttl" => 21599, "data" => "<ip>"] ], "NS" => [ ["ttl" => 21599, "data" => "<nameserver1>"], ["ttl" => 21599, "data" => "<nameserver2>"], ], "MX" => [ ["ttl" => 21599, "data" => ["priority" => 10, "target" => "<mx1>"]], ["ttl" => 21599, "data" => ["priority" => 20, "target" => "<mx2>"]], ] ];
Testing
composer test
composer test-coverage
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email stefan@sriehl.com instead of using the issue tracker.
Credits
Support us
Gemz.io is maintained by Stefan Riehl. You'll find all open source projects on Gemz.io github.
License
The MIT License (MIT). Please see License File for more information.
gemz/dns 适用场景与选型建议
gemz/dns 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.12k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 04 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「dns」 「gemz」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 gemz/dns 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gemz/dns 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 gemz/dns 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An advanced PHP library for email validation with DNS checks and typo suggestions.
This package is an easy wrapper for the Piwik Device Detector
Unified API for compute, dns, objectstorage and other cloud services
Laravel-Security helps you secure your Laravel apps by setting various HTTP headers. it can help!
REST API client for Dynect
统计信息
- 总下载量: 13.12k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-18