berry/html
Build HTML templates directly in PHP with a fluent, type-safe element builder. Compose tags, attributes, classes, and children, then render to string. Great for minimal templating and dynamic UI patterns (e.g., HTMX) without context switching.
.php and .html files.{{ }} syntax).For Executives: "Berry/HTML lets our PHP team build UI components entirely in PHP—no more juggling HTML files or fighting templating syntax. This speeds up development for internal tools (e.g., dashboards) and aligns with our HTMX strategy for dynamic UIs without heavy JavaScript. It’s a lightweight, cost-effective alternative to React/Vue for projects where PHP is already the core. Early adopters like [Example Team] saw a 30% reduction in template-related bugs."
For Engineering: *"This package gives us:
<button> tags as button()->text('Click')—no more escaping or Blade syntax.hx-post attributes).counterButton()) like in React, but in PHP.berry/htmx).
Tradeoff: Steeper learning curve for designers used to HTML files, but devs will love the consistency. Start with a pilot for a non-critical feature (e.g., admin panel).*"For Designers/Non-Tech: "This won’t change how you design—you’ll still get HTML/CSS output—but developers will build pages faster by keeping everything in PHP. For example, a ‘card component’ can be defined once and reused everywhere, just like in modern web apps. If you’re used to Figma/HTML, this is a backend change only."
How can I help you explore Laravel packages today?