HTML Elements as PHP Classes
HTML5 elements as PHP classes with descriptive names. Added semantics and meta information such as allowed direct children, allowed direct parents and helper methods such as __toString() or setAttributes()
This library provides a way to work with HTML elements in PHP, offering an object-oriented approach that aligns with the HTML5 specifications. Built on top of DOM\HTMLDocument.