PHP code example of allmarkedup / dayglo

1. Go to this page and download the library: Download allmarkedup/dayglo 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/ */

    

allmarkedup / dayglo example snippets





use Amu\Dayglo\Parser;
use Amu\Dayglo\Loader;
use Amu\Dayglo\ParserCollection;

// Create collection with the parsers , __DIR__ . '/data');

// load and parse data from a JSON file
$file = $loader->fetch('example.json');
$data = $file->getData();

// load and parse data from a YAML file
$file = $loader->fetch('test.yaml');
$data = $file->getData();