PHP implementation of social hot ranking algorithm like Reddit, HackerNews

dev-master 2016-01-21 02:37 UTC

This package is auto-updated.

Last update: 2022-01-04 21:09:29 UTC


#Social Media Ranking Algorithm: Reddit, HackerNews

This is PHP implementation of various social media news "Hot" Ranking algoritm.

Reddit Ranking

HackerNews Ranking


$ composer require haphan/social-ranking

require 'vendor/autoload.php';

use Haphan\SocialRanking\Reddit;
use Haphan\SocialRanking\HackerNews;

$redditScore = Reddit::score($age, $upVote, $downVote);
$hackerNewsScore = HackerNews::scoreV1($age, $upVote, $downVote);