PHPackages                             arcath/post-formats - 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. arcath/post-formats

ActiveLibrary

arcath/post-formats
===================

Post Format meta boxes for WordPress

0.0.4(8y ago)1701MITPHPPHP ^5.3.3 || ^7.0

Since Oct 12Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Arcath/post-formats)[ Packagist](https://packagist.org/packages/arcath/post-formats)[ RSS](/packages/arcath-post-formats/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

post-formats
============

[](#post-formats)

Provides meta boxes and all required code to get the WordPress post formats working in the admin panel.

*Does not provide any helpers for displaying in your theme.*

Install
-------

[](#install)

You can install through composer using the command:

```
composer require arcath/post-formats

```

Usage
-----

[](#usage)

Requiring composer autoload will add the PostFormats class.

*functions.php*

```
require_once('vendor/autoload.php');

$formats = array('gallery', 'video');
asort($formats);
$post_formats = new PostFormats($formats, array('post', 'page'));
```

`new PostFormats` takes 2 arguments, an arry of formats to enable (which I have sorted alphabetically above) and an array of post types to enable them for.

### In your theme

[](#in-your-theme)

The contents of the meta box is stored in `_post_format_{POST_FORMAT}` in the post meta.

For example to get the array of gallery IDs you would look at `_post_format_gallery`.

More info can be found in [this post](https://arcath.net/2016/10/post-formats-theme/).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~156 days

Total

4

Last Release

3032d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/930b97839168b9f3710451fa89ba02c5f5642d9c33efc77f4d9f5b621a9941be?d=identicon)[Arcath](/maintainers/Arcath)

---

Top Contributors

[![Arcath](https://avatars.githubusercontent.com/u/19609?v=4)](https://github.com/Arcath "Arcath (7 commits)")[![kyle-jennings](https://avatars.githubusercontent.com/u/581351?v=4)](https://github.com/kyle-jennings "kyle-jennings (1 commits)")

### Embed Badge

![Health badge](/badges/arcath-post-formats/health.svg)

```
[![Health](https://phpackages.com/badges/arcath-post-formats/health.svg)](https://phpackages.com/packages/arcath-post-formats)
```

PHPackages © 2026

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