blob: d30a4679fef5c61b9eba0836920ad83e93300673 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
$remote = new PEAR_Remote($config);
$result = $remote->call('package.listAll', 1);
$i = $j = 0;
heading("Available packages");
foreach ($result as $package => $info) {
if ($i++ % 20 == 0) {
if ($j++ > 0) {
print "\n";
}
printf("%-20s %-10s %-15s %s\n",
"Package", "Stable", "Lead", "Category");
print str_repeat("-", 75)."\n";
}
if (empty($info['stable'])) {
$info['stable'] = '(none)';
}
$stable = (string)$info['stable'];
printf("%-20s %-10s %-15s %s\n", $info['name'],
$info['stable'], $info['lead'], $info['category']);
}
?>
|