You are here

phpwkhtmltopdf.module in PHP WK HTML to PDF 7.2

Same filename and directory in other branches
  1. 7 phpwkhtmltopdf.module

File

phpwkhtmltopdf.module
View source
<?php

/**
 * Implements hook_libraries_info().
 */
function phpwkhtmltopdf_libraries_info() {
  return array(
    // Define the phpwkhtmltopdf library details.
    'phpwkhtmltopdf' => array(
      'name' => 'PHPWkHtmlToPdf',
      'vendor url' => 'https://github.com/mikehaertl/phpwkhtmltopdf',
      'download url' => 'https://github.com/mikehaertl/phpwkhtmltopdf/archive/2.0.1.tar.gz',
      'version arguments' => array(
        'file' => 'src/Pdf.php',
        'pattern' => '/version ([0-9\\.\\w-]+)/',
      ),
      'files' => array(
        'php' => array(
          'src/Pdf.php',
          'src/Image.php',
          'src/Command.php',
        ),
      ),
      'integration files' => array(
        // Add our custom wrapper class for backward compatibility.
        'phpwkhtmltopdf' => array(
          'lib/phpwkhtmltopdf.php',
        ),
      ),
      'dependencies' => array(
        'php-shellcommand (>=1.0.2)',
        'php-tmpfile (>=1.0.0)',
      ),
    ),
    // Define the php-shellcommand' library details.
    'php-shellcommand' => array(
      'name' => 'php-shellcommand',
      'vendor url' => 'https://github.com/mikehaertl/php-shellcommand',
      'download url' => 'https://github.com/mikehaertl/php-shellcommand/archive/1.0.3.tar.gz',
      'version arguments' => array(
        'file' => 'src/Command.php',
        'pattern' => '/version ([0-9\\.\\w-]+)/',
      ),
      'files' => array(
        'php' => array(
          'src/Command.php',
        ),
      ),
    ),
    // Define the php-tmpfile library details.
    'php-tmpfile' => array(
      'name' => 'php-tmpfile',
      'vendor url' => 'https://github.com/mikehaertl/php-tmpfile',
      'download url' => 'https://github.com/mikehaertl/php-tmpfile/archive/1.0.0.tar.gz',
      'version arguments' => array(
        'file' => 'src/File.php',
        'pattern' => '/version ([0-9\\.\\w-]+)/',
      ),
      'files' => array(
        'php' => array(
          'src/File.php',
        ),
      ),
    ),
  );
}

Functions