PHPackages                             barnebys/markup-protocol - 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. barnebys/markup-protocol

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

barnebys/markup-protocol
========================

Barnebys Markup Protocol enhances information associated with an auction item on a webpage through key-value pairs included as &lt;meta&gt; elements in your HTML.

36PHP

Since May 12Pushed 9y agoCompare

[ Source](https://github.com/barnebys/markup-protocol)[ Packagist](https://packagist.org/packages/barnebys/markup-protocol)[ RSS](/packages/barnebys-markup-protocol/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/73e4ca2cbdf6275a39c44fa78589fa0621f0026595d48a76c203b60a856b02e4/68747470733a2f2f706f7365722e707567782e6f72672f6261726e656279732f6d61726b75702d70726f746f636f6c2f762f737461626c65)](https://packagist.org/packages/barnebys/markup-protocol)[![Build Status](https://camo.githubusercontent.com/9a4ec38639e54135a7a6cd7b62eb5d3fdd086cb131469e69dda695c3180a71dd/68747470733a2f2f7472617669732d63692e6f72672f6261726e656279732f6d61726b75702d70726f746f636f6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/barnebys/markup-protocol)[![Coverage Status](https://camo.githubusercontent.com/eebea65877cfc1ab3e86641a24a5cf8dae93e07fd1d96def79a3c8f5e7608fba/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6261726e656279732f6d61726b75702d70726f746f636f6c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/barnebys/markup-protocol?branch=master)

Barnebys Markup Protocol
========================

[](#barnebys-markup-protocol)

This library is a tool to generate [Barnebys Markup Tags](https://dev.bbys.io/) with PHP.

Requirements
------------

[](#requirements)

> PHP &gt;= 5.6

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

[](#installation)

The recommended way is to use [composer](https://www.google.se/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0ahUKEwiAjrXw6dDTAhVNZlAKHb06CKwQFgg7MAE&url=https%3A%2F%2Fgetcomposer.org%2F&usg=AFQjCNH7QQE7wICZatZPhYJLbpp9LfGRww)

`composer require barnebys/markup-protocol`

If your project does not support composer, you can either clone the project on GitHub or download the package from here. You will then have to manually add the library to your project.

Examples
--------

[](#examples)

### Auction Item

[](#auction-item)

Code

```
use Barnebys\Protocol\Object;
use Barnebys\Protocol\Auction;
use Barnebys\Protocol\Price;

// Creates a new object
$object = new Object();
$object ->setTitle('Rolex 1956')
        ->setDescription('A fine watch in mint condition.')
        ->setURL('http://test.com/lot/1234')
        ->setImage('http://test.com/lot/1234.jpg')
        ->setCategory('watches')
        ->setPrice(new Price(150, 200, 'EUR'))
        ->setAuction(new Auction('2017-04-22T15:03:01.012345Z', '2017-08-01T15:03:01.012345Z'));

// Prints the meta tags
echo $object;
```

Outputs

```

```

### Fixed Price Item

[](#fixed-price-item)

Code

```
// Creates a new object
$object = new Object();
$object ->setTitle('Rolex 1956')
        ->setDescription('A fine watch in mint condition.')
        ->setURL('http://test.com/lot/1234')
        ->setImage('http://test.com/lot/1234.jpg')
        ->setCategory('watches')
        ->setSold(false)
        ->setPrice(new Price(150, null, 'EUR'));

// Prints the meta tags
echo $object;
```

Outputs

```

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/26894649?v=4)[Barnebys Group AB](/maintainers/barnebys)[@barnebys](https://github.com/barnebys)

### Embed Badge

![Health badge](/badges/barnebys-markup-protocol/health.svg)

```
[![Health](https://phpackages.com/badges/barnebys-markup-protocol/health.svg)](https://phpackages.com/packages/barnebys-markup-protocol)
```

PHPackages © 2026

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