You are here

function mailgun_libraries_info in Mailgun 7

Implements hook_libraries_info().

File

./mailgun.module, line 136
Provides integration with Mailgun's email sending API.

Code

function mailgun_libraries_info() {
  $libraries['mailgun'] = array(
    'name' => 'Mailgun PHP library',
    'vendor url' => 'https://documentation.mailgun.com/en/latest/libraries.html#php',
    'download url' => 'https://github.com/mailgun/mailgun-php',
    'version arguments' => array(
      'file' => 'vendor/mailgun/mailgun-php/CHANGELOG.md',
      'pattern' => '/##\\W+((\\d+)\\.(\\d+))/',
    ),
    // Path to the 'autoload.php' created by Composer.
    'path' => 'vendor',
    'files' => array(
      'php' => array(
        'autoload.php',
      ),
    ),
  );
  return $libraries;
}