PHPackages                             shortlist-digital/agreable-advert-plugin - 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. shortlist-digital/agreable-advert-plugin

ActiveWordpress-plugin

shortlist-digital/agreable-advert-plugin
========================================

A tres agreable Adverts plugin for Croissant compatible sites

3.0.3(9y ago)01.9k1MITPHP

Since Feb 25Pushed 8y ago3 watchersCompare

[ Source](https://github.com/shortlist-digital/agreable-advert-plugin)[ Packagist](https://packagist.org/packages/shortlist-digital/agreable-advert-plugin)[ RSS](/packages/shortlist-digital-agreable-advert-plugin/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (43)Used By (0)

Shortlist Media Wordpress Advert Plugin
=======================================

[](#shortlist-media-wordpress-advert-plugin)

Wordpress Plugin built for Croissant stack using [Herbert](http://getherbert.com/) plugin framework.

---

Use within Twig
---------------

[](#use-within-twig)

### Get advert HTML

[](#get-advert-html)

```

{{ get_advert_html(post, 'horizontal', [{'pos': 'top'}]) }}

    { ...advert object }

```

### Get advert data

[](#get-advert-data)

```

{{ get_advert_data(post, 'horizontal', [{'pos': 'top'}]) }}

{
  'type': 'horizontal',
  'key-values': [{'pos': 'top'}],
  'devices': {
    'desktop': {
      'creative-sizes': [[970, 250], [728, 90]]
    },
    'tablet': {
      'creative-sizes': [[728, 90]]
    },
    'mobile': {
      'creative-sizes': [[320, 50]]
    }
  }
}

```

Use within PHP
--------------

[](#use-within-php)

```
$advert_data = AgreableAdvertPlugin\Services\AdvertSlotGenerator::get_advert_data($post, 'horizontal', ['pos' => 'top']);
var_dump($advert_data);
// Outputs
{
  'type': 'horizontal',
  'key-values': [{'pos': 'top'}],
  'devices': {
    'desktop': {
      'creative-sizes': [[970, 250], [728, 90]]
    },
    'tablet': {
      'creative-sizes': [[728, 90]]
    },
    'mobile': {
      'creative-sizes': [[320, 50]]
    }
  }
}

```

API routes
----------

[](#api-routes)

Get a single advert, rendered as HTML, complete with container CSS and JS to load (for Instant Articles):

```
/advert/{post_id}/{post_type}/{key_values}
/advert/2074/horizontal/pos=top,another_key=value

```

Ad type
-------

[](#ad-type)

### Horizontal

[](#horizontal)

- Billboard 970x250
- Leaderboard 728x90
- Mobile banner

```
{
  'type': 'horizontal',
  'key-values': [{'pos': 'top|2'}],
  'devices': {
    'desktop': {
      'creative-sizes': [[970, 250], [728, 90]]
    },
    'tablet': {
      'creative-sizes': [[728, 90]]
    },
    'mobile': {
      'creative-sizes': [[320, 50]]
    }
  }
}

```

### Vertical

[](#vertical)

- HPU 300x600
- MPU 300x250

```
{
  'type': 'horizontal',
  'key-values': [{'pos': 'top|2'}],
  'devices': {
    'desktop': {
      'creative-sizes': [[300, 600], [300, 250]]
    },
    'tablet': {
      'creative-sizes': [[300, 600], [300, 250]]
    },
    'mobile': {
      'creative-sizes': [[300, 250]]
    }
  }
}

```

### In-Article

[](#in-article)

```
{
  'type': 'in-article (tbc)',
  'key-values': [{'pos': 'top|2'}],
  'devices': {
    'desktop': {
      'creative-sizes': [[300, 600], [300, 250]]
    },
    'tablet': {
      'creative-sizes': [[300, 600], [300, 250]]
    },
    'mobile': {
      'creative-sizes': [[300, 250]]
    }
  }
}

```

### Skin

[](#skin)

```
{
  'type': 'skin',
  'key-values': [{'pos': 'skin', 'pos': 'l|r'}],
  'devices': {
    'desktop': {
      'creative-sizes': [[300, 900]]
    }
  }
}

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 85.4% 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 ~9 days

Recently: every ~36 days

Total

35

Last Release

3402d ago

Major Versions

0.16.1 → 2.1.02016-04-14

2.7.1 → 3.0.02016-11-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/61ad7e6bf7e888532cab85057b18648b093e470d0f2277548b302ac494de9e31?d=identicon)[shortlist-digital](/maintainers/shortlist-digital)

---

Top Contributors

[![ecoad](https://avatars.githubusercontent.com/u/596528?v=4)](https://github.com/ecoad "ecoad (35 commits)")[![jonsherrard](https://avatars.githubusercontent.com/u/631670?v=4)](https://github.com/jonsherrard "jonsherrard (5 commits)")[![iamdeaneyelid](https://avatars.githubusercontent.com/u/1761265?v=4)](https://github.com/iamdeaneyelid "iamdeaneyelid (1 commits)")

### Embed Badge

![Health badge](/badges/shortlist-digital-agreable-advert-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/shortlist-digital-agreable-advert-plugin/health.svg)](https://phpackages.com/packages/shortlist-digital-agreable-advert-plugin)
```

###  Alternatives

[getkirby/cms

The Kirby core

1.5k535.5k352](/packages/getkirby-cms)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[neos/flow

Flow Application Framework

862.0M451](/packages/neos-flow)

PHPackages © 2026

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