Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

83 lines (78 sloc) 2.9 KB
* Generates the package.xml file for the Services_W3C_HTMLValidator package.
* PHP versions 5
* @category Services
* @package Services_W3C_HTMLValidator
* @author Brett Bieber <>
* @license BSD
* @version CVS: $id$
* @link
* @since File available since Release 0.2.0
ini_set('display_errors', true);
require_once 'PEAR/PackageFileManager2.php';
require_once 'PEAR/PackageFileManager/File.php';
require_once 'PEAR/Task/Postinstallscript/rw.php';
require_once 'PEAR/Config.php';
require_once 'PEAR/Frontend.php';
* @var PEAR_PackageFileManager
$pfm = PEAR_PackageFileManager2::importOptions('package.xml', array(
//$pfm = new PEAR_PackageFileManager2();
'packagedirectory' => dirname(__FILE__),
'baseinstalldir' => '/',
'filelistgenerator' => 'svn',
'ignore' => array( 'package.xml',
'simpleoutput' => true,
$pfm->setPackageType('php'); // this is a PEAR-style php script package
$pfm->setSummary('An Object Oriented Interface to the W3C HTML Validator service.');
$pfm->setDescription('This package provides an object oriented interface to the API
of the W3 HTML Validator application (
With this package you can connect to a running instance of the validator and
retrieve the validation results (true|false) as well as the errors and warnings
for a web page.
By using the SOAP 1.2 output format from the validator, you are returned simple
objects containing all the information from the validator. With this package it is
trivial to build a validation system for web publishing.
First stable release:
* Fix Exception throwing for PHP versions < 5.3.
* Increase PEAR Installer dependency to 1.5.4
* Bug #17339 PHP Strict Standards
//$pfm->addMaintainer('lead', 'saltybeagle', 'Brett', '');
$pfm->setLicense('BSD', '');
$pfm->addPackageDepWithChannel('required', 'HTTP_Request2', '', '0.2.0');
if (isset($_SERVER['argv']) && $_SERVER['argv'][1] == 'make') {
} else {
Jump to Line
Something went wrong with that request. Please try again.