Libraries API not working in my module I'm writing a module that will call some external php libraries. When I was searching for a way to import the library I found the Libraries API. After reading some documentation about the module and core features I found some example code.

When I implement it in my module nothing happens.
My movies.module file contains:

/**
* Implements hook_libraries_info()
**/
function movies_libraries_info()
{

  // This array key lets Libraries API search for 'sites/all/libraries/example'
  // directory, which should contain the entire, original extracted library.
  $libraries['imdb'] = array(
    // Only used in administrative UI of Libraries API.
    'name' =&gt; 'imdb', 
    'vendor url' =&gt; 'https://github.com/tboothman/imdbphp', 
    'download url' =&gt; 'https://github.com/tboothman/imdbphp/releases',
     // Default list of files of the library to load. Important: Only specify
    // third-party files belonging to the library here, not integration files of
    // your module. 
    'files' =&gt; array(
      // For PHP libraries, specify include files here, still relative to the
      // library path. 
      'php' =&gt; array(
        'bootstrap.php',
      ),
    ),
    // Optional: Register files to auto-load for your module. All files must be
    // keyed by module, and follow the syntax of the 'files' property. 
    'integration files' =&gt; array(
      'movies' =&gt; array(
        'php' =&gt; array('bootstrap.php'),
      ),
    ),
  );
  return $libraries;
}


No errors are thrown when enabling my module when the library is not installed.

How can my module load the external PHP library using the Libraries APi?
Add a composer.json file to your movies module &amp; name it your custom module's name:

{
  "name": "drupal/movies",
  "type": "drupal-module",
  "license": "GPL-2.0+",
  "require": {
    "imdbphp/imdbphp": "*"
  }
}

Add a new line to the merge-plugin include array in the composer.json of your Drupal ROOT with your module's composer file path:

"extra": {
  "merge-plugin": {
    "include": [
        "core/composer.json",
        "modules/custom/movies/composer.json"
    ]
  }
}

Enable the movies module
Run composer update &amp; composer dumpauto in Drupal ROOT. This will install &amp; autoload the new dependencies in your vendor directory.
Now you can use the classes provided by this library. In your case for example:

$title = new \Imdb\Title(335266);