2017 © Pedro Peláez
 

library musicbrainz

A PHP library for accessing the MusicBrainz API

image

pbxg33k/musicbrainz

A PHP library for accessing the MusicBrainz API

  • Saturday, April 22, 2017
  • by PBX_g33k
  • Repository
  • 4 Watchers
  • 6 Stars
  • 268 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 42 Forks
  • 4 Open issues
  • 9 Versions
  • 2 % Grown

The README.md

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

MusicBrainz Web Service (v2) PHP class

This PHP library that allows you to easily access the MusicBrainz Web Service V2 API. Visit the MusicBrainz development page for more information., (*2)

This project is a fork of https://github.com/mikealmond/MusicBrainz which in turn is a fork of the discontinued project olds/phpbrainz (see the Network Graph). It takes some inspiration from the Python bindings, (*3)

Installation

install Composer

Download the installer file in your project folder:, (*4)

wget https://getcomposer.org/installer -O composer-setup.php

Review on Github if you which to know more about the inner workings of the Composer installer. The source is plain PHP. and then, (*5)

mkdir -p bin
php composer-setup.php --install-dir=bin --filename=composer

Now just run, (*6)

bin/composer install -vvv

This takes a while. Get a coffe or do some workout. When finished, open one of the examples in your browser: http://localhost/phpbrainz/examples/browse.php, (*7)

Usage Example

With Guzzle5
(this is the default in our composer.json), (*8)

setUserAgent('ApplicationName', '0.2', 'http://example.com');

    $args = array(
        "recording"  => "Buddy Holly",
        "artist"     => 'Weezer',
        "creditname" => 'Weezer',
        "status"     => 'Official'
    );
    try {
        $recordings = $brainz->search(new RecordingFilter($args));
        print_r($recordings);
    } catch (Exception $e) {
        print $e->getMessage();
    }
?>

With Guzzle3, (*9)

setUserAgent('ApplicationName', '0.2', 'http://example.com');

    $args = array(
        "recording"  => "Buddy Holly",
        "artist"     => 'Weezer',
        "creditname" => 'Weezer',
        "status"     => 'Official'
    );
    try {
        $recordings = $brainz->search(new RecordingFilter($args));
        print_r($recordings);
    } catch (Exception $e) {
        print $e->getMessage();
    }
?>

Look in the /examples folder for more., (*10)

Requirements

  • PHP (5.6 or later)
  • cURL extension
    install with sudo apt-get install php-curl

License

Short: Use it in any project, no matter if it is commercial or not. Just don't remove the copyright notice., (*11)

MIT License, (*12)

Copyright © 2015 Mike Almond, (*13)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*14)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*15)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*16)

The Versions

22/04 2017

dev-feature/guzzle6

dev-feature/guzzle6 https://github.com/powered-by-moe/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Development Requires

api php library musicbrainz

21/10 2016

dev-PBXg33k-patch-1

dev-PBXg33k-patch-1 https://github.com/powered-by-moe/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Development Requires

api php library musicbrainz

21/10 2016

dev-master

9999999-dev https://github.com/powered-by-moe/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Development Requires

api php library musicbrainz

21/10 2016

dev-develop

dev-develop https://github.com/powered-by-moe/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Development Requires

api php library musicbrainz

16/04 2016

v0.3.0

0.3.0.0 https://github.com/powered-by-moe/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Development Requires

api php library musicbrainz

17/09 2015

v0.2.2

0.2.2.0 https://github.com/mikealmond/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Requires

  • php >=5.3.8

 

The Development Requires

api php library musicbrainz

19/02 2014

v0.2.1

0.2.1.0 https://github.com/mikealmond/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Requires

  • php >=5.3.8

 

The Development Requires

api php library musicbrainz

19/02 2014

v0.2.0

0.2.0.0 https://github.com/mikealmond/musicbrainz

A PHP library for accessing the MusicBrainz API

  Sources   Download

MIT

The Requires

  • php >=5.3.8

 

The Development Requires

api php library musicbrainz

30/04 2013

v0.1.0

0.1.0.0 https://github.com/mikealmond/musicbrainz

A library for accessing the musicbrainz API

  Sources   Download

MIT

The Requires

 

api php library musicbrainz