PHPackages                             minimalic/silverstripe-hackernews - 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. [API Development](/categories/api)
4. /
5. minimalic/silverstripe-hackernews

ActiveSilverstripe-vendormodule[API Development](/categories/api)

minimalic/silverstripe-hackernews
=================================

Silverstripe CMS module for Tech news fetched by using Hacker News API

1.0.3(1y ago)06BSD-3-ClausePHP

Since Apr 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/minimalic/silverstripe-hackernews)[ Packagist](https://packagist.org/packages/minimalic/silverstripe-hackernews)[ RSS](/packages/minimalic-silverstripe-hackernews/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Silverstripe HackerNews - A Tech News Slider
============================================

[](#silverstripe-hackernews---a-tech-news-slider)

News scrolling banner (animated) for Silverstripe CMS. The extension can automatically fetch tech news/posts by using Y Combinator's Hacker News API.

Working demo on [iloveunix.com](https://iloveunix.com) at site's footer.

Requirements
------------

[](#requirements)

- Compatible with Silverstripe versions 4 and 5
- Bootstrap (optional, e.g. [silverstripe-bootloader](https://github.com/minimalic/silverstripe-bootloader))

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

[](#installation)

### Composer

[](#composer)

```
composer require minimalic/silverstripe-hackernews
```

### Rebuild DB

[](#rebuild-db)

Rebuild DB by appending `dev/build?flush=all` to your website's URL or by using shell:

```
vendor/bin/sake dev/build "flush=all"
```

### Fetch Hacker News

[](#fetch-hacker-news)

Fetch first news by appending `dev/tasks/FetchHackerNewsTask` to your website's URL or by using shell (from website's root directory):

```
vendor/bin/sake dev/tasks/FetchHackerNewsTask
```

or (if sake is not available):

```
php vendor/silverstripe/framework/cli-script.php dev/tasks/FetchHackerNewsTask
```

### Bootstrap extension (optional)

[](#bootstrap-extension-optional)

Bootstrap (CSS library) isn't required, but this extension is using Bootstrap's markups for templating. Own Bootstrap implementation can be used as well as extensions like `silverstripe-bootloader`:

```
composer require minimalic/silverstripe-bootloader
```

Usage
-----

[](#usage)

Simply put `$HackerNews` inside your template, for example `Footer.ss`:

```

    $HackerNews

```

Configuration
-------------

[](#configuration)

Configuration options (e.g. `app/_config/hackernews.yml`):

```
minimalic\HackerNews\Tasks\FetchHackerNewsTask:
  posts_to_load: 40
  email_message_enable: true
  email_message_nightly: true
  email_message_from:
    server@domain.com: 'Server Name'
  email_message_to:
    my.mail@domain.com: 'My Name'

minimalic\HackerNews\HackerNewsBanner:
  banner_speed: 60
```

Automatic daily news fetch
--------------------------

[](#automatic-daily-news-fetch)

Set up cronjob (shell, as web user):

```
crontab -e
```

To fetch news every 6 hours starting at 0:42 local server time type in:

```
42 */6 * * * ~/mywebsite/vendor/bin/sake dev/tasks/FetchHackerNewsTask
```

(the `~/mywebsite/` is a relative path from your web user starting point - you can also use an absolute path like `/var/www/mywebsite/`)

Contribution
------------

[](#contribution)

To compile SCSS to CSS install `sass`, `nodemon` and `postcss` by using `npm` and run (developing only, shell):

```
cd vendor/minimalic/silverstripe-hackernews/client/src/
npm run-script watch
```

License
-------

[](#license)

See [License](LICENSE)

Copyright (c) 2024, minimalic.com - Sebastian Finke All rights reserved.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Total

4

Last Release

728d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a179665a0838e9e3dd012106ebefb73b9f83b25c896f0b105100d3c4e6defa9?d=identicon)[minimalic](/maintainers/minimalic)

---

Top Contributors

[![minimalic](https://avatars.githubusercontent.com/u/18061991?v=4)](https://github.com/minimalic "minimalic (23 commits)")

---

Tags

hacker-newsnewssilverstripesilverstripe-moduletech-newsy-combinatorsilverstripe newshackernewshacker-news

### Embed Badge

![Health badge](/badges/minimalic-silverstripe-hackernews/health.svg)

```
[![Health](https://phpackages.com/badges/minimalic-silverstripe-hackernews/health.svg)](https://phpackages.com/packages/minimalic-silverstripe-hackernews)
```

###  Alternatives

[silverstripe/blog

A fresh take on blogging in Silverstripe set out to tackle the issue of a cluttered Site Tree.

104739.2k31](/packages/silverstripe-blog)[chapter-three/apple-news-api

Push content to Apple News.

38307.5k3](/packages/chapter-three-apple-news-api)

PHPackages © 2026

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