botble/assets
Botble Assets is a Laravel package for managing frontend assets in Botble CMS projects. It helps register, organize, version, and render CSS and JavaScript files from themes and plugins, simplifying asset publishing and dependency handling.
What it is: botble/assets is the asset-management layer used by the Botble CMS ecosystem. It provides server-side asset registration (styles/scripts declared by themes and plugins at runtime), URL resolution, and a build/minify pipeline, exposed through a facade and Blade directives. It sits in the same solution space as Laravel Mix / laravel-vite-plugin, but adds a runtime registry so that modular packages can contribute assets without editing a central layout.
Architecture fit:
addStyles/addScripts-style calls) is convenient but encourages asset declarations scattered across service providers, which is harder to statically analyze than a manifest.Integration feasibility:
botble/platform helpers, specific config keys, or a particular directory convention for public assets. Verify with composer why-not and by reading its composer constraints before committing.Technical risk:
APP_URL.Key questions to answer before a decision:
botble/* sibling packages at runtime, or is it standalone within Laravel?laravel-vite-plugin?Stack fit: PHP/Laravel/Composer — no new runtime, no new language, no new infrastructure. It will not constrain our hosting or CI. It is orthogonal to our data layer entirely, which keeps blast radius small. The only meaningful incompatibility risk is a front-end toolchain mismatch (Mix-era assumptions vs. a Vite-based build).
Migration path:
AssetRegistrar interface in our codebase with the two or three operations we actually need (register style, register script, render), and implement it with botble/assets. This costs roughly a day and converts a hard dependency into a swappable adapter — the single highest-leverage risk control here.Compatibility:
composer.json rather than a caret range; the low release volume means a single breaking patch is disproportionately disruptive.APP_URL, CDN configuration, and any reverse proxy in staging before production.Sequencing:
Maintenance:
Support:
Scaling:
Failure modes and mitigations:
APP_URL/CDN/ASSET_URL misconfiguration or reverse-proxy scheme mismatch. Mitigate: smoke test asset HTTP 200s as a post-deploy gate.Ramp-up:
How can I help you explore Laravel packages today?