symfinity/font-manager

Universal font manager for Symfony supporting multiple providers (Google Fonts, Bunny Fonts, Local Fonts, Fontsource) with development CDN and production font locking

Maintainers

Package info

github.com/symfinity/font-manager

Type:symfony-bundle

pkg:composer/symfinity/font-manager

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.1 2026-06-12 22:02 UTC

This package is auto-updated.

Last update: 2026-06-13 04:00:58 UTC


README

Font Manager

Universal font manager for Symfony supporting multiple providers

PHP Version Symfony
CI
Release Downloads License

Read-only mirror. Source of truth: symfinity/symfinity (packages/font-manager/). See CONTRIBUTING.md for how to propose changes.

Features

  • Multiple Providers - Google Fonts, Bunny Fonts, Fontsource, and Local Fonts
  • Privacy-Friendly - GDPR-compliant options (Bunny Fonts, Fontsource)
  • Development Mode - CDN with inline styles
  • Production Mode - Lock fonts locally for better performance and privacy
  • Multi-Format Export - Export fonts in 12+ formats (CSS, SCSS, Tailwind, TypeScript, Design Tokens, and more)
  • Build Tool Support - AssetMapper, Webpack, and Vite auto-detection
  • Framework Integration - Bootstrap SCSS variables, Tailwind config, CSS custom properties
  • Design System Ready - W3C Design Tokens, Figma Tokens, Style Dictionary
  • Smart CSS - Automatic font styling for body, headings, and bold text
  • CLI Tools - Search, lock, validate, prune, and export commands
  • Custom Fonts - Support for self-hosted brand fonts
  • Type-Safe - PHP 8.1 enums and TypeScript definitions

Supported Providers

Provider Fonts Privacy API Key CDN
Google Fonts 1,500+ Tracks Optional Yes
Bunny Fonts 1,500+ GDPR No Yes
Fontsource 1,500+ Good No Yes
Local Fonts Custom Perfect No No

Recommended for privacy: Use Bunny Fonts (GDPR-compliant, zero tracking)

Prerequisites

Add the symfinity/recipes Flex endpoint to your project's composer.json (see recipes README) — recipes are not in Symfony's official recipe repository yet.

Installation

composer require symfinity/font-manager

The Flex recipe registers the bundle for dev and test only. Enable prod manually before locking fonts — see Installation.

Documentation

Requirements

  • PHP 8.1 or higher
  • Symfony 6.4, 7.x, or 8.x
  • Twig 3.0 or higher

Support

License

MIT