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: 216 All time: 8,302 This week: 206Up
Version License PHP version Categories
alexa-rank-detector 0.2MIT/X Consortium ...5PHP 5, Web services, SEO


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: 39
All time rank: 251042 in Iran Iran
Week rank: 195 Up3 in Iran Iran Up
Innovation award
Innovation award
Nominee: 1x


require __DIR__ . '/vendor/autoload.php';

$alexaRank = new AlexaRank();




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


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 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  
This week:0
All time:8,302
This week:206Up