PHPackages                             jord-jd/web-article-formatter - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. jord-jd/web-article-formatter

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

jord-jd/web-article-formatter
=============================

Web Article Formatter

v3.0.0(3mo ago)80[1 issues](https://github.com/Jord-JD/web-article-formatter/issues)LGPL-3.0-onlyPHP

Since Mar 25Pushed 3mo agoCompare

[ Source](https://github.com/Jord-JD/web-article-formatter)[ Packagist](https://packagist.org/packages/jord-jd/web-article-formatter)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/jord-jd-web-article-formatter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

🌐🔀📰 Web Article Formatter
=========================

[](#-web-article-formatter)

[![StyleCI](https://camo.githubusercontent.com/65d9a2e11e4af02890643d3f2eb7a6727c0570a4c67952c6baf719372e337bea/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132363634373234322f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/126647242)

The web article formatter can extract and convert an article from a webpage into a number of other formats, including PDF, markdown, JSON, plain text and more.

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

[](#installation)

You can install Web Article Formatter via Composer. Just run the following command.

```
composer require jord-jd/web-article-formatter

```

Usage
-----

[](#usage)

To retrieve a web page article and convert it into a different format, first create a new `WebArticleFormatter`passing it the URL of the web page. Then, simply call the formatter's `get` method, passing it a valid format constant.

A list of all format constants can be found in the [`Format` class](src/Format.php).

```
$formatter = new WebArticleFormatter($url);

echo $formatter->get(Format::PLAINTEXT);
echo $formatter->get(Format::MARKDOWN);
echo $formatter->get(Format::HTML);
echo $formatter->get(Format::JSON);

file_put_contents('article.pdf', $formatter->get(Format::PDF));
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance80

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~721 days

Total

5

Last Release

93d ago

Major Versions

v1.1.1 → v2.0.02026-02-14

v2.0.0 → v3.0.02026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (18 commits)")

---

Tags

htmljsonmarkdownpdfphpphp-libraryscraperwebpagewebpage-scraper

### Embed Badge

![Health badge](/badges/jord-jd-web-article-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/jord-jd-web-article-formatter/health.svg)](https://phpackages.com/packages/jord-jd-web-article-formatter)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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