PHP code example of goetas / fo-simil-css
1. Go to this page and download the library: Download goetas/fo-simil-css 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/ */
goetas / fo-simil-css example snippets
$xml = new DOMDocument("1.0", "UTF-8");
$xml->load("file.fo");
$css = new FoSimilCss();
$css->applyCss($xml, "style.css");
$xml = new DOMDocument("1.0", "UTF-8");
$xml->load("file.fo");
$css = new FoSimilCss();
$css->applyXmlCss($xml, "style.xml");