PHPackages                             picturae/mediabank - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. picturae/mediabank

ActiveLibrary[File &amp; Storage](/categories/file-storage)

picturae/mediabank
==================

Picturae webkitchen mediabank

0.2.1(9y ago)03.5k1MITPHPPHP &gt;=5.4.0

Since Aug 26Pushed 9y ago23 watchersCompare

[ Source](https://github.com/picturae/mediabank)[ Packagist](https://packagist.org/packages/picturae/mediabank)[ RSS](/packages/picturae-mediabank/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/00415e2163eeb5a33437cfca46ac9d06d4568e46408cf6c9b0b8d821700b811f/68747470733a2f2f7472617669732d63692e6f72672f70696374757261652f6d6564696162616e6b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/picturae/mediabank)[![Coverage Status](https://camo.githubusercontent.com/71949d751de14823f46e4f689cee171ff293372b6e9281be82a0a68bf89c95fa/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f70696374757261652f6d6564696162616e6b2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/picturae/mediabank?branch=master)[![Dependency Status](https://camo.githubusercontent.com/53b4967ec27e963238ae888d19cb8d10703eeb026f6f4c07da367842377abcca/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535646462656236386439633462303031383030303966642f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55ddbeb68d9c4b00180009fd)

Picturae webkitchen mediabank client
====================================

[](#picturae-webkitchen-mediabank-client)

Introduction
------------

[](#introduction)

The mediabank client library is released for third parties who want to integrate a serverside fallback for the mediabank component. This can be used to improve SEO ranking (or) and sharing on social networks as facebook, twitter which do not support javascript.

Currently there is only a PHP implementation but it can serve as an example for implementation in other languages as Javascript / C# / Java etc.

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

[](#installation)

```
composer require picturae/mediabank

```

Usage
-----

[](#usage)

See below the code example for the client

```
$client = new \Picturae\Mediabank\Client('api-key');

// Get a record
$media = $client->getMedia($id);

// Get a result list
// all parameters are optional
$result = $client->search([
    'q' => 'something', // search query
    'rows' => 100,      // amount of rows to return
    'page' => 1,        // page to return
    'facetFields' => [  // facet's to return
        'search_s_place'
    ],
    'fq' => [
        'search_s_place: "Amsterdam"' // apply filter query
    ],
    'sort' => 'search_s_place asc'   // sort result set (default by relevance)
]);
```

### Serverside fallback

[](#serverside-fallback)

[Full example](examples/serverside-fallback/)

```
// If you do not provide a url the current url is used
$url = new \Picturae\Mediabank\URL();

// Check if we are on a permalink
if ($url->isDetail()) {

    // Get the id for the record from the URL
    $id = $url->getUUID();

    // Instantiate the client with your API key
    $client = new \Picturae\Mediabank\Client('api-key');

    // Fetch the record
    $media = $client->getMedia($id);

    // Check if the record is returned
    if (!empty($media) {

        // Add your logic for the fallback
        // e.g add opengraph tags for facebook / twitter
        // or provide a html fallback

    }
}
```

### Sitemap

[](#sitemap)

For an example how to implement a sitemap to improve discoverability for search engines look at the [sitemap example](examples/sitemap/)

### Refresh

[](#refresh)

Refresh data in the API, updates the image in the API only use sparingly when a record is modified and must be shown on the frontend directly.

```
$client->refresh($entity, $id);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~117 days

Total

5

Last Release

3449d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6350acbb7c6c11a081ece3cb610ca52094f1f224491da5cd78cac6aef4f0a99e?d=identicon)[danielsmink](/maintainers/danielsmink)

![](https://www.gravatar.com/avatar/fbeaa436738692ddf6e27586aca3cac18d803896b5b763885efcc1c334e75119?d=identicon)[mech7](/maintainers/mech7)

---

Top Contributors

[![cdekok](https://avatars.githubusercontent.com/u/190633?v=4)](https://github.com/cdekok "cdekok (20 commits)")

### Embed Badge

![Health badge](/badges/picturae-mediabank/health.svg)

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

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15161.6M2.6k](/packages/illuminate-filesystem)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)[madnest/madzipper

Easier zip file handling for Laravel applications.

1382.3M6](/packages/madnest-madzipper)

PHPackages © 2026

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