pear install -f symfony/symfony-1.2.4
You will need the original package.xml, it can be usefull for package maintainers to provide source of their package as i did for my PHP_Debug pkg
// file function showSource($dir, $file) { $path = $dir. $file; print('<div>'); print('<h1>'. $path. '</h1>'); highlight_file($path); print('</div>'. "\n"); } // Dir function parseDir($dir, $parent) { $path = $parent. ($dir['name'] != '/' ? $dir['name']. '/' : ''); foreach($dir->file as $file) { if (in_array($file['role'], array('test', 'php'))) { showSource($path, $file['name']); } } foreach($dir->dir as $child) { parseDir($child, $path); } return; } $package = simplexml_load_file('package.xml'); $dir = ''; parseDir($package->contents->dir, $dir);
logs
8031.7 KB