PHP code example of swichers / php-quickfort-parser

1. Go to this page and download the library: Download swichers/php-quickfort-parser 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/ */

    

swichers / php-quickfort-parser example snippets


 declare(strict_types=1);

use QuickFort\Parser\Dig;

$blueprint = <<<BLUEPRINT_END
#dig A simple dig blueprint
d,~,~,#
d,d,d,#
~,~,d,#
#,#,#,#
BLUEPRINT_END;

$parser = new Dig();
$parser->setBlueprint($blueprint);
$layers = $parser->getLayers();