简体   繁体   English

如何使用 drupal 7 中的 PHP 电子表格读取 excel 文件并存储在数据库中

[英]How to use PHP spreadsheet in drupal 7 for reading excel file and storing in database

I'm new in Drupal 7, I want to use PHP Spreadsheet in my project, but how much i know that PHP spreadheet module is available in Drupal 8, and for Drupal 7 we need to use it's library, so I followed this steps for PHP spreadsheet I'm new in Drupal 7, I want to use PHP Spreadsheet in my project, but how much i know that PHP spreadheet module is available in Drupal 8, and for Drupal 7 we need to use it's library, so I followed this steps for PHP 电子表格

  1. Download the PhpSpreadsheet library and extract it inside your site's libraries folder:下载 PhpSpreadsheet 库并将其解压缩到站点的库文件夹中:
  • sites/all/libraries/PhpSpreadsheet站点/所有/库/PhpSpreadsheet
  1. Run "composer install" in folder libraries/PhpSpreadsheet to install all the dependencies在文件夹库/PhpSpreadsheet 中运行“composer install”以安装所有依赖项

so what i need to do next and how to start using it in our custom module this things I'm not getting and which steps I need to follow, Please help me in this.所以我接下来需要做什么以及如何在我们的自定义模块中开始使用它这些我没有得到的东西以及我需要遵循哪些步骤,请帮助我。

It's explained in documentation https://phpspreadsheet.readthedocs.io/en/latest/ , just read it and apply.文档https://phpspreadsheet.readthedocs.io/en/latest/ 对此进行了解释,只需阅读并申请即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过PHP使用现有的Drupal 7用户数据库 - How to use an existing Drupal 7 User Database With PHP 使用php读取txt文件,将内容存储到数据库 - reading txt file using php , storing content to database PHP Spreadsheet_Excel_Reader - 阅读日期 - PHP Spreadsheet_Excel_Reader - Reading Dates 如何使用带有Fat free的Php Spreadsheet来阅读和编辑Excel文件? - How do i use Php Spreadsheet with Fat free to read and edit an excel file? PHP:阅读Excel文件会跳过空行(使用电子表格阅读器) - PHP: Reading Excel file skips empty rows (using spreadsheet-reader) 使用带有Spreadsheet_Excel_Reader库的codeigniter在php中读取xls文件 - reading xls file in php using codeigniter with Spreadsheet_Excel_Reader library 用PHP读取大型excel文件 - Reading large excel file with PHP 从数据库中获取条目,然后使用PHP中的Spreadsheet Excel writer将其添加到新的Excel文件中不起作用,为什么? - Get entry from the database and add it to a new excel file using Spreadsheet Excel writer in php doesn't work, why? 如何避免将数据库的用户名和密码存储在配置文件中? (PHP) - How to avoid storing the username and password of the database in a config file? (PHP) 代码点火器使用PHP Excel读取Excel文件 - Code igniter reading an excel file with PHP Excel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM