neuralglitch/google-fonts
Laravel package for self-hosting Google Fonts: download font files locally, generate CSS, and serve them from your app. Avoid external Google requests, improve privacy and GDPR compliance, and boost performance with cached local assets.
text parameter), preload hints, and CSS merging directly map to Core Web Vitals optimizations (LCP, CLS). PMs can use this to reduce initial payload without a separate performance-engineering project.when@prod/when@dev) is a deliberate move away from runtime env checks — good for predictability, but teams relying on runtime overrides must migrate.Consider adoption when:
gfonts:lock, gfonts:import, gfonts:status, gfonts:prune) suitable for CI/CD.Look elsewhere when:
text subsetting offered here.For executives: This package lets us stop shipping user requests to Google for fonts — a privacy and compliance win — while also making pages faster by trimming unused font characters and preloading the fonts that matter. It's automated, tested, and low-risk to adopt: we download fonts once, generate optimized CSS, and serve them from our own infrastructure. It replaces a manual or custom-built process and is mature enough to run in production.
For engineering leadership: Release 0.2.0 turns this from a utility script into a production-grade tool: configurable API caching (default 1h), dry-run + progress bars for safe CI use, gfonts:status/gfonts:prune for lifecycle management, and environment-agnostic YAML config. Quality bar is high — >93% coverage, PHPStan Level 9, Psalm clean, integration tests across the full scan→render workflow. Symfony 7.1 Filesystem::readFile() forward-compat with fallback shows maintenance hygiene. Main caveats for the team: pre-1.0 churn risk (manifest format changed this release), and it's Symfony/AssetMapper-oriented — confirm fit before adoption. Recommend a spike on a representative app to validate the new config model and prune workflow.
How can I help you explore Laravel packages today?