spatie/html-element
Generate dynamic HTML in PHP with a hyperscript-style API plus Emmet-like selectors. Build elements and attributes with a simple render helper (often wrapped as el()) to produce nested markup cleanly and programmatically, ideal for small view components.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/period | 0.85 | Immutable date period objects for PHP with powerful comparison tools. Create periods from any DateTime (including Carbon), then calculate overlaps, gaps, intersections, differences, containment, and other complex comparisons across two or many periods. | 1,694 | 1,697 | 76 | 154K | 0 | 19.8 | 27.1 | MIT | 3 years ago | |
| spatie/once | 0.84 | A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work. | 1,438 | 1,444 | 61 | 264K | 0 | 24.2 | 33.9 | MIT | 6 months ago | |
| 21torr/html-builder | 0.84 | Fluent HTML builder for Laravel/PHP. Programmatically compose tags, attributes, and nested elements with a clean API to generate consistent markup without mixing large HTML strings into your views or controllers. | 1 | 1 | 1 | 636 | 0 | 0.3 | 34.5 | MIT | 3 years ago | |
| spatie/laravel-html | 0.84 | Generate HTML in Laravel with a clean, readable API. Build elements dynamically and compose them easily, including form fields that automatically pull values from models, session data, or defaults. Includes a convenient Html facade/alias for quick use. | 0 | 839 | — | 328K | — | 31.2 | 40.5 | — | — | |
| apie/html-builders | 0.84 | HTML builder utilities for the Apie ecosystem. Provides internal components to generate and compose HTML fragments in PHP, used by other Apie packages. Developed in the Apie monorepo; limited standalone documentation available. | 0 | 0 | 0 | 14 | 0 | 0.0 | 19.8 | MIT | — | |
| spatie/blink | 0.84 | spatie/blink is a tiny in-memory cache for PHP apps. Store values for the current request to avoid repeated work like duplicate queries or expensive calculations. Simple API, no persistence—perfect for per-request memoization in Laravel and beyond. | 167 | 167 | 18 | 186K | 0 | 5.0 | 42.1 | MIT | 2 years ago | |
| spatie/color | 0.83 | PHP library for color parsing, conversion, and comparison. Supports CSS named colors plus RGB/RGBA/ARGB, Hex, HSL/HSLA, HSB, CMYK, CIELab, and XYZ. Includes WCAG contrast ratio and Delta E distances (CIE76, CIE94, CIEDE2000). | 0 | 384 | — | 748K | — | 24.9 | 51.0 | — | — | |
| berry/html | 0.82 | 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. | 0 | 0 | 0 | 205 | 1 | 0.1 | 31.9 | MIT | — | |
| spatie/url | 0.82 | Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. | 739 | 752 | 60 | 413K | 0 | 12.4 | 37.9 | MIT | 2 years ago | |
| anh/markup-bundle | 0.82 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| s9e/text-formatter | 0.82 | PHP text formatting library with plugin support for BBCode, Markdown, HTML, and more. Includes predefined bundles, extensive documentation, and a JavaScript port for client-side preview and demos. Install via Composer and integrate customizable parsing/rendering. | 0 | 250 | — | 57K | — | 21.7 | 36.9 | — | — | |
| becklyn/html-builder | 0.82 | Lightweight PHP HTML builder for composing elements and attribute strings. Create HtmlElement nodes, render with escaping by default, support boolean/null/false attribute rules, and inject trusted raw HTML via SafeMarkup when needed. | 0 | 2 | — | 175 | — | 1.8 | 24.6 | — | — | |
| zendframework/zendxml | 0.81 | ZendXml provides secure XML scanning/loading for PHP to help prevent XXE and XML entity expansion (XEE) attacks. It disables external entity loading and rejects documents using ENTITY declarations, returning SimpleXMLElement or DOMDocument. Repository abandoned; moved to laminas/laminas-xml. | 29 | 30 | 11 | 25K | 0 | 0.8 | 28.4 | BSD-3-Clause | 7 years ago | |
| aura/html | 0.81 | HTML escapers and helpers for any PHP template/view layer, including tag builders and form input helpers. Easy to use via a HelperLocatorFactory; built-in helpers escape values appropriately and you can register custom helpers via the HelperLocator. | 52 | 53 | 22 | 4K | 0 | 3.9 | 26.1 | BSD-2-Clause | 4 years ago | |
| devanoxltd/php-html-parser | 0.81 | Lightweight PHP HTML parser with jQuery-style CSS selectors. Load HTML from strings or files, handle imperfect markup, and traverse nodes (attributes, innerHtml, siblings). Ideal for quick web scraping and DOM extraction in PHP 7.2–7.4. | 0 | 0 | 0 | 1 | 0 | 5.3 | 4.3 | MIT | 9 months ago | |
| spatie/laravel-blade | 0.81 | Add Blade to any PHP project with the standalone Blade engine from Spatie. Compile and render Blade templates outside Laravel, with an easy API, caching support, and configurable view paths—ideal for small apps, packages, or custom tooling. | 55 | 54 | 10 | 2 | 0 | 0.9 | 0.2 | MIT | 8 years ago | |
| pelago/emogrifier | 0.81 | Emogrifier converts CSS from blocks and stylesheets into inline style attributes in HTML. Ideal for HTML email rendering in clients with poor CSS support (e.g., Outlook, Gmail), ensuring consistent styling across email and mobile readers. | 949 | 959 | 160 | 794K | 80 | 45.1 | 69.8 | MIT | 6 months ago | |
| bicpi/html-converter | 0.81 | PHP library for converting HTML to plain text, ideal for generating text parts of HTML emails. Includes Simple (strip_tags), Lynx (best results, keeps links), Html2Text, and Chain converter to pick the first available backend. | 11 | 12 | 13 | 0 | 0 | 0.5 | — | MIT | — | |
| rdx/laravelcollective-html | 0.81 | Adds LaravelCollective HTML/Form helpers to Laravel apps, with service provider setup and familiar Form/Html facades for generating inputs, labels, and other form elements. Useful when you want the classic Laravel form builder experience back. | 9 | 9 | 4 | 26K | 1 | 0.3 | 47.0 | MIT | — | |
| typo3/cms-fluid | 0.81 | TYPO3 Fluid template engine for the TYPO3 CMS. Provides rendering, ViewHelpers, and integration for building dynamic HTML views with a flexible, secure templating syntax used across TYPO3 extensions and frontend output. | 19 | 19 | 5 | 289K | 0 | 0.2 | 55.3 | GPL-2.0 | — |
How can I help you explore Laravel packages today?