PHP code example of ghalambaz / googleplay-spider

1. Go to this page and download the library: Download ghalambaz/googleplay-spider library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ghalambaz / googleplay-spider example snippets


$spider = new GooglePlaySpider();
$package = $spider->getPackageByPackageName("ir.yana.esaj");

$package->getTitle();
//return : (esaj) ایساج

$package->getFeaturedImageAddress();
//return : address of main (featured) icon image

$res = $package->getDeveloper();
//return : array with two keys [title,link]

$package->getPackageCategory();

$package->isEditorChoice();
//return : true of false that shows is Editor choice or not!

$package->getESRB();
//return : ESRB image link

$package->getScreenshots();
//return : screenshots as array with keys[height,width,link]

$package->getDescription();
//return : full description of app

$package->getWhatsNew();
//return : text about what is new in this version

$package->getRating();
//return : array with keys[rate,total] which total is how many people rate this app

$package->getAdditionalInfo();
//return : information about [Updated Date, Size, Installs, Current Version, Require Android, Content Rating,Offered By ,etc... ]

$package->getSimilar();
//return : array of 6 package information with keys[image,title,link,developer,developer_link,description]