PHPackages                             symfinity/font-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. symfinity/font-manager

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

symfinity/font-manager
======================

Universal font manager for Symfony supporting multiple providers

v0.2.6(3w ago)514MITPHPPHP &gt;=8.1CI passing

Since Jun 13Pushed 3w agoCompare

[ Source](https://github.com/symfinity/font-manager)[ Packagist](https://packagist.org/packages/symfinity/font-manager)[ Docs](https://github.com/symfinity/font-manager)[ GitHub Sponsors](https://github.com/sponsors/serotoninja)[ RSS](/packages/symfinity-font-manager/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (29)Versions (7)Used By (0)

Font Manager
============

[](#font-manager)

### Universal font manager for Symfony supporting multiple providers

[](#universal-font-manager-for-symfony-supporting-multiple-providers)

[![PHP Version](https://camo.githubusercontent.com/fe60a3918bae3bc2ed56c6c5329ac0cb7462196b3061d0afb91fc4a241fe4172/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e322b2d3737374242343f7374796c653d666c6174266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](composer.json)[![Symfony](https://camo.githubusercontent.com/e9a98c31464d231765804f4fdc323f1c325b9a442e4be9a58455e5b5537fdce5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53796d666f6e792d362e342b2d3334333433343f7374796c653d666c6174266c6f676f3d73796d666f6e79266c6f676f436f6c6f723d7768697465)](composer.json)
[![CI](https://github.com/symfinity/font-manager/actions/workflows/ci.yml/badge.svg)](https://github.com/symfinity/font-manager/actions/workflows/ci.yml)
[![Release](https://camo.githubusercontent.com/88fb51f9d5df31ec7aead1e7796592f0462fbc72b03290b34a87f6b432faf096/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796d66696e6974792f666f6e742d6d616e616765722e7376673f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/symfinity/font-manager)[![Downloads](https://camo.githubusercontent.com/9e263e46ab5344de6f6b2bfb896095e030f5b0bc3ead29caa5257a14006f74e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d66696e6974792f666f6e742d6d616e616765722e7376673f7374796c653d666c6174266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/symfinity/font-manager)[![License](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)

Note

**Read-only mirror.**See [CONTRIBUTING.md](CONTRIBUTING.md) for how to propose changes.

Features
--------

[](#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
-------------------

[](#supported-providers)

ProviderFontsPrivacyAPI KeyCDN**Google Fonts**1,500+TracksOptionalYes**Bunny Fonts**1,500+GDPRNoYes**Fontsource**1,500+GoodNoYes**Local Fonts**CustomPerfectNoNo**Recommended for privacy:** Use **Bunny Fonts** (GDPR-compliant, zero tracking)

Prerequisites
-------------

[](#prerequisites)

Add the [symfinity/recipes](https://github.com/symfinity/recipes) Flex endpoint to your project's `composer.json` (see [recipes README](https://github.com/symfinity/recipes/blob/main/README.md)) — recipes are not in Symfony's official recipe repository yet.

Installation
------------

[](#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](docs/installation.md).

Documentation
-------------

[](#documentation)

- **[Quickstart](docs/quickstart.md)** - Get started in 5 minutes
- **[Installation](docs/installation.md)** - Flex, manual setup, production
- **[Upgrade](docs/upgrade.md)** - Version migration (0.2.6 ui-kernel bridge, 0.2.4 Flex prod bundle, 0.2.3 config rename)
- **[UI Kernel pairing](docs/font-manager-kernel-pairing.md)** - Bridge webfonts to `--ui-font-family-sans/mono` tokens
- **[Export Formats](docs/exports.md)** - Multi-format export guide (CSS, SCSS, Tailwind, TypeScript, Design Tokens)
- **[Usage Guide](docs/usage.md)** - Function parameters and examples
- **[Providers](docs/providers.md)** - Provider comparison and setup
- **[Commands](docs/commands.md)** - CLI command reference
- **[Configuration](docs/configuration.md)** - All configuration options
- **[Local Fonts](docs/local-fonts.md)** - Custom font setup
- **[Migration Guide](docs/migration.md)** - Migrating from google-fonts

Requirements
------------

[](#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
-------

[](#support)

- [GitHub Issues](https://github.com/symfinity/font-manager/issues)
- [Security](.github/SECURITY.md)
- [Contributing](CONTRIBUTING.md)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance95

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

6

Last Release

23d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/246582257?v=4)[Symfinity](/maintainers/symfinity)[@symfinity](https://github.com/symfinity)

---

Tags

bunnyfontsourcegoogle-fontslocal-fontssymfonysymfony-bundleweb-fontssymfonytwigSymfony Bundletypographygoogle fontsgdprprivacyasset-mapperfontsbunny-fontslocal-fontsfontsourcefont-manager

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/symfinity-font-manager/health.svg)

```
[![Health](https://phpackages.com/badges/symfinity-font-manager/health.svg)](https://phpackages.com/packages/symfinity-font-manager)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M605](/packages/shopware-core)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M401](/packages/easycorp-easyadmin-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1028.7k5](/packages/chameleon-system-chameleon-base)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M215](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k64](/packages/open-dxp-opendxp)[contao/core-bundle

Contao Open Source CMS

1231.6M2.9k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
