PHPX

PHP DOM but intuitive
<?= $x->render($x->sup(c: $x->em(c: 'Hey')))
  • Prevents XSS like <script>alert("hi")</script> by default
  • Supports all HTML5 elements including custom elements
  • Lightweight pure PHP
  • PHP 8+
  • Great for writing code on the weekend