Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: tags/RELEASE_1…
Fetching contributors…

Cannot retrieve contributors at this time

78 lines (67 sloc) 2.77 KB
* This is the package.xml generator for HTML_AJAX
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to so we can mail you a copy immediately.
* @category pear
* @package PEAR_PackageFileManager
* @author Greg Beaver <>
* @copyright 2005 The PHP Group
* @license PHP License 3.0
* @version CVS: $Id$
* @link
* @since File available since Release 0.1.0
require_once 'PEAR/PackageFileManager.php';
$version = '0.2.5';
$notes = <<<EOT
Small optimizations and cleanup of HTML_AJAX and HTML_AJAX_Server
Case fixes for specifing case while exporting a class
Fix url creation in javascript allowing server urls to contain parameters
Added a flag to turn off sending a Content-Length header
$description =<<<EOT
Provides PHP and JavaScript libraries for performing AJAX (Communication from JavaScript to your browser without reloading the page)
$package = new PEAR_PackageFileManager;
$result = $package->setOptions(array(
'package' => 'HTML_AJAX',
'summary' => 'PHP and JavaScript AJAX library',
'description' => $description,
'version' => $version,
'state' => 'alpha',
'license' => 'lgpl',
'ignore' => array('package.php', 'package.xml', '*.bak', '*src*', '*.tgz','test.bat','build.php','DeveloperNotes.txt'),
'filelistgenerator' => 'file', // other option is 'file'
'notes' => $notes,
'changelogoldtonew' => false,
'baseinstalldir' => 'HTML', // if your package is like "Packagename" use ''
'packagedirectory' => '',
'simpleoutput' => true
$package->addReplacement('AJAX/Server.php','pear-config', '@data-dir@', 'data_dir');
if (PEAR::isError($result)) {
echo $result->getMessage();
$package->addMaintainer('jeichorn','lead','Joshua Eichorn','');
$package->addMaintainer('davidc','lead','David Coallier','');
// dependencies can be added at will here
$package->addDependency('PEAR', '1.3.5', 'ge', 'pkg', false);
$package->addDependency('php', '4.1.0', 'ge', 'php', false);
if (isset($_SERVER['argv'][1]) && $_SERVER['argv'][1] == 'commit') {
$result = $package->writePackageFile();
} else {
$result = $package->debugPackageFile();
if (PEAR::isError($result)) {
echo $result->getMessage();
Jump to Line
Something went wrong with that request. Please try again.