Read file (full amount)
  • The file is not supported for the windows system.
  • Extended version is greater than or equal to 1.2.7;

Compiling

add --enable-reader when compiling
1
./configure --enable-reader
Copied!

Example

1
$config = ['path' => './tests'];
2
$excel = new \Vtiful\Kernel\Excel($config);
3
4
$filePath = $excel->fileName('tutorial.xlsx')
5
->header(['Item', 'Cost'])
6
->output();
7
8
$data = $excel->openFile('tutorial.xlsx')
9
->openSheet()
10
->getSheetData();
11
12
var_dump($data)
Copied!
Last modified 8mo ago
Copy link