PHPackages                             bluebaytravel/phrontmatter - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. bluebaytravel/phrontmatter

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

bluebaytravel/phrontmatter
==========================

Front Matter parser for PHP, with support for YAML, JSON and TOML.

v1.5.0(8y ago)142.6kMITPHPPHP &gt;=5.5.9

Since Dec 9Pushed 4y agoCompare

[ Source](https://github.com/BlueBayTravel/Phrontmatter)[ Packagist](https://packagist.org/packages/bluebaytravel/phrontmatter)[ RSS](/packages/bluebaytravel-phrontmatter/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (6)Versions (10)Used By (0)

Phrontmatter
============

[](#phrontmatter)

[![StyleCI](https://camo.githubusercontent.com/c43843e503859af18801cfe2107308212dc089374f9b3448c22aab97b1151e52/68747470733a2f2f7374796c6563692e696f2f7265706f732f34373638383831352f736869656c64)](https://styleci.io/repos/47688815)[![Build Status](https://camo.githubusercontent.com/cf9d23db24a0e554d0c8189ca4fc7e9c1f4e42b6d5fd1a5ac5531f4b564a6e46/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f426c756542617954726176656c2f5068726f6e746d61747465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/BlueBayTravel/Phrontmatter)

```
// Parse a document.
Phrontmatter::parse("---\nfoo: bar---\nThis is actual content!")->foo;

// Dependency injection example.
$phrontmatter->parse("---\nfoo: bar---\nThis is actual content!")->getContent();

// Parse a document with JSON meta data.
$phrontmatter->parse("---\n{\"foo\":\"bar\"}\n---\nThis is a document with JSON!", Phrontmatter::JSON)->getData();
```

For more information on Front Matter, see the [Jekyll documentation](http://jekyllrb.com/docs/frontmatter/).

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

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
composer require bluebaytravel/phrontmatter
```

### Laravel Installation

[](#laravel-installation)

Add the service provider to `config/app.php` in the `providers` array.

```
BlueBayTravel\Phrontmatter\PhrontmatterServiceProvider::class
```

If you want you can use the [facade](http://laravel.com/docs/facades). Add the reference in `config/app.php` to your aliases array.

```
'Phrontmatter' => BlueBayTravel\Phrontmatter\Facades\Phrontmatter::class
```

Supported Formatters
--------------------

[](#supported-formatters)

Phrontmatter supports the following formatters:

- YAML (default)
- TOML
- JSON

License
-------

[](#license)

Blue Bay Travel Phrontmatter is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% of commits — single point of failure

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 ~84 days

Recently: every ~135 days

Total

9

Last Release

3184d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e4934b15ff7d8cffabece955994bed29b31429f4c2e8f13fa0868c753bb1c30?d=identicon)[jbrooksuk](/maintainers/jbrooksuk)

---

Top Contributors

[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (33 commits)")[![alex-bowers](https://avatars.githubusercontent.com/u/7655111?v=4)](https://github.com/alex-bowers "alex-bowers (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluebaytravel-phrontmatter/health.svg)

```
[![Health](https://phpackages.com/badges/bluebaytravel-phrontmatter/health.svg)](https://phpackages.com/packages/bluebaytravel-phrontmatter)
```

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k199.2M1.2k](/packages/laravel-sail)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M167](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)

PHPackages © 2026

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