golding / dns-zone-tokenizer
对DNS区域文件进行标记化,这就是全部。
v1.0.0
2022-05-19 10:53 UTC
Requires
- php: >=8.0
- golding/stringstream: ~v1.0
This package is not auto-updated.
Last update: 2024-09-20 21:37:31 UTC
README
对DNS区域文件进行标记化,这就是全部。
安装
composer require golding/dns-zone-tokenizer
使用
<?php use Golding\dns\Tokenizer; require(__DIR__ . '/vendor/autoload.php'); $config_path = realpath(__DIR__."/zone/exampleZone"); // path to your dns zone file $plain_config = file_get_contents($config_path); $tokenized = Tokenizer::tokenize($plain_config); // that's all, folks. All is done =)
开发者
重新生成文档
$ ./vendor/bin/phpdox
运行测试
$ wget https://phar.phpunit.de/phpunit.phar
$ php phpunit.phar --coverage-html coverage
$ php phpunit.phar --coverage-clover coverage.xml
许可证
在MIT许可证下发布。有关详细信息,请参阅打包的LICENSE文件。