Download the PHP package dcarbone/table-mapper without Composer
On this page you can find all versions of the php package dcarbone/table-mapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dcarbone/table-mapper
More information about dcarbone/table-mapper
Files in dcarbone/table-mapper
Download dcarbone/table-mapper
More information about dcarbone/table-mapper
Files in dcarbone/table-mapper
Vendor dcarbone
Package table-mapper
Short Description Complex HTML parsing helper
License MIT
Homepage https://github.com/dcarbone/table-mapper
Package table-mapper
Short Description Complex HTML parsing helper
License MIT
Homepage https://github.com/dcarbone/table-mapper
Keywords domdocumenthtml table
Please rate this library. Is it a good library?
Informations about the package table-mapper
table-mapper
TableMapper is a class that I wrote to ease the consumption of complex HTML tables.
Example:
Looks something like this:
Row 0 : Cell 0 | Row 0 : Cell 1 | ||
Row 1 : Cell 0 | Row 1 : Cell 1 | Row 1 : Cell 2 |
That can be tricky to consume, however. So this class creates a clone of the table element you pass in and creates an in-memory version that looks like this:
Which looks like this:
Row 0 : Cell 0 | Row 0 : Cell 0 | Row 0 : Cell 0 | Row 0 : Cell 1 |
Row 1 : Cell 0 | Row 1 : Cell 1 | Row 1 : Cell 2 | Row 0 : Cell 1 |
Usage
This is a very simple class, overall. A few things to note:
- TableMapper does NOT mutate the DOMElement you pass in, it clones and imports it into a new DOM before doing anything.
- TableMapper does not fix invalid HTML
- TableMapper does not do your laundry.
All versions of table-mapper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.3
lib-libxml Version *
lib-libxml Version *
The package dcarbone/table-mapper contains the following files
Loading the files please wait ....