nikookherad / spreadsheet
此服务旨在方便处理Excel文件
v1.1.0
2022-12-30 20:44 UTC
Requires
- php: >=7.4
- laravel/framework: ^9.19
- phpoffice/phpspreadsheet: ^1.9
Requires (Dev)
- phpunit/phpunit: ~6.0 || ~7.0 || ~9.0
This package is auto-updated.
Last update: 2024-09-11 17:33:39 UTC
README
摘要
此服务旨在方便处理Excel文件
注意: 此服务需要PhpOffice\PhpSpreadsheet包
此服务有六个可在链中使用的方法
- 净化方法:从您那里获取Excel文件的地址
$excelFile=Excel\Excel::purify(string $excelFileStoragePath,string $extension = null);
然后是其他方法
$excelFileRows=$excelFile->rows(): array; list($head,$rows)=$excelFile->read(): array; $records=$excelFile->records(): array; $excelFilesRowsJustFirstRow=$excelFile->header(): array; $excelFilesRowsWithoutFirstRow=$excelFile->body(): array;