Download the PHP package minimalic/silverstripe-hackernews without Composer

On this page you can find all versions of the php package minimalic/silverstripe-hackernews. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package silverstripe-hackernews

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 at site's footer.

Requirements

Installation

Composer

Rebuild DB

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

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):

or (if sake is not available):

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:

Usage

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

Configuration

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

Automatic daily news fetch

Set up cronjob (shell, as web user):

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

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

Contribution

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

License

See License

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


All versions of silverstripe-hackernews with dependencies

PHP Build Version
Package Version
Requires silverstripe/cms Version ^4 || ^5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package minimalic/silverstripe-hackernews contains the following files

Loading the files please wait ....