PHPackages                             mutantlabs/simplempd - 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. mutantlabs/simplempd

ActiveLibrary[API Development](/categories/api)

mutantlabs/simplempd
====================

Simple PHP Wrapper for MDP is a PHP class for interfacing with the MPD Music Daemon. It allows you to develop an API to interface with MPD

2472JavaScript

Since Jun 28Pushed 12y ago1 watchersCompare

[ Source](https://github.com/mutantlabs/SimpleMPDWrapper)[ Packagist](https://packagist.org/packages/mutantlabs/simplempd)[ RSS](/packages/mutantlabs-simplempd/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SimpleMPDWrapper
================

[](#simplempdwrapper)

\#Install

Depends on

Install simplempd with Composer:

- .
- More information available under .

Create a `composer.json`:

```
{
    "require": {
        "mutantlabs/simplempd": "dev-master"
    }
}
```

and run

```
$ wget http://getcomposer.org/composer.phar
$ php composer.phar install
```

After the installation, you need to include the `vendor/autoload.php` to make the class in your script available.

```
include 'vendor/autoload.php';
```

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

[](#requirements)

- PHP 5.3 and above.
- PHPUnit to execute the test suite.
- Setup PATH\_INFO in mod\_rewrite (.htaccess) or other webserver configuration

htaccess Example:

```
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

```

Simple PHP Wrapper for MDP is a PHP class for interfacing with the MPD Music Daemon. It allows you to develop an API to interface with MPD

\#SimpleMPDWrapper Class usage

use SimpleMPDWrapper

```
use MPDWrapper\SimpleMPDWrapper;
```

Construct a new SimpleMPDWrapper instance Required parameters: Password, MPD Server address, Port, Refresh interval

```
$mp = new SimpleMPDWrapper("","192.168.0.1",6600,0);
```

Send a command using the send method:

```
echo json_encode($mp->send("add", "spotify:track:48mZ0CGCffjH49h5lAPTIe"));
```

Or utilise the quick method wrappers

```
echo json_encode($mp->add("spotify:track:48mZ0CGCffjH49h5lAPTIe"));
```

\#SimpleMPDWrapper API Method using php-rest-service
----------------------------------------------------

[](#simplempdwrapper-api-method-using-php-rest-service)

```
include 'vendor/autoload.php';

use MPDWrapper\SimpleMPDWrapper;
use RestService\Server;

Server::create('/')
->addGetRoute('add/(.*)', function($data){
            $mp = new SimpleMPDWrapper("","192.168.1.120",6600,0);
            $response = array(
                'message' => 'track sent to mutant playlist',
                'track' => $data,
                'response' => $mp->add($data)
            );
            return $response;
        })
->run();
```

License
-------

[](#license)

- Licensed under the MIT License. See the LICENSE file for more details.
- marcj/php-rest-service is Licensed under the MIT License. See  for more details

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ae7295eb43363471a03a3f9e62c27991bfdcccb5f873f978e5f9a76119a10d?d=identicon)[mutantlabs](/maintainers/mutantlabs)

---

Top Contributors

[![mijahn-ben](https://avatars.githubusercontent.com/u/857085?v=4)](https://github.com/mijahn-ben "mijahn-ben (39 commits)")

### Embed Badge

![Health badge](/badges/mutantlabs-simplempd/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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