PHPackages                             balkon-developer/table-scraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. balkon-developer/table-scraper

ActiveLibrary

balkon-developer/table-scraper
==============================

Table scrapers with unmerge cell.

032PHP

Since Sep 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/balkon-developer/table-scraper)[ Packagist](https://packagist.org/packages/balkon-developer/table-scraper)[ RSS](/packages/balkon-developer-table-scraper/feed)WikiDiscussions dev Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

 [ ![Build Status](https://camo.githubusercontent.com/b9c46b3d47764e1090d69c42aff23bda433cc7127165788f19d7357406ebf1fd/68747470733a2f2f7472617669732d63692e6f72672f6d726f66692f7461626c652d736372617065722e7376673f6272616e63683d646576) ](https://travis-ci.org/mrofi/table-scraper) [ ![Codecov Code Coverage](https://camo.githubusercontent.com/1bb2d6505130400048df0b59999646d11511230e9cda9ed5d05a2c76a77f626c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6d726f66692f7461626c652d736372617065723f6c6f676f3d636f6465636f76) ](https://codecov.io/gh/mrofi/table-scraper "Code coverage")

PHP Table Scraper
=================

[](#php-table-scraper)

a package to help you scraping one or some tables in a website and automatically unmerge the cells. The result, you get the data as Collection. It's useful for me, I hope it will helpful for you so.

Installation
------------

[](#installation)

```
composer require balkon-developer/table-scraper

```

How to use
----------

[](#how-to-use)

- Get a table with css selector, the result is `ScrapeTable` class

```
use BalkonDeveloper\TableScraper\Scrape;

$url = 'https://your-target-website';
$scrape = Scrape::fromUrl($url);

$tableSelector = '.target';
$table = $scrape->table($tableSelector);

// var_dump($table)
```

- Get multiple tables with css selector, the result is `Collection` of `ScrapeTable` class

```
use BalkonDeveloper\TableScraper\Scrape;

$url = 'https://your-target-website';
$scrape = Scrape::fromUrl($url);

$tableSelector = '.target';
$tables = $scrape->tables($tableSelector);

// var_dump($tables)
```

- Get all tables, the result is `Collection` of `ScrapeTable` class

```
use BalkonDeveloper\TableScraper\Scrape;

$url = 'https://your-target-website';
$scrape = Scrape::fromUrl($url);

$tables = $scrape->tables();

// var_dump($tables)
```

Result as ScrapeTable
---------------------

[](#result-as-scrapetable)

Result as Collection
--------------------

[](#result-as-collection)

Helpers
-------

[](#helpers)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7432391?v=4)[Mokhamad Rofiudin](/maintainers/mrofi)[@mrofi](https://github.com/mrofi)

---

Top Contributors

[![mrofi](https://avatars.githubusercontent.com/u/7432391?v=4)](https://github.com/mrofi "mrofi (35 commits)")

### Embed Badge

![Health badge](/badges/balkon-developer-table-scraper/health.svg)

```
[![Health](https://phpackages.com/badges/balkon-developer-table-scraper/health.svg)](https://phpackages.com/packages/balkon-developer-table-scraper)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
