haphan/social-ranking

PHP implementation of social hot ranking algorithm like Reddit, HackerNews

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/haphan/social-ranking

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

This package is auto-updated.

Last update: 2025-10-05 05:37:06 UTC


README

#Social Media Ranking Algorithm: Reddit, HackerNews

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

Reddit Ranking

HackerNews Ranking

###Usage

$ composer require haphan/social-ranking
<?php

require 'vendor/autoload.php';

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

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