golding / dns-zone-tokenizer
tokenize dns zone files and that's all, folks.
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-11-15 22:24:55 UTC
README
Tokenize dns zone files and that's all, folks.
Installation
composer require golding/dns-zone-tokenizer
Usage
<?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 =)
Developers
Regenerate documentation
$ ./vendor/bin/phpdox
Run tests
$ wget https://phar.phpunit.de/phpunit.phar
$ php phpunit.phar --coverage-html coverage
$ php phpunit.phar --coverage-clover coverage.xml
License
released under the MIT License. See the bundled LICENSE file for details.