You are here

function saml_sp_libraries_info in SAML Service Provider 7.2

Same name and namespace in other branches
  1. 7.8 saml_sp.module \saml_sp_libraries_info()
  2. 7.3 saml_sp.module \saml_sp_libraries_info()

Implements hook_libraries_info().

File

./saml_sp.module, line 305
SAML Service Provider

Code

function saml_sp_libraries_info() {
  $libraries['php-saml'] = array(
    'name' => 'Simple SAML toolkit for PHP',
    'vendor url' => 'https://github.com/onelogin/php-saml',
    'download url' => 'https://github.com/onelogin/php-saml/archive/master.zip',
    'version arguments' => array(
      'file' => 'CHANGELOG',
      'pattern' => '/v\\.([0-9a-zA-Z\\.-]+)/',
    ),
    'files' => array(
      'php' => array(
        'extlib/xmlseclibs/xmlseclibs.php',
        'lib/Saml2/Auth.php',
        'lib/Saml2/AuthnRequest.php',
        'lib/Saml2/Constants.php',
        'lib/Saml2/Error.php',
        'lib/Saml2/LogoutRequest.php',
        'lib/Saml2/LogoutResponse.php',
        'lib/Saml2/Metadata.php',
        'lib/Saml2/Response.php',
        'lib/Saml2/Settings.php',
        'lib/Saml2/Utils.php',
      ),
    ),
    'versions' => array(
      '2' => array(),
      '3' => array(
        'dependencies' => array(
          'xmlseclibs',
        ),
      ),
    ),
  );
  $libraries['xmlseclibs'] = array(
    'name' => 'XML Security Library (xmlseclibs)',
    'vendor url' => 'https://github.com/robrichards/xmlseclibs',
    'download url' => 'https://github.com/robrichards/xmlseclibs/archive/master.zip',
    'version arguments' => array(
      'file' => 'CHANGELOG.txt',
      'pattern' => '/[0-9?]{2}, [a-zA-Z?]{3} [0-9]{4}, (.*)/',
    ),
    'files' => array(
      'php' => array(
        'xmlseclibs.php',
      ),
    ),
  );
  return $libraries;
}