Net_URL_Mapper
[ class tree: Net_URL_Mapper ] [ index: Net_URL_Mapper ] [ all elements ]

Source for file create_package.xml.php

Documentation is available at create_package.xml.php

  1. <?php
  2. require_once('PEAR/PackageFileManager2.php');
  3. PEAR::setErrorHandling(PEAR_ERROR_DIE);
  4.  
  5. $packagexml = new PEAR_PackageFileManager2;
  6. $e $packagexml->setOptions(
  7. array(
  8.     'baseinstalldir' => 'Net/URL',
  9.     'packagedirectory' => dirname(__FILE__).'/..',
  10.     'filelistgenerator' => 'file',
  11.     'include' => array('*.php'),
  12.     'ignore' => array('scripts/''*.plex'),
  13.     'dir_roles' => array('tests' => 'test'),
  14.     ));
  15.  
  16. $version '0.9.0';
  17.  
  18. $packagexml->setPackage('Net_URL_Mapper');
  19. $packagexml->setSummary('Provides a simple and flexible way to build nice URLs for web applications.');
  20. $packagexml->setDescription(
  21. 'Net_URL_Mapper provides a simple and flexible way to build nice URLs for your web applications.
  22.  
  23. The URL syntax is similar to what can be found in Ruby on Rails or Python Routes module 
  24. and as such, this package can be compared to what they call a router. Still, Net_URL_Mapper 
  25. does not perform the dispatching like these frameworks and therefore can be used with your 
  26. own router.');
  27.  
  28. $packagexml->setChannel('pear.php.net');
  29. $packagexml->setAPIVersion('1.0.0');
  30. $packagexml->setReleaseVersion($version);
  31. $packagexml->setReleaseStability('beta');
  32. $packagexml->setAPIStability('stable');
  33. $packagexml->setNotes("Initial release");
  34. $packagexml->setPackageType('php');
  35.  
  36. $packagexml->setPhpDep('5.1.0');
  37. $packagexml->setPearinstallerDep('1.4.3');
  38.  
  39. $packagexml->addPackageDepWithChannel('required''Net_URL''pear.php.net''1.0.14');
  40.  
  41. $packagexml->addMaintainer('lead''mansion''Bertrand Mansion''golgote@mamasam.com');
  42. $packagexml->setLicense('New BSD License''http://opensource.org/licenses/bsd-license.php');
  43. $packagexml->generateContents();
  44. $packagexml->addGlobalReplacement('package-info''@package_version@''version');
  45.  
  46. if (isset($_GET['make']|| (isset($_SERVER['argv']&& @$_SERVER['argv'][1== 'make')) {
  47.     $packagexml->writePackageFile();
  48. else {
  49.     $packagexml->debugPackageFile();
  50. }
  51. ?>

Documentation generated on Mon, 11 Mar 2019 15:41:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.