spatie/laravel-google-fonts
Self-host Google Fonts in Laravel with minimal setup. Register Google Fonts CSS URLs in config and load them via the @googlefonts Blade directive. On first request it downloads CSS/assets, caches locally, inlines CSS, and falls back to Google if needed.
Adopt if:
Look elsewhere if:
spatie/laravel-font-lib.spatie/laravel-caching.For Executives: "This package lets us self-host Google Fonts in Laravel with one command, cutting external requests by 30%+ and improving page load times—critical for SEO and user retention. It’s a low-risk, high-reward move: no dev overhead, just faster, more private, and more reliable typography. Competitors like [Company X] are already doing this; we can too, without rewriting our stack."
Key Metrics to Track:
For Engineering: *"This is a drop-in replacement for Google Fonts embeds. Here’s how it works:
config/google-fonts.php (e.g., Inter, IBM Plex Mono).<link> tags with @googlefonts Blade directives.php artisan google-fonts:fetch to cache fonts locally.Why this over DIY?
s3 or public disk and symlink via storage:link.nonce option) and Artisan commands.Migration Plan:
/about).fallback mode triggered).Dependencies:
public)."*How can I help you explore Laravel packages today?