PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.4.8
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.4.8
4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 3.10.4 All 148 releases
visualizer / vendor / phpoffice / phpspreadsheet / samples / index.php

index.php in Visualizer – Tables & Charts Manager with Built-in AI Generator 3.4.8, at vendor/phpoffice/phpspreadsheet/samples/index.php

40 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 require_once 'Header.php';
4
5 $requirements = [
6 'PHP 5.6.0' => version_compare(PHP_VERSION, '5.6.0', '>='),
7 'PHP extension XML' => extension_loaded('xml'),
8 'PHP extension xmlwriter' => extension_loaded('xmlwriter'),
9 'PHP extension mbstring' => extension_loaded('mbstring'),
10 'PHP extension ZipArchive' => extension_loaded('zip'),
11 'PHP extension GD (optional)' => extension_loaded('gd'),
12 'PHP extension dom (optional)' => extension_loaded('dom'),
13 ];
14
15 if (!$helper->isCli()) {
16 ?>
17 <div class="jumbotron">
18 <p>Welcome to PHPSpreadsheet, a library written in pure PHP and providing a set of classes that allow you to read from and to write to different spreadsheet file formats, like Excel and LibreOffice Calc.</p>
19 <p>&nbsp;</p>
20 <p>
21 <a class="btn btn-lg btn-primary" href="https://github.com/PHPOffice/PHPSpreadsheet" role="button"><i class="fa fa-github fa-lg" title="GitHub"></i> Fork us on Github!</a>
22 <a class="btn btn-lg btn-primary" href="https://phpspreadsheet.readthedocs.io" role="button"><i class="fa fa-book fa-lg" title="Docs"></i> Read the Docs</a>
23 </p>
24 </div>
25 <?php
26 echo '<h3>Requirement check</h3>';
27 echo '<ul>';
28 foreach ($requirements as $label => $result) {
29 $status = $result ? 'passed' : 'failed';
30 echo "<li>{$label} ... <span class='{$status}'>{$status}</span></li>";
31 }
32 echo '</ul>';
33 } else {
34 echo 'Requirement check:' . PHP_EOL;
35 foreach ($requirements as $label => $result) {
36 $status = $result ? '32m passed' : '31m failed';
37 echo "{$label} ... \033[{$status}\033[0m" . PHP_EOL;
38 }
39 }
40