jord-jd/web-article-formatter
最新稳定版本:v3.0.0
Composer 安装命令:
composer require jord-jd/web-article-formatter
包简介
Web Article Formatter
README 文档
README
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
You can install Web Article Formatter via Composer. Just run the following command.
composer require jord-jd/web-article-formatter
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.
$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));
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-only
- 更新时间: 2026-02-14