[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/twilio-php/ -> package.php (source)

   1  <?php
   2  
   3  /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
   4  
   5  /**
   6   * This is the package.xml generator for Services_Twilio
   7   *
   8   * PHP version 5
   9   *
  10   * LICENSE:
  11   *
  12   * Copyright 2014 Twilio.
  13   *
  14   * Licensed under the Apache License, Version 2.0 (the "License");
  15   * you may not use this file except in compliance with the License.
  16   * You may obtain a copy of the License at
  17   *
  18   *   http://www.apache.org/licenses/LICENSE-2.0
  19   *
  20   * Unless required by applicable law or agreed to in writing, software
  21   * distributed under the License is distributed on an "AS IS" BASIS,
  22   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  23   * See the License for the specific language governing permissions and
  24   * limitations under the License.
  25   *
  26   * @category  Services
  27   * @package   Services_Twilio
  28   * @author    Neuman Vong <[email protected]>
  29   * @copyright 2014 Twilio
  30   * @license   http://creativecommons.org/licenses/MIT/
  31   * @link      http://pear.php.net/package/Services_Twilio
  32   */
  33  
  34  ini_set('display_errors', '0');
  35  error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);
  36  require_once 'PEAR/PackageFileManager/File.php';
  37  require_once 'PEAR/PackageFileManager2.php';
  38  PEAR::setErrorHandling(PEAR_ERROR_DIE);
  39  
  40  $api_version     = '3.12.4';
  41  $api_state       = 'stable';
  42  
  43  $release_version = '3.12.4';
  44  $release_state   = 'stable';
  45  $release_notes   = 'Add transcription link to recordings';
  46  
  47  $description = <<<DESC
  48  A SDK (or helper library, as we're calling them) for PHP developers to write
  49  applications against Twilio's REST API and generate TwiML responses.
  50  DESC;
  51  
  52  $package = new PEAR_PackageFileManager2();
  53  
  54  $package->setOptions(
  55      array(
  56          'filelistgenerator'       => 'file',
  57          'simpleoutput'            => true,
  58          'baseinstalldir'          => '/',
  59          'packagedirectory'        => './',
  60          'dir_roles'               => array(
  61              'Services'            => 'php',
  62              'Services/Twilio'     => 'php',
  63              'tests'               => 'test'
  64          ),
  65          'ignore'                  => array(
  66              'package.php',
  67              '*.tgz',
  68              'scratch/*',
  69              'vendor/*',
  70              'composer.*',
  71              'coverage/*',
  72              '.travis.yml',
  73              'venv/*',
  74          )
  75      )
  76  );
  77  
  78  $package->setPackage('Services_Twilio');
  79  $package->setSummary('PHP helper library for Twilio');
  80  $package->setDescription($description);
  81  $package->setChannel('twilio.github.com/pear');
  82  $package->setPackageType('php');
  83  $package->setLicense(
  84      'MIT License',
  85      'http://creativecommons.org/licenses/MIT/'
  86  );
  87  
  88  $package->setNotes($release_notes);
  89  $package->setReleaseVersion($release_version);
  90  $package->setReleaseStability($release_state);
  91  $package->setAPIVersion($api_version);
  92  $package->setAPIStability($api_state);
  93  
  94  $package->addMaintainer(
  95      'lead',
  96      'kevinburke',
  97      'Kevin Burke',
  98      '[email protected]'
  99  );
 100  
 101  
 102  $package->setPhpDep('5.2.1');
 103  
 104  $package->addPackageDepWithChannel('optional', 'Mockery', 'pear.survivethedeepend.com');
 105  
 106  $package->setPearInstallerDep('1.9.3');
 107  $package->generateContents();
 108  $package->addRelease();
 109  
 110  if (isset($_GET['make'])
 111      || (isset($_SERVER['argv']) && @$_SERVER['argv'][1] == 'make')
 112  ) {
 113      $package->writePackageFile();
 114  } else {
 115      $package->debugPackageFile();
 116  }
 117  


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1