first commit

This commit is contained in:
Dave Umrysh
2021-02-26 12:53:56 -07:00
commit dc8b19aade
2373 changed files with 374265 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env php
<?php
require_once(dirname(__FILE__).'/bootstrap.php');
$sSource = file_get_contents('php://stdin');
$oParser = new Sabberworm\CSS\Parser($sSource);
$oDoc = $oParser->parse();
echo "\n".'#### Input'."\n\n```css\n";
print $sSource;
echo "\n```\n\n".'#### Structure (`var_dump()`)'."\n\n```php\n";
var_dump($oDoc);
echo "\n```\n\n".'#### Output (`render()`)'."\n\n```css\n";
print $oDoc->render();
echo "\n```\n";