Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Repository files navigation

Font Manager

Universal font manager for Symfony supporting multiple providers

PHP Version Symfony
CI
Release Downloads License

Note

Read-only mirror. 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 all environments. Run fonts:lock before deploy so production uses locked local assets — see Installation.

Documentation

Requirements

  • PHP 8.2 or higher (8.1 may work; CI tests 8.2+)
  • Symfony 6.4, 7.4, 8.0, or 8.1
  • Twig 3.0 or higher

Support

License

MIT

About

Universal font manager for Symfony supporting multiple providers

Topics

Resources

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages