log1x/laravel-webfonts
Self-host Google Fonts in Laravel with a simple artisan command. laravel-webfonts downloads the font files you need, generates local CSS, and gives you a Blade component for fast, privacy-friendly typography without third-party requests.
@font-face definitions, preloading, and local caching in Laravel apps. It directly supports decisions like "should we self-host fonts to cut third-party requests and improve LCP?" — a common Core Web Vitals / privacy initiative.@font-face CSS, and custom download/cache scripts with a maintained package. Useful benchmark when engineering proposes building a bespoke font manager.font-display/subset control. Confirm maintenance cadence — v2.0.1 is a small patch on a recently major-versioned package, so pin versions and read the v2.0.0 upgrade notes for breaking changes.For executives: This is a small, low-cost dependency that lets us serve fonts ourselves instead of pulling them from Google. That means faster page loads, fewer third-party calls, and a cleaner privacy/compliance story, with typography configured centrally rather than scattered across templates. The latest patch adds the ability to preload only the fonts we actually need above the fold — a direct performance win with no added scope.
For engineering: The package handles font registration, local caching, and @font-face generation in Laravel config. v2.0.1 adds selective preloading, so you no longer preload every registered font — specify the critical set and keep the rest lazily loaded. Adoption is a config change plus a cache warm step; the main work is verifying font licensing, confirming the download/cache path works in our deployment (ephemeral filesystems), and pinning the version. Recommendation: adopt as a small, reversible dependency, pilot it on one high-traffic page, measure LCP and request count, then roll out.
How can I help you explore Laravel packages today?