Shared Links Ranking from multiples RSS sources.
CSS JavaScript PHP Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.openshift/cron/hourly
app
bootstrap
libs
misc
public
vendor
.env.php.sample
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE
README-laravel.md
README-openshift.md
README.md
artisan
composer.json
deplist.txt
phpunit.xml
readme.md
server.php

README.md

Shared Links Ranking

See a Top 10 shared news/posts based on RSS feed from your favorites news portals/blogs.

LIVE example instance with Argentinian main online news portals. LIVE example instance with Chileans main online news portals.

Requirements

  • PHP
  • MySQL
  • Curl
  • Apache (for production)

Installation

  • Clone repo
git clone git@github.com:palamago/shared-links-ranking.git
  • Create an empty MySQL database

  • Create config file Copy .env.php.sample to .env.php and complete the database info.

<?php
return array(
		'debug'      => true,
		'db_host'      => 'localhost',
		'db_database'  => '',
		'db_username'  => '',
		'db_password'  => '',
		'enc_key'		=> '',
		'url'		=> 'http://localhost:8000'
	);
?>

In cloned folder:

  • Run migrate & example data
php artisan migrate --seed
  • Run process to collect information links from Rss'
php artisan get-links
  • Run process to collect information from social networks
php artisan get-shares
  • Run process to collect history stats
php artisan make-history
  • Run artisan server for local dev environment
php artisan serve
  • Go to http://localhost:8000 , you can see top 10 shared NYT news for Latest and Sports RSS's

  • For admin page, go to http://localhost:8000/admin with admin/admin credentials (you must change it).

  • For production, run processes using CRON (every hour recommended)

php artisan get-links && php artisan get-shares php && artisan make-history