2017 © Pedro Peláez
 

library web-article-formatter

Web Article Formatter

image

divineomega/web-article-formatter

Web Article Formatter

  • Thursday, April 12, 2018
  • by DivineOmega
  • Repository
  • 1 Watchers
  • 4 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

🌐🔀📰 Web Article Formatter

StyleCI, (*1)

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., (*2)

Installation

You can install Web Article Formatter via Composer. Just run the following command., (*3)

composer require divineomega/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., (*4)

A list of all format constants can be found in the Format class., (*5)

$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));

The Versions

12/04 2018

dev-master

9999999-dev

Web Article Formatter

  Sources   Download

LGPL-3.0-only

The Requires

 

by Jordan Hall

01/04 2018

v1.1.1

1.1.1.0

Web Article Formatter

  Sources   Download

LGPL-3.0-only

The Requires

 

by Jordan Hall

31/03 2018

v1.1.0

1.1.0.0

Web Article Formatter

  Sources   Download

LGPL-3.0-only

The Requires

 

by Jordan Hall

25/03 2018

v1.0.0

1.0.0.0

Web Article Formatter

  Sources   Download

LGPL-3.0-only

The Requires

 

by Jordan Hall

25/03 2018

dev-analysis-8bPVAj

dev-analysis-8bPVAj

Web Article Formatter

  Sources   Download

LGPL-3.0-only

The Requires

 

by Jordan Hall