padaliyajay/php-autoprefixer
A PHP port of Autoprefixer that adds vendor prefixes to your CSS without Node.js or PostCSS. Write modern properties and let it handle browser compatibility, with support for custom browser lists and working from CSS files or strings.
Consider it when:
caniuse/browserslist.Look elsewhere when:
@layer, color functions, custom media — where a port is most likely to diverge from upstream behavior.lightningcss (fast native binary, callable from a build step), or pre-generating static CSS variants per theme.To executives: This is a small, MIT-licensed PHP library that adds browser vendor prefixes to CSS without requiring a JavaScript/Node build pipeline. It is not a new platform bet — it is a scoped dependency that lets us ship runtime-generated, per-customer styling and keeps our deployment footprint PHP-only. The trade-off is straightforward: we accept slightly less fidelity than the industry-standard Node tool in exchange for lower operational complexity. Recommendation is conditional — adopt only where CSS is generated at runtime or where Node is genuinely unavailable; keep the standard build-time tool everywhere else.
To engineering: Treat it as a convenience port of Autoprefixer, not a drop-in equivalent. Pin the version, wrap it behind our own CssPrefixer interface so it is swappable, snapshot-test representative stylesheets, and cache output keyed on theme/config version. Do not put it on an uncached hot path. Keep an upstream-Autoprefixer comparison job in CI if visual correctness is business-critical, and budget a small quarterly check on release cadence, PHP version support, and browser-data freshness. Exit cost is low by design — that is the main reason this is a defensible choice.
How can I help you explore Laravel packages today?