PHP code example of golding / dns-zone-tokenizer

1. Go to this page and download the library: Download golding/dns-zone-tokenizer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

golding / dns-zone-tokenizer example snippets



    use Golding\dns\Tokenizer;
    
    ne/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 =)

shell
$ php phpunit.phar --coverage-html coverage
shell
$ php phpunit.phar --coverage-clover coverage.xml