schneespur/release/schneespur-1.0.2/vendor/sabberworm/php-css-parser/bin/quickdump.php
Michael 7288b93500 Release v1.0.2: diagnostic infrastructure core
Add neutral diagnostic framework for future reporting modules:
- DiagnosticReporterInterface, Registry, Manager, PayloadSanitizer
- Laravel exception hook in bootstrap/app.php
- Module permission declarations (requires_permissions in module.json)
- Core diagnostic report points (module boot/install/update failures)
- Module documentation update (moduldoku.md)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-18 16:54:11 +00:00

29 lines
610 B
PHP
Executable file

#!/usr/bin/env php
<?php
declare(strict_types=1);
use Sabberworm\CSS\Parser;
use function Safe\file_get_contents;
/**
* This script is used for generating the examples in the README.
*/
require_once(__DIR__ . '/../vendor/autoload.php');
$source = file_get_contents('php://stdin');
$parser = new Parser($source);
$document = $parser->parse();
echo "\n" . '#### Input' . "\n\n```css\n";
print $source;
echo "\n```\n\n" . '#### Structure (`var_dump()`)' . "\n\n```php\n";
\var_dump($document);
echo "\n```\n\n" . '#### Output (`render()`)' . "\n\n```css\n";
print $document->render();
echo "\n```\n";