Skip to content

web-fonts-repository

Self-hosted PHP webfont server that generates Google Fonts-style CSS for your own fonts

Permissive (OSI) · MIT

Listed by , founder & editor

23

Health

Dormant

Overview

Stars

106

Last commit

6 months ago

May 2026

Repository age

9 years

since Aug 2017

Latest version

v0.2.3

Mar 2020

Contributors

–

Releases

0

last 12 months

Language

PHP

Web Fonts Repository is a small PHP application that hosts webfont files on your own server. It stores the files, serves them, and generates the CSS for embedding fonts on a page as requests come in. The idea follows Google Fonts, but the fonts and the server are yours.

You install it with Composer on any HTTP server that runs PHP 7.0 or later. Drop woff, woff2, ttf, otf, eot or svg files into the public/fonts directory, then list your families and styles in config/settings-local.php. Each style maps a weight, with an i suffix for italic, to a glob pattern that points at the files. The web server must send an Access-Control-Allow-Origin header on font files so browsers accept them across origins.

It does not target a specific commercial product, but it covers the same job as a hosted font service for people who want to keep fonts off third-party servers. It is MIT licensed.

Who it's for

Web developers who want to self-host fonts

You get a Google Fonts-style CSS endpoint without sending visitors to a third party.

Skip if: You only need a few fonts, in which case plain @font-face rules on a static server are simpler.

Agencies serving several client sites from one font host

One repository can serve many families and weights to different sites.

Skip if: You need a browsable catalog or upload interface, since fonts are configured in a PHP file.

The problem it solves

Hosted font services mean third-party requests and little control over the files. You want to serve your own webfonts with ready-made CSS, from a server you run.

Strengths

  • Generates CSS on the fly from a simple PHP settings file
  • Accepts woff, woff2, ttf, otf, eot and svg files
  • Installs with a single Composer command
  • MIT licensed

Trade-offs

  • No recent releases or contributors; the latest version is v0.2.3
  • Fonts are configured by editing a PHP file, with no web admin
  • Requires a PHP server and correct CORS headers
  • No bundled font catalog; you supply every font file

Self-host web-fonts-repository

Self-hostable
Yes

Quick start

composer create-project finesse/web-fonts-repository webfonts

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Can I self-host it?

Yes, it is built for that. It runs on any HTTP server with PHP 7.0 or later and Composer for installation.

Which font formats does it serve?

It handles woff, woff2, ttf, otf, eot and svg files placed in the public/fonts directory.

How is it licensed?

It uses the MIT license, which allows commercial use and modification.

Does it need CORS headers?

Yes. Your web server must add Access-Control-Allow-Origin to font files, or some browsers will reject them.

Similar tools in Icons, fonts and design assets

Font Gallery

Icons, fonts and design assets

Flutter app for browsing and comparing Google Fonts with your own preview text

82 7 16 months ago Dormant MIT

Embellish

Icons, fonts and design assets

GNOME app to install Nerd Fonts and browse their icons on Linux

67 9 3 days ago Active GPL-3.0

Snow

Icons, fonts and design assets

Monotone icon pack for Android launchers, with many F-Droid app icons

48 13 2 months ago Slowing GPL-3.0

Fonts

Icons, fonts and design assets

GNOME app for browsing installed fonts and previewing them on Linux desktops

15 36 13 days ago Active GPL-2.0+

Icon Library

Icons, fonts and design assets

GNOME app for browsing and exporting symbolic icons for designers and app developers

22 24 42 days ago Slowing GPL-3.0+

Lipi

Icons, fonts and design assets

GTK4 font installer for Linux users who want Google Fonts on their system

20 1 yesterday Active GPL-3.0