composer.json / cakephp

I want to use: Copied the lib in myapp->vendor Folder. Installed Guzzle with composer and updated composer.

use GuzzleHttp\Client;
use MusicBrainz\Filters\ArtistFilter;
use MusicBrainz\Filters\RecordingFilter;
use MusicBrainz\HttpAdapters\GuzzleHttpAdapter;
use MusicBrainz\MusicBrainz;

require __DIR__ . '/vendor/autoload.php';

The autoload does not work. I tried many things and don't know, what to write in the composer.json.

Error: Class 'MusicBrainz\MusicBrainz' not found 

When i call:

$brainz = new MusicBrainz(new GuzzleHttpAdapter(new Client()));

I tried in composer.json

"require-dev": {
     "vendor/MusicBrainz": "dev-master"
    "repositories": [
            "type": "vcs",
            "url":  ""

Then composer update... And i get:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package src/musicbrainz could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <> for more details.

Read <> for further common problems.


Go to the linked repository page on Github. In the root folder, click on the file named composer.json. Search for a line with "name". The text right to it is the name of this package that you have to use in Composer.

Alternatively, go to and type something close to the actual name into the search field, like musicb. Something will be found:

In any case, you will find the package name: mikealmond/musicbrainz.

Now go to the command line and type: composer require mikealmond/musicbrainz. Composer will do the rest, including the download of Guzzle because this is declared as a dependency.

After that step, the demo code will work - or at least will not fail because of missing classes.

Need Your Help

Sphinx/Solr/Lucene/Elastic Relevancy

lucene solr sphinx

We have an extremely large database of 30+ Million products, and need to query them to create search results and ad displays thousands of times a second. We have been looking into Sphinx, Solr, Luc...

VB Access database Preventing Duplicate Entries error

database ms-access duplicate-removal

sqlLink.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='C:\Users\will\Documents\Computing\ComputingProjectDatabase.accdb';"