PHPackages                             languagewire/html-dumper - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. languagewire/html-dumper

ActiveLibrary[File &amp; Storage](/categories/file-storage)

languagewire/html-dumper
========================

A library which downloads pages as static HTML files and assets and dumps them on disk

1.0.1(3y ago)110.7k↓33.7%[1 issues](https://github.com/Languagewire/html-dumper/issues)MITPHPPHP &gt;=7.2

Since Oct 18Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Languagewire/html-dumper)[ Packagist](https://packagist.org/packages/languagewire/html-dumper)[ RSS](/packages/languagewire-html-dumper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (3)Used By (0)

LanguageWire HtmlDumper library
===============================

[](#languagewire-htmldumper-library)

[![Packagist](https://camo.githubusercontent.com/817a332733754002c309f22d47514b807ae4146de29d96269480692ca09191f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c616e6775616765776972652f68746d6c2d64756d706572)](https://packagist.org/packages/languagewire/html-dumper)[![Build](https://github.com/Languagewire/html-dumper/actions/workflows/build.yml/badge.svg)](https://github.com/Languagewire/html-dumper/actions/workflows/build.yml)[![Coverage Status](https://camo.githubusercontent.com/74684a1348968de6ad94127adf96ae996632c379f763b855005fa1515f6a0827/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4c616e6775616765776972652f68746d6c2d64756d7065722f62616467652e737667)](https://coveralls.io/github/Languagewire/html-dumper)[![license](https://camo.githubusercontent.com/c1e798e97752f1da188c6a981155a6801167e650acd63193dc43cd0de3f087c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c616e6775616765776972652f68746d6c2d64756d706572)](https://github.com/Languagewire/html-dumper/blob/main/LICENSE)

HtmlDumper is a PHP library which downloads a copy of an HTML page and its assets into a target directory.

- Downloads HTML source code and transforms all URIs into relative paths, creating an updated `index.html` file.
- Parses HTML and fetches relevant resources
    - Stylesheets, scripts, images, videos
    - Also works with assets located within CSS files.
- Removes anchor links to external pages.
- Does not crawl pages beyond the initial URL.

```
$url = "https://example.com";
$targetDirectory = "/tmp/htmldump";

$downloader = new \LanguageWire\HtmlDumper\Service\PageDownloader();
if ($downloader->download($url, $targetDirectory)) {
    echo "Sucessfully downloaded $url in $targetDirectory";
}
```

Requirements
------------

[](#requirements)

- PHP 7.2+
- [PHP DOM Extension](https://www.php.net/manual/en/intro.dom.php)
- [Composer](https://getcomposer.org/)

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

[](#installation)

The recommended way to install HtmlDumper is through [Composer](https://getcomposer.org/).

```
composer require languagewire/html-dumper
```

Development
-----------

[](#development)

In the `build/` folder there is a `Dockerfile` file which sets up all dependencies needed for local development, runs unit tests and other linters.

Customize `build/.env` like this:

```
cd build
cp .env.template .env
nano .env
```

And then run `./build.sh` within the `build/` folder:

```
cd build
./build.sh
```

License
-------

[](#license)

HtmlDumper is made available under the MIT License (MIT). Please see the [LICENSE](LICENSE) file for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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.

###  Release Activity

Cadence

Every ~31 days

Total

2

Last Release

1277d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/710bd6b34da2d21cdf7aaed84abae17831eb927ab99790310eb14dabaa5e031d?d=identicon)[Juanjo Diaz](/maintainers/Juanjo%20Diaz)

![](https://www.gravatar.com/avatar/b1387386a954c05469a15e704d00737ba770f0e14e941fea5d06803452013345?d=identicon)[kamil\_lw](/maintainers/kamil_lw)

![](https://www.gravatar.com/avatar/19a7ab0b271a4d3279648b3e39c84b61f33c1541529896ea82cf18afbfb85681?d=identicon)[daso-lw](/maintainers/daso-lw)

---

Top Contributors

[![daso-lw](https://avatars.githubusercontent.com/u/113675064?v=4)](https://github.com/daso-lw "daso-lw (16 commits)")[![juanjoDiaz](https://avatars.githubusercontent.com/u/3322485?v=4)](https://github.com/juanjoDiaz "juanjoDiaz (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/languagewire-html-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/languagewire-html-dumper/health.svg)](https://phpackages.com/packages/languagewire-html-dumper)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k511.3M2.2k](/packages/aws-aws-sdk-php)[google/cloud

Google Cloud Client Library

1.2k16.2M53](/packages/google-cloud)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[fof/upload

The file upload extension for the Flarum forum with insane intelligence.

188171.7k15](/packages/fof-upload)[uploadcare/uploadcare-php

Uploadcare PHP integration handles uploads and further operations with files by wrapping Upload and REST APIs.

1022.5M6](/packages/uploadcare-uploadcare-php)[azure-oss/storage

Azure Blob Storage PHP SDK

37985.0k5](/packages/azure-oss-storage)

PHPackages © 2026

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