Hopefully this helps some folks out.

As mentioned elsewhere you need to get the PHP-API-Wrapper not the MAPI wrapper and put it in /libraries/PHP-API-Wrapper. The module will then detect the library and will appear to work. However, if you try to make an API client you'll get a white screen of death. The reason for this is that the library uses composer to build its autoloader.

If you look in the brightcove.module file you'll find this

function brightcove_libraries_info() {
  return [
    'PHP-API-Wrapper' => [
      'name' => 'Brightcove API Wrapper',
      'vendor url' => 'https://github.com/brightcove/PHP-API-Wrapper',
      'download url' => 'https://github.com/brightcove/PHP-API-Wrapper/archive/master.zip',
      'version callback' => '_brightcove_api_version',
      'files' => [
        'php' => [
          'vendor/autoload.php',
        ],
      ],
    ],
  ];
}

But inside the /sites/all/libraries/PHP-API-Wrapper folder there is no vender folder. If you take the information you get on line 1928 after "libraries_load('PHP-API-Wrapper') is called, you'll see that while the library is installed, loaded=0. This will grant you the power of WSOD.

What you need to do to get rolling is follow the instructions on the library's github page. Specifically:


# apt-get install php5 php5-curl curl
PHP-API-Wrapper$ curl -sS https://getcomposer.org/installer | php
PHP-API-Wrapper$ php composer.phar install

This is done from within the /sites/all/libraries/PHP-API-Wrapper folder. Chances are that you'll already have curl, but the other steps are necessary.

This generates the vaunted vendor/autoloader.php file and then the module functions properly.

For folks who don't have the ability to run these commands, I've attached what composer built for me that should work for you. You can put it in your PHP-API-Wrapper folder.

CommentFileSizeAuthor
composer.zip1.49 MBsoyarma
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

soyarma created an issue. See original summary.

jan.mashat’s picture

Assigned: Unassigned » tamasd
Status: Active » Needs work
johnennew’s picture

Confusion for most people probably comes from the README.txt file which still has instructions which tell users to install the MAPI wrapper

jan.mashat’s picture

README.txt will be removed in next release as per https://www.drupal.org/node/2572439

jan.mashat’s picture

Version: 7.x-6.0 » 7.x-6.1
Status: Needs work » Closed (fixed)