PHP code example of valentinloiseau / excel-data-extractor
1. Go to this page and download the library: Download valentinloiseau/excel-data-extractor library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
valentinloiseau / excel-data-extractor example snippets
$crawler = new Crawler('path/to/my/file.xlsx');
# Make some adjustments
Configuration::setLineAttributesFromHeader(true);
$table = $crawler->getTable();
$headers = $table->getHeaders();
$lines = $table->getLines();