Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Check for vtiful presence --SKIPIF-- <?php if (!extension_loaded("xlswriter")) pr..
Decoded Output download
--TEST--
Check for vtiful presence
--SKIPIF--
<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
--FILE--
<?php
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject = $fileObject->fileName('chart_line.xlsx');
$fileHandle = $fileObject->getHandle();
$chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_LINE);
$chartResource = $chart->series('Sheet1!$A$2:$A$7')->toResource();
$filePath = $fileObject->header(['number'])
->data([
[10],
[40],
[50],
[20],
[10],
[50],
])
->insertChart(0, 3, $chartResource)
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/chart_line.xlsx');
?>
--EXPECT--
string(23) "./tests/chart_line.xlsx"
Did this file decode correctly?
Original Code
--TEST--
Check for vtiful presence
--SKIPIF--
<?php if (!extension_loaded("xlswriter")) print "skip"; ?>
--FILE--
<?php
$config = [
'path' => './tests'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$fileObject = $fileObject->fileName('chart_line.xlsx');
$fileHandle = $fileObject->getHandle();
$chart = new \Vtiful\Kernel\Chart($fileHandle, \Vtiful\Kernel\Chart::CHART_LINE);
$chartResource = $chart->series('Sheet1!$A$2:$A$7')->toResource();
$filePath = $fileObject->header(['number'])
->data([
[10],
[40],
[50],
[20],
[10],
[50],
])
->insertChart(0, 3, $chartResource)
->output();
var_dump($filePath);
?>
--CLEAN--
<?php
@unlink(__DIR__ . '/chart_line.xlsx');
?>
--EXPECT--
string(23) "./tests/chart_line.xlsx"
Function Calls
None |
Stats
MD5 | 4880ed3a335f669b7f21f539d288aa9b |
Eval Count | 0 |
Decode Time | 122 ms |