PHP code example of kevinbaubet / kss-php-markup

1. Go to this page and download the library: Download kevinbaubet/kss-php-markup 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/ */

    

kevinbaubet / kss-php-markup example snippets




guide = new \Kss\Parser('public/stylesheets');

$section = $styleguide->getSection('Lists - Primary');
$markup = new \Kss\Markup($section);

echo $markup->getNormal();
// echoes <ul class="list list--primary">...</ul>

$markup->flushcache();
// clean all markup cache, if enabled



$options = new \StdClass;
$options->cache = true;
$options->urlPrefix = 'http://site.com';

$markup = new \Kss\Markup($section, $options);