PHPackages                             polianych/media-net-api - 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. [API Development](/categories/api)
4. /
5. polianych/media-net-api

ActiveLibrary[API Development](/categories/api)

polianych/media-net-api
=======================

MediaNet API support for ZF2 application

0.1.1(12y ago)2261MITPHPPHP &gt;=5.3.3

Since Mar 13Pushed 12y agoCompare

[ Source](https://github.com/polianych/MediaNetApi)[ Packagist](https://packagist.org/packages/polianych/media-net-api)[ Docs](https://github.com/polianych/MediaNetApi)[ RSS](/packages/polianych-media-net-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

MediaNetApi
===========

[](#medianetapi)

MediaNet API support for ZF2 application Introduction
-----------------------------------------------------

[](#medianet-api-support-for-zf2-applicationintroduction)

This module currently supports the following calls with API version \[2011-10-07\]

- track.get
- track.getLocations
- search.getGeoLocation
- purchase.useBalance
- Radio.GetMediaLocation

Please see: [API Docs](http://www.mndigital.com/MN_Open_API/MN_Open_API_Implementation_Guide_PartTwo.pdf)

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

[](#requirements)

- PHP 5.3.3+
- [Zend Framework 2](https://github.com/zendframework/zf2) (latest master)

Contributors
------------

[](#contributors)

- \[Alexey Poliakov\] () (aka polianych)

Install
-------

[](#install)

1. Add ```
    "polianych/media-net-api": "dev-master"
    ```

     to your composer.json file and run php composer.phar update.
2. Add 'MediaNetApi' to your config/application.config.php file under the modules key.

Configuration
-------------

[](#configuration)

Add this section to your application config

```
...
'medianet_api' => array(
        'base_url' => 'https://api.mndigital.com',
        'api_key' => 'wsQdZA8EDdruT4CV62Fi48JSl',
        'secret' => 'PLJuvKAoi65',
        'format' => 'json', //Currently supports only JSON format
        'cc' => 'gb',
    ),
...
```

Example Usage
-------------

[](#example-usage)

Retrieve by MediaNetID (mnetid) the metadata about a specific track, including artist and album info, etc.

```
$mediaNet = $this->getServiceLocator()->get('MediaNetApi');
$request = new MediaNetApi\Request\Track\Get();
$request->setMnetId($mnetId);
//Returns ArrayObject of MediaNet API response or Zend Response if second param true
$result = $mediaNet->send($request);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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 ~76 days

Total

2

Last Release

4729d ago

### Community

Maintainers

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

---

Top Contributors

[![polianych](https://avatars.githubusercontent.com/u/3264544?v=4)](https://github.com/polianych "polianych (11 commits)")

---

Tags

apizendmodulezf2medianet

### Embed Badge

![Health badge](/badges/polianych-media-net-api/health.svg)

```
[![Health](https://phpackages.com/badges/polianych-media-net-api/health.svg)](https://phpackages.com/packages/polianych-media-net-api)
```

###  Alternatives

[evandotpro/edp-github

Github API integration module for Zend Framework 2

241.6k](/packages/evandotpro-edp-github)[narno/gandi-api

Simple PHP library for the Gandi API.

1622.3k](/packages/narno-gandi-api)

PHPackages © 2026

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