PHPackages                             barnabywalters/mf-cleaner - 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. barnabywalters/mf-cleaner

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

barnabywalters/mf-cleaner
=========================

Cleans up microformats2 array structures

v0.2.0(3y ago)127.2k↑82.1%34MITPHPPHP &gt;=7.3

Since Jun 19Pushed 3y ago4 watchersCompare

[ Source](https://github.com/barnabywalters/php-mf-cleaner)[ Packagist](https://packagist.org/packages/barnabywalters/mf-cleaner)[ RSS](/packages/barnabywalters-mf-cleaner/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (2)Versions (7)Used By (4)

php-mf-cleaner
==============

[](#php-mf-cleaner)

[![Latest Stable Version](https://camo.githubusercontent.com/63ebe59a7a5623c8c40ab851dbc1dfe792df646bc1d0087bb5b631caf471604d/687474703a2f2f706f7365722e707567782e6f72672f6261726e61627977616c746572732f6d662d636c65616e65722f76)](https://packagist.org/packages/barnabywalters/mf-cleaner) [![](https://github.com/barnabywalters/php-mf-cleaner/actions/workflows/php.yml/badge.svg?branch=main)](https://github.com/barnabywalters/mf-cleaner/actions/workflows/php.yml) [![License](https://camo.githubusercontent.com/81815a1095f0a63604037d4803c31178f6bbfaec7a3160d0fc29f902b0ef18a0/687474703a2f2f706f7365722e707567782e6f72672f6261726e61627977616c746572732f6d662d636c65616e65722f6c6963656e7365)](https://packagist.org/packages/barnabywalters/mf-cleaner) [![Total Downloads](https://camo.githubusercontent.com/b23b3a8ff5b2b1e15db8f5bf7811e43eede91fd531761a35eb52b0703ebcbc7b/687474703a2f2f706f7365722e707567782e6f72672f6261726e61627977616c746572732f6d662d636c65616e65722f646f776e6c6f616473)](https://packagist.org/packages/barnabywalters/mf-cleaner)

Lots of little helpers for processing canonical [microformats2](http://microformats.org/wiki/microformats2) array structures. Counterpart to [indieweb/php-mf2](https://github.com/indieweb/php-mf2).

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

[](#installation)

barnabywalters/mf-cleaner is currently tested against and compatible with PHP 7.3, 7.4, 8.0 and 8.1.

Install barnabywalters/mf-cleaner using [composer](https://getcomposer.org/):

```
composer.phar require barnabywalters/mf-cleaner
composer.phar install (or composer.phar update)

```

Versioned releases are GPG signed so you can verify that the code hasn’t been tampered with.

```
gpg --recv-keys 1C00430B19C6B426922FE534BEF8CE58118AD524
cd vendor/barnabywalters/mf-cleaner
git tag -v v0.2.0 # Replace with the version you have installed

```

Usage
-----

[](#usage)

Most of the functions are self explanatory, and all come with summaries in docblocks if something is unclear. This example shows the most common usage:

```
