2014-03-15 22:39:57 +07:00
< ? php
include_once 'Sample_Header.php' ;
if ( ! CLI ) {
?>
< div class = " jumbotron " >
2014-04-26 15:11:20 +07:00
< p > Welcome to PHPWord , a library written in pure PHP that provides a set of classes to write to and read from different document file formats , i . e . Office Open XML ( . docx ), Open Document Format ( . odt ), and Rich Text Format ( . rtf ) .</ p >
< p >& nbsp ; </ p >
2014-03-15 22:39:57 +07:00
< p >
2014-04-26 15:11:20 +07:00
< a class = " btn btn-lg btn-primary " href = " https://github.com/PHPOffice/PHPWord " role = " button " >< i class = " fa fa - github fa - lg " title= " GitHub " ></i> Fork us on Github!</a>
< a class = " btn btn-lg btn-primary " href = " http://phpword.readthedocs.org/en/develop/ " role = " button " >< i class = " fa fa-book fa-lg " title = " Docs " ></ i > Read the Docs </ a >
2014-03-15 22:39:57 +07:00
</ p >
</ div >
< ?
2014-03-15 23:12:35 +07:00
$requirements = array (
'php' => array ( 'PHP 5.3.0' , version_compare ( phpversion (), '5.3.0' , '>=' )),
'zip' => array ( 'PHP extension ZipArchive' , extension_loaded ( 'zip' )),
'xml' => array ( 'PHP extension XML' , extension_loaded ( 'xml' )),
'gd' => array ( 'PHP extension GD (optional)' , extension_loaded ( 'gd' )),
);
echo " <h3>Requirements</h3> " ;
echo " <ul> " ;
foreach ( $requirements as $key => $value ) {
$status = $value [ 1 ] ? 'passed' : 'failed' ;
echo " <li> { $value [ 0 ] } ... <span class=' { $status } '> { $status } </span></li> " ;
2014-03-15 22:39:57 +07:00
}
2014-03-15 23:12:35 +07:00
echo " </ul> " ;
2014-04-12 10:12:24 +07:00
}
if ( ! CLI ) {
include_once 'Sample_Footer.php' ;
}