apie/html-builders
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.
Apie monorepo, suggesting potential for future expansion (e.g., API-driven HTML generation). This could be a risk if the package’s scope diverges from Laravel’s needs.symfony/mime (v7.2) is already used in Laravel, reducing friction.ramsey/uuid is optional but could conflict if UUID handling is already managed (e.g., by Laravel’s uuid package).apie/common and apie/core are internal to Apie; their Laravel-specific behaviors are unknown and may require abstraction.illuminate/support in require-dev hints at Laravel testing compatibility but isn’t a hard dependency.apie/common updates).HtmlBuilder::make()).spatie/html, laravelcollective/html) that overlap?Apie libraries? Will html-builders remain standalone?assertViewIs but for programmatic HTML)?ramsey/uuid or symfony/mime be resolved?HtmlBuilder::make()).Html facade for Blade/Livewire compatibility (e.g., @html('div')->class('container')).@htmlBuilder directives for templated usage.new Apie\Html\Builder()).// Before
return view('email.welcome', ['content' => '<h1>Hello</h1>']);
// After
$html = Html::div()->class('welcome')->text('Hello');
return view('email.welcome', ['content' => $html->render()]);
replace in composer.json to override symfony/mime if version conflicts arise.ramsey/uuid, evaluate if Laravel’s built-in UUID handling suffices or if the package’s implementation is critical.Illuminate\Cache) for frequently generated HTML to mitigate performance risks.composer require apie/html-builders.symfony/mime).apie/common and apie/core for breaking changes (submit PRs to the monorepo proactively).composer why-not apie/html-builders to track dependency updates.^1.0) is recommended.Cache::remember('html_key', ...)).Builder::stream() if supported).try {
$html = Html::div()->unknownMethod(); // Hypothetical
} catch (\Throwable $e) {
Log::error($e);
return view('fallback');
}
symfony/mime or ramsey/uuid issues could break HTML generation. Implement graceful degradation.use Symfony\Component\DomCrawler\Crawler;
$crawler = new Crawler($html->render());
if ($crawler->count() === 0) {
throw new \InvalidArgumentException('Invalid HTML generated');
}
How can I help you explore Laravel packages today?