haphan / social-ranking
PHP implementation of social hot ranking algorithm like Reddit, HackerNews
dev-master
2016-01-21 02:37 UTC
Requires
- php: >=5.4
This package is auto-updated.
Last update: 2024-12-05 03:44:04 UTC
README
#Social Media Ranking Algorithm: Reddit, HackerNews
This is PHP implementation of various social media news "Hot" Ranking algoritm.
###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);