nanaksr / htmlextractor
PHP - HTML Table Extractor
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nanaksr/htmlextractor
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-09-29 01:19:15 UTC
README
PHP - HTML Table Extractor
Installation
Via composer:
composer require nanaksr/htmlextractor @dev
Quick Start and Example
require __DIR__ . '/vendor/autoload.php';
use \nanaksr\htmlextractor;
$source = @file_get_contents(__DIR__ . '/yout/file/path.htm', FILE_USE_INCLUDE_PATH);
if (!$source){
echo "Data Source Not Found";
exit();
}
$tblExt = new htmlextractor;
$tblExt->source = $source;
$tblExt->anchor = 'id';
$tblExt->stripTags = true;
$tblExt->anchorWithin = true;
$tblExt->headerRow = false;
$ShowdataArray = $tblExt->extractTable();