PHP code example of smarter-solutions / google-play-scraper

1. Go to this page and download the library: Download smarter-solutions/google-play-scraper 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/ */

    

smarter-solutions / google-play-scraper example snippets


$scraper = new SmarterSolutions\PhpTools\GooglePlayScraper\GooglePlayScraper();

$data = $scraper->findAppByPackage('com.smartme.analytics');

var_dump($data);

$scraper = new SmarterSolutions\PhpTools\GooglePlayScraper\GooglePlayScraper();

$data1 = $scraper->findAppByPackage('com.smartme.analytics', 'es');
$data2 = $scraper->findAppByPackage('com.smartme.analytics', 'es_419');
$data3 = $scraper->findAppByPackage('com.smartme.analytics', 'de');
$data4 = $scraper->findAppByPackage('com.smartme.analytics', 'en_GB');