tritilitytest / matthewcsvtest
将电子表格转换为csv格式的包
dev-master
2020-08-24 19:01 UTC
This package is not auto-updated.
Last update: 2024-10-02 09:57:50 UTC
README
依赖:PHP 7.2.5+,Lumen 7.0+,PHPSpreadsheet 1.14+
运行 'composer require tritilitytest/matthewcsvtest'
运行 'composer require phpoffice/phpspreadsheet'
在根 composer.json 的 'psr-4' 属性中添加 '"tritilitytest\\matthewcsvtest\\": "vendor/tritilitytest/matthewcsvtest"'
注册服务提供者:在 'bootstrap\app.php' 中添加 '$app->register(tritilitytest\matthewcsvtest\MatthewCSVTestServiceProvider::class);'。
完成以上步骤后,运行 'composer dumpautoload'。
将 xls 文件放置在 'public/spreadsheets' 文件夹中以进行转换。
完成以上步骤后,请在控制台中运行命令 'php artisan GenerateCSV'。