ltd-beget / dns-zone-tokenizer
tokenize dns zone files and that's all, folks.
Installs: 58 281
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 24
Forks: 5
Open Issues: 7
Requires
- php: >=7.0
- ltd-beget/stringstream: ^1.0 || ^2.0
Requires (Dev)
- ext-json: *
- phpunit/phpunit: ^8.5.1
- tideways/profiler: ^2.0.1
This package is auto-updated.
Last update: 2024-11-15 18:53:40 UTC
README
Tokenize dns zone files and that's all, folks.
Installation
composer require ltd-beget/dns-zone-tokenizer
Usage
<?php use LTDBeget\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.