How to add a 3rd party library and call it using Libraries I've installed the Libraries module. How can I add a 3rd party PHP library in my Drupal 7 project. How do I use hook_libraries_info()?
The Libraries project page has good documentation on how to use version 2.x API. Essentially, there are 2 components to it.

You're defining an implementation of hook_libraries_info(), that returns an array that defines the library's machine name, resources to load, &amp; a means to validate the library version (either an version arguments element that defines the array passed to libraries_get_version() or a custom version callback function).

/**
 * Implements hook_libraries_info().
 *
 */
function MYMODULE_libraries_info() {

  // Define 'simple' as the machine name of library 
  // which will be stored in sites/all/libraries/simple
  $libraries['simple'] = array(

    // This gets passed to the $options array in libraries_get_version()
    'version arguments' =&gt; array(
      'file' =&gt; 'simple.js', 
      'pattern' =&gt; '/Version (\d+)/', 
      'lines' =&gt; 5,
    ),

    // Alternatively, MYMODULE_version_callback could be defined.
    // this function returns TRUE/FALSE if it finds a valid version of the library
    //'version callback' =&gt; 'MYMODULE_version_callback',

    // Defines the PHP,JS,CSS files to load for the library
    'files' =&gt; array(
      'js' =&gt; array('simple.js'), //this can be a path to the file location like array('lib/simple.js')
    ),
  );

  return $libraries;
}


The 2nd component is to load the library using libraries_load() wherever you need in your module.

//Load the 'simple' library
libraries_load('simple');


See the linked documentation for more information.