becklyn/html-builder
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.
str_contains deprecations).spatie/html, illuminate/html)?str_contains).array_merge without ...).composer.json for conflicts (e.g., symfony/console).phpunit with php82 constraint).spatie/html.| Risk | Impact | Mitigation |
|---|---|---|
| Package Abandonment | Broken HTML generation | Fork or migrate to Blade/Livewire. |
| PHP/Laravel Incompatibility | Integration failures | Use composer.json constraints or polyfills. |
| XSS Vulnerabilities | Security breaches | Sanitize inputs; use htmlspecialchars. |
| Over-Engineering | Unnecessary abstraction | Reserve for reusable HTML only. |
| Symfony Dependency Bloat | Unintended dependency conflicts | Audit composer.json; isolate usage. |
Key Update: The Symfony 6 support in 2.2.1 suggests PHP 8.1+ compatibility but does not address Laravel-specific risks. Test PHP 8.2+ and Laravel 10+ compatibility explicitly before adoption. If no Laravel-specific improvements are planned, the package remains a short-term utility with high migration risk.
How can I help you explore Laravel packages today?