PHPackages                             sprain/newsparser - 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. sprain/newsparser

ActiveLibrary

sprain/newsparser
=================

A php library to parse recommended article from nzz.ch

0.3.1(11y ago)015MITPHPPHP &gt;=5.4

Since Jul 31Pushed 11y ago1 watchersCompare

[ Source](https://github.com/sprain/SprainNewsParser)[ Packagist](https://packagist.org/packages/sprain/newsparser)[ Docs](https://github.com/Sprain/SprainNzzParser)[ RSS](/packages/sprain-newsparser/feed)WikiDiscussions master Synced 1w ago

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

\#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:

- Switzerland
    - NZZ ()
    - Tagesanzeiger ()

**You are welcome to contribute!**

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

[](#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](https://packagist.org/packages/sprain/newsparser).

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

```
$ php composer.phar update sprain/newsparser
```

Usage
-----

[](#usage)

See [example.php](example/example.php).

Todos
-----

[](#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
-------

[](#license)

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

```
Resources/meta/LICENSE

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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 ~1 days

Total

5

Last Release

4306d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/260361?v=4)[Manuel Reinhard](/maintainers/sprain)[@sprain](https://github.com/sprain)

---

Top Contributors

[![sprain](https://avatars.githubusercontent.com/u/260361?v=4)](https://github.com/sprain "sprain (8 commits)")

---

Tags

nzz

### Embed Badge

![Health badge](/badges/sprain-newsparser/health.svg)

```
[![Health](https://phpackages.com/badges/sprain-newsparser/health.svg)](https://phpackages.com/packages/sprain-newsparser)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)[contao-community-alliance/dc-general

Universal data container for Contao

1578.3k86](/packages/contao-community-alliance-dc-general)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)

PHPackages © 2026

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