PHPackages                             siegsb/play-extractor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. siegsb/play-extractor

ActiveLibrary[API Development](/categories/api)

siegsb/play-extractor
=====================

Extracts info from Play Store easily like an API

1.1.0(8y ago)142Apache-2.0PHPPHP &gt;=5.4

Since Aug 18Pushed 8y agoCompare

[ Source](https://github.com/parisbs/play-extractor)[ Packagist](https://packagist.org/packages/siegsb/play-extractor)[ Docs](https://github.com/siegsb/play-extractor)[ RSS](/packages/siegsb-play-extractor/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

PlayExtractor [![Build Status](https://camo.githubusercontent.com/88a8797e71f46cb12602cd505a004f745a0d422112458d5af8a6926a3177066c/68747470733a2f2f7472617669732d63692e6f72672f7369656773622f706c61792d657874726163746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/siegsb/play-extractor)
============================================================================================================================================================================================================================================================================================================

[](#playextractor-)

This project is a fork of [PlayStoreApi project](https://github.com/RedInput/PlayStoreApi) but isn't related in any way with that project. Thanks to [RedInput](https://github.com/RedInput), developer of the original library on which this is based.

Play Extractor provides a Composer PHP library to extract info from Play Store for differents items like albums, apps, artists and more.
Don't requires any kind of authentication and support all the languages and countries availables on Play Store website.

Installation
------------

[](#installation)

The best method to install PlayExtractor in your PHP project is using Composer, just add the following line to your require:

```
"siegsb/play-extractor": "1.0.*"

```

Then update your Composer project using *composer update*. Also you can clone this repository to your project path but the recomended method is via Composer.

Usage
-----

[](#usage)

First include the autoload.php file into your PHP script and set the namespace to use:

```
require_once __DIR__ . '/vendor/autoload.php';
use \SiegSB\PlayExtractor;
```

Then you can create a new PlayExtractor object with the locale and country params using ISO-2 format:

```
$playExtractor = new PlayExtractor('en', 'US');
```

Now you can request the details of any kind of content available on Play Store:

```
/**
* @param $contentId string. The unique ID for the content, see the Supported Contents to more information
* @return $details DataObject. The details of the content as a object of the requested content, see the Supported Contents to more information
*/
$playExtractor->details->album($contentId);
$playExtractor->details->app($contentId);
$playExtractor->details->artist($contentId);
$playExtractor->details->book($contentId);
```

Supported Contents
------------------

[](#supported-contents)

Right now PlayExtractor support the following contents, in each item you can see more information:

### Album

[](#album)

This object have the following methods:

```
// Returns the album ID, the same that you use when you call $playExtractor->details->album()
$album->getAlbumId();
// Returns the URL of the album cover
$album->getImage();
// Returns the title of the album
$album->getTitle();
// Returns the artist name
$album->getArtist();
// Returns the artist ID, you can use it to request the artist details
$album->getArtistId();
// Returns the price based on your PlayExtractor language and country configuration
$album->getPrice();
// Returns the Play Store URL of the album
$album->getUrl();
// Returns the description of the album
$album->getDescription();
// Returns the genre
$album->getGenre();
// Returns the number of tracks
$album->getTracks();
// Returns the total rating of the album as a float
$album->getRatingValue();
// Returns the number of ratings
$album->getRatingCount();
```

### App

[](#app)

This object have the following methods:

```
// Returns the package name, this is the contentId
$app->getPackage();
// Returns the URL of the icon like PNG
$app->getIcon();
// Returns the public name of the app
$app->getName();
// Returns the public name of the developer
$app->getDeveloper();
// Returns the price of the app based in your PlayExtractor configuration
$app->getPrice();
// Returns the Play Store URL of the app
$app->getUrl();
// Returns the app description
$app->getDescription();
// Returns the category
$app->getCategory();
// Returns the total rating of the app as a float
$app->getRatingValue();
// Returns the number of ratings
$app->getRatingCount();
// Returns the size of the APK file
$app->getFileSize();
// Returns the date of the last update as a string date format
$app->getDateUpdated();
// Returns the number of downloads
$app->getNumDownloads();
// Returns the current app version
$app->getVersion();
// Returns the minimum Android version that the app requires
$app->getRequiredAndroid();
// Returns the content rating
$app->getContentRating();
// Returns the features of the app, e.g. if have ads or in-app purchases.
// returns an array.
$app->getFeatures();
// Returns the values for the in-app purchases if apply.
$app->getInAppPrices();
```

### Artist

[](#artist)

This object have the following methods:

```
// Returns the artist ID
$artist->getArtistId();
// Returns the URL of the artist image as PNG
$artist->getImage();
// Returns the public artist name
$artist->getName();
// Returns the Play Store URL of the artist
$artist->getUrl();
// Returns the biography of the artist
$artist->getAbout();
```

### Book

[](#book)

This object have the following methods:

```
// Returns the book ID
$book->getBookId();
// Returns the URL of the book cover as PNG
$book->getImage();
// Returns the title
$book->getTitle();
// Returns the public author name
$book->getAuthor();
// Returns the price
$book->getPrice();
// Returns the Play Store URL of the book
$book->getUrl();
// Returns the description of the book
$book->getDescription();
// Returns the total number of pages
$book->getPages();
// Returns the language of the book
$book->getLanguages();
// Returns the ISBN code
$book->getIsbn();
// Returns the total rating as a float
$book->getRatingValue();
// Returns the number of ratings
$book->getRatingCount();
```

Exceptions
----------

[](#exceptions)

If the language or country code is not valid for Play Store, or if the requested content do not exist, PlayExtractor returns an Exception.

Tips
----

[](#tips)

You can use the method *json\_encode()* with any Data object to convert to JSON easily, for example:

```
print json_encode($artist);
```

This returns the following JSON string:

```
{
  "artist_id": "",
  "image": "",
  "name": "",
  "url": "",
  "about": ""
}
```

Colaborations and pull requests
-------------------------------

[](#colaborations-and-pull-requests)

To keep clean code, all the scripts of the library must be formated in PSR-2 and the autoloads in PSR-4 with namespaces. Try to keep the compatibility of the library with PHP 5.4 minimum. Don't modify the composer.json if not necessary and the build test with [Travis](https://travis-ci.org/) is required.
If you want to include a new function, please add the correct comments to your code using annotations and create the PHPUnit test cases in the *tests* path. Also you should be clear in your commits messages. Be care with the info of others developers and don't delete it from the composer file, also verify taht your info, if you want, are correct.
Thanks!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 66% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~74 days

Total

5

Last Release

2940d ago

PHP version history (2 changes)1.0.1PHP &gt;=5.4

1.0.2PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32491290?v=4)[Paris Niarfe Baltazar Salguero](/maintainers/parisbs)[@parisbs](https://github.com/parisbs)

---

Top Contributors

[![kix2902](https://avatars.githubusercontent.com/u/222587?v=4)](https://github.com/kix2902 "kix2902 (31 commits)")[![parisbs](https://avatars.githubusercontent.com/u/32491290?v=4)](https://github.com/parisbs "parisbs (16 commits)")

---

Tags

googlephpapigooglesiegsbplay storeredinput

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/siegsb-play-extractor/health.svg)

```
[![Health](https://phpackages.com/badges/siegsb-play-extractor/health.svg)](https://phpackages.com/packages/siegsb-play-extractor)
```

###  Alternatives

[statickidz/php-google-translate-free

Google Translate Free library for PHP

284270.0k9](/packages/statickidz-php-google-translate-free)[jcf/geocode

Google Geocoding API for Laravel

48162.2k](/packages/jcf-geocode)[ozankurt/google-analytics

Laravel Google Analytics

7517.0k](/packages/ozankurt-google-analytics)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1143.6k1](/packages/skeeks-yii2-google-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
