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,697 | 1,699 | 76 | 164K | 0 | 19.9 | 27.5 | 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,447 | 61 | 241K | 0 | 21.9 | 32.7 | MIT | 7 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 | 547 | 0 | 0.9 | 33.7 | MIT | 3 years ago | |
| 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 | 22 | 0 | 0.0 | 18.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 | 207K | 0 | 5.0 | 42.7 | MIT | 3 years ago | |
| spatie/laravel-html | 0.83 | 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. | 827 | 840 | 102 | 359K | 0 | 29.1 | 40.5 | MIT | 4 months ago | |
| 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 | 137 | 2 | 0.4 | 29.5 | 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. | 741 | 754 | 60 | 458K | 0 | 12.4 | 38.6 | MIT | 2 years ago | |
| anh/markup-bundle | 0.82 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| renatovdemoura/blade-elements-ui | 0.82 | Laravel package providing reusable Blade UI elements (components/tags) to speed up building consistent interfaces. Drop-in Blade elements help standardize layout and styling across your app with minimal setup. | 0 | 0 | 0 | 1 | 0 | 0.0 | 4.2 | — | — | |
| 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. | 242 | 250 | 42 | 74K | 3 | 19.5 | 38.0 | MIT | 8 months ago | |
| 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. | 2 | 2 | 0 | 150 | 0 | 1.8 | 23.6 | BSD-3-Clause | 4 years ago | |
| 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 | 22K | 0 | 0.8 | 28.0 | 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 | 3K | 0 | 3.9 | 23.5 | 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 | 5 | 0 | 3.5 | 11.0 | MIT | 10 months ago | |
| spatie/laravel-blade-x | 0.81 | Blade-X brings Blade-style HTML components to Laravel 6 and below, letting you use tags like instead of @include. Package is abandoned because Laravel 7+ has native Blade components; migrate when upgrading. | 518 | 530 | 36 | 566 | 0 | 6.0 | 3.1 | MIT | 6 years 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 | 0 | 0 | 0.9 | — | MIT | 9 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. | 948 | 957 | 158 | 803K | 81 | 42.5 | 68.2 | MIT | 7 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. | 10 | 9 | 4 | 27K | 1 | 0.3 | 46.8 | MIT | — |
How can I help you explore Laravel packages today?