Skip to content

nanaksr/htmlextractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

HTML Extractor

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();

About

PHP - HTML Table Extractor

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages