You are here

function saml_sp_libraries_info in SAML Service Provider 7.8

Same name and namespace in other branches
  1. 7.2 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 242
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(
        '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',
      ),
    ),
    'dependencies' => array(
      'xmlseclibs',
    ),
  );
  $libraries['xmlseclibs'] = array(
    'name' => 'XML Encryption and Signatures',
    'vendor url' => 'https://code.google.com/p/xmlseclibs/',
    'download url' => 'https://xmlseclibs.googlecode.com/files/xmlseclibs-1.3.1.tar.gz',
    'version arguments' => array(
      'file' => 'xmlseclibs.php',
      'pattern' => '/@version\\s*(.*)$/',
      'lines' => 100,
    ),
    'files' => array(
      'php' => array(
        'xmlseclibs.php',
      ),
    ),
  );
  return $libraries;
}