phug/util
phug/util is a lightweight PHP utility library for the Phug template engine, providing shared helpers and low-level tools for parsing, rendering, and template handling. It simplifies common tasks and supports building Pug-based PHP applications.
phug/util is a low-level utility package in the Phug/Pug templating ecosystem, not a Laravel application package. It fits only when the product deliberately standardizes on Phug/Pug for view rendering; it does not add business capability and overlaps with Laravel’s Illuminate\Support helpers. TPM position: do not introduce it as a direct application dependency.phug/phug or a Phug Laravel view adapter, not as an API consumed by controllers, models, or domain services.phug/util already pulled transitively by a maintained Phug integration? Which specific utilities would application code call, and are they documented public API? What PHP and Laravel versions are supported? Who owns upgrade and security monitoring? What is the fallback if Phug is abandoned or incompatible?phug/util only behind a Phug rendering layer. Do not expose it to Laravel controllers, jobs, models, or shared application helpers. If Blade is the default view engine, skip this package.phug/util as a transitive dependency. Fourth, pin versions and add rendering tests. Fifth, wrap template rendering in an application service boundary. Only after that should the team consider whether any utility behavior needs direct exposure—by default, it should not.phug/util is an implementation detail of Phug, not an application utility library. Ramp-up is low for Composer mechanics but medium for developers unfamiliar with Pug/Phug semantics and compiled-template behavior.phug/util should remain out of the direct dependency graph.How can I help you explore Laravel packages today?