PHP code example of elnebuloso / bundler-markup

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

    

elnebuloso / bundler-markup example snippets


$stylesheetMarkup = new StylesheetMarkup();
$stylesheetMarkup->setHost('./');
$stylesheetMarkup->setDevelopment(true);
$stylesheetMarkup->setMinified(true);
$stylesheetMarkup->setVersionized(true);

echo $stylesheetMarkup->getMarkup('stylesheetFoo');

$javascriptMarkup = new JavascriptMarkup();
$javascriptMarkup->setHost('./');
$javascriptMarkup->setDevelopment(true);
$javascriptMarkup->setMinified(true);
$javascriptMarkup->setVersionized(true);

echo $javascriptMarkup->getMarkup('javascriptFoo');