1. Go to this page and download the library: Download liutec/cfgtokenlib 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/ */
liutec / cfgtokenlib example snippets
$tokenParser = new TokenParser();
$tokens = $tokenParser->parseString($input);
$tokenParser = new TokenParser('|', null, '[[', ']]');
// also possible via setters
$tokenParser
->setFilterDelimiter('|')
->setTokenPrefix('[[')
->setTokenSuffix(']]')
;
$tokens = $tokenParser->parseString($input);
$tokenParser = new TokenParser('|', '/\[\[s+(.*?)\]\]/');
// also possible via setters
$tokenParser
->setFilterDelimiter('|')
->setTokenRegex('/\[\[s+(.*?)\]\]/')
;
$tokens = $tokenParser->parseString($input);