sprain/newsparser

A php library to parse recommended article from nzz.ch

0.3.1 2014-08-04 06:06 UTC

This package is auto-updated.

Last update: 2024-10-29 04:36:22 UTC


README

#SprainNewsParser A PHP libary to get contents from news websites.

It allows you to get headlines and links to most read stories, most commented stories and recommended stories. All based on availability by the corresponding news platform.

Currently supported platforms:

You are welcome to contribute!

Installation

Add SprainNewsParser in your composer.json:

{
    "require": {
        "sprain/newsparser": "dev-master"
    }
}

This will install the current development version of this library. For other versions of this library find the overview at Packagist.

Now tell composer to download the bundle by running the command:

$ php composer.phar update sprain/newsparser

Usage

See example.php.

Todos

  • Improve unit tests (e.q. test caching of fetched articles)
  • Add more news platforms
  • Add functionality to get latest articles
  • Add functionality to get details of fetched articles

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE