PHPackages                             adamb/google-fonts - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. adamb/google-fonts

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

adamb/google-fonts
==================

Get a list of Google Fonts and search by type or weight

1.0.1(5y ago)121.5k↓37.5%MITPHP

Since Oct 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/AdamB7586/GoogleFonts)[ Packagist](https://packagist.org/packages/adamb/google-fonts)[ RSS](/packages/adamb-google-fonts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3c64999587ee4f997eafa538ec5f7fa4a8de864961a55b69a567cd9b4ec2e7f9/68747470733a2f2f6170692e7472617669732d63692e6f72672f4164616d42373538362f476f6f676c65466f6e74732e706e67)](https://api.travis-ci.org/AdamB7586/GoogleFonts)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/77a692d8b8cddcbfaeedd8cf76b0455efc3b1633c2e5f150bc658715f790465d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4164616d42373538362f476f6f676c65466f6e74732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AdamB7586/GoogleFonts/)[![Minimum PHP Version](https://camo.githubusercontent.com/586dcf4f3dc6fb6a373471a158c7a7a817de30119e71e526025f322cda98ab12/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e332d3838393242462e7376673f7374796c653d666c61742d636972636c65)](https://php.net/)

Google Fonts Lists PHP
======================

[](#google-fonts-lists-php)

Produces a PHP array of all of the fonts available in Google Fonts searchable by weight/subset/type;

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

[](#installation)

Installation is available via [Composer/Packagist](https://packagist.org/packages/adamb/google-fonts):

```
composer require adamb/google-fonts
```

You will also need to obtain a [Google Fonts API key](https://console.developers.google.com/apis/credentials) to use this package.

Usage
-----

[](#usage)

Example of usage can be found below:

### Set-up

[](#set-up)

```
