symfinity/font-manager
Composer 安装命令:
composer require 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
关键字:
README 文档
README
Font Manager
Universal font manager for Symfony supporting multiple providers
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
- Quickstart - Get started in 5 minutes
- Installation - Flex, manual setup, production
- Export Formats - Multi-format export guide (CSS, SCSS, Tailwind, TypeScript, Design Tokens)
- Usage Guide - Function parameters and examples
- Providers - Provider comparison and setup
- Commands - CLI command reference
- Configuration - All configuration options
- Local Fonts - Custom font setup
- Migration Guide - Migrating from google-fonts
Requirements
- PHP 8.1 or higher
- Symfony 6.4, 7.x, or 8.x
- Twig 3.0 or higher
Support
License
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-13