PHP Classes

PHP Alexa Rank Checker: Get the Alexa ranking of a given site

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 215 All time: 8,300 This week: 325Up
Version License PHP version Categories
alexa-rank-detector 0.2MIT/X Consortium ...5PHP 5, Web services, SEO
Description 

Author

This class can get the Alexa ranking of a given site.

It can send a HTTP request to the Alexa data API to retrieve the ranking values for a site with a given URL.

The class parses the results and returns the site reach, world rank and local rank.

Innovation Award
PHP Programming Innovation award nominee
November 2016
Number 7


Prize: PhpStorm IDE 1 year individual subscription
Alexa is a well known site that keeps track of traffic statistics of many sites in the world. This way Webmasters can evaluate how their site ranking is evolving, as well of other sites.

This class can use the Alexa API to obtain traffic statistics of any site provided by Alexa.

Manuel Lemos
Picture of afshin akhgar
  Performance   Level  
Name: afshin akhgar <contact>
Classes: 3 packages by
Country: Iran Iran
Age: 38
All time rank: 251242 in Iran Iran
Week rank: 312 Up8 in Iran Iran Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php
require __DIR__ . '/vendor/autoload.php';
use
AlexaRank\AlexaRank;

$alexaRank = new AlexaRank();
$alexaRank->getRank('aparat.com');

$alexaRank->getMultipleRanks(['aparat.com','cloob.com']);


Details

AlexaRank

Simple php class to automatically detect and show website's alexa rank

Installation

Using Composer easily

composer install

then run rank.php

Also You can get it from composer by

composer require afshinpersian/alexarank

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file rank.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file AlexaRank.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:215
This week:0
All time:8,300
This week:325Up