csv2confluence

raw

csv2confluence.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env php
<?php
/**
 * Converts CSV data tables to atlassian confluence markup
 *
 * @author Christian Weiske <cweiske@cweiske.de>
 */
$file = $argv[1];
if (!file_exists($file)) {
    echo "File does not exist\n";
    exit(1);
}
 
$hdl = fopen($file, 'r');
while ($row = fgetcsv($hdl)) {
    echo '|' . implode(' | ', $row) . "|\n";
}
?>
 
Christian Weiske Christian Weiske
owner

History