Skip to content
Dnszone file lexical parser
PHP DIGITAL Command Language Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/LTDBeget/dns
tests
zone
.gitignore composer changes Apr 4, 2016
LICENSE
README.md cosmetic Apr 13, 2016
composer.json
phpunit.xml

README.md

Php dns-zone-tokenizer

Latest Stable Version Total Downloads Scrutinizer Code Quality Code Coverage Build Status Documentation Documentation License MIT

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.

You can’t perform that action at this time.