Download the PHP package evrenonur/google-play-scraper without Composer
On this page you can find all versions of the php package evrenonur/google-play-scraper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download evrenonur/google-play-scraper
More information about evrenonur/google-play-scraper
Files in evrenonur/google-play-scraper
Package google-play-scraper
Short Description PHP library to scrape application data from the Google Play Store with proxy support
License MIT
Informations about the package google-play-scraper
Google Play Scraper for PHP
Google Play Scraper: Easily Scrape Google Play Store Data
Scrape detailed app information, search results, reviews, and more from the Google Play Store with a single PHP library.
This package is a PHP port of facundoolano/google-play-scraper (Node.js).
Features
- 10 Scraping Methods: app, search, list, developer, suggest, reviews, similar, permissions, dataSafety, categories
- Proxy Support: HTTP, HTTPS, SOCKS5 proxies with authentication
- Throttling: Built-in request rate limiting
- Pagination: Token-based review pagination
- Modern PHP: PHP 8.2+, Enums, named arguments, readonly properties
- Customizable HTTP: Full HTTP client control with custom Guzzle options
Requirements
- PHP >= 8.2
- Composer
- ext-json
- ext-mbstring
Installation
Install via Composer:
Usage
Available methods:
- app: Retrieves the full detail of an application.
- list: Retrieves a list of applications from one of the collections at Google Play.
- search: Retrieves a list of apps that results of searching by the given term.
- developer: Returns the list of applications by the given developer name.
- suggest: Given a string returns up to five suggestions to complete a search query term.
- reviews: Retrieves a page of reviews for a specific application.
- similar: Returns a list of similar apps to the one specified.
- permissions: Returns the list of permissions an app has access to.
- dataSafety: Returns the data safety information of an app.
- categories: Retrieve a full list of categories present from dropdown menu on Google Play.
app
Retrieves the full detail of an application. Parameters:
appId: the Google Play id of the application (the?id=parameter on the url).lang(optional, defaults to'en'): the two letter language code in which to fetch the app page.country(optional, defaults to'us'): the two letter country code used to retrieve the applications.
Example:
Results:
list
Retrieves a list of applications from one of the collections at Google Play. Parameters:
collection(optional, defaults toCollection::TOP_FREE): the Google Play collection to retrieve. Options:TOP_FREE,TOP_PAID,GROSSING.category(optional, defaults toCategory::APPLICATION): the category to filter by. Use Category enum values.num(optional, defaults to500): the number of apps to retrieve.lang(optional, defaults to'en'): the two letter language code.country(optional, defaults to'us'): the two letter country code.fullDetail(optional, defaults tofalse): iftrue, an extra request will be made for every resulting app to fetch its full detail.
Example:
Results:
search
Retrieves a list of apps that results of searching by the given term. Parameters:
term: the term to search by.num(optional, defaults to20, max250): the number of apps to retrieve.lang(optional, defaults to'en'): the two letter language code.country(optional, defaults to'us'): the two letter country code.fullDetail(optional, defaults tofalse): iftrue, an extra request will be made for every resulting app to fetch its full detail.price(optional, defaults toPrice::ALL): price filter.Price::ALL: free and paidPrice::FREE: free apps onlyPrice::PAID: paid apps only
Example:
Results:
developer
Returns the list of applications by the given developer name or ID. Parameters:
devId: the developer name or the numeric developer ID.lang(optional, defaults to'en'): the two letter language code.country(optional, defaults to'us'): the two letter country code.num(optional, defaults to60): the number of apps to retrieve.fullDetail(optional, defaults tofalse): iftrue, an extra request will be made for every resulting app to fetch its full detail.
Example:
Results:
suggest
Given a string returns up to five suggestions to complete a search query term. Parameters:
term: the term to get suggestions for.lang(optional, defaults to'en'): the two letter language code.country(optional, defaults to'us'): the two letter country code.
Example:
Results:
reviews
Retrieves a page of reviews for a specific application. Parameters:
appId: the Google Play id of the application.sort(optional, defaults toSort::NEWEST): the ordering of the reviews.Sort::HELPFULNESS: most helpful firstSort::NEWEST: newest firstSort::RATING: highest rated first
lang(optional, defaults to'en'): the two letter language code.country(optional, defaults to'us'): the two letter country code.num(optional, defaults to150): the number of reviews to retrieve.paginate(optional, defaults tofalse): enable pagination.nextPaginationToken(optional, defaults tonull): token for the next page.
Example:
Results:
similar
Returns a list of similar apps to the one specified. Parameters:
appId: the Google Play id of the application to get similar apps for.lang(optional, defaults to'en'): the two letter language code.country(optional, defaults to'us'): the two letter country code.fullDetail(optional, defaults tofalse): iftrue, an extra request will be made for every resulting app to fetch its full detail.
Example:
Results:
permissions
Returns the list of permissions an app has access to. Parameters:
appId: the Google Play id of the application.lang(optional, defaults to'en'): the two letter language code.country(optional, defaults to'us'): the two letter country code.short(optional, defaults tofalse): iftrue, returns only the permission group names.
Example:
Results (detailed):
Results (short):
dataSafety
Returns the data safety information of an app. Parameters:
appId: the Google Play id of the application.lang(optional, defaults to'en'): the two letter language code.
Example:
Results:
categories
Retrieves a full list of categories present from dropdown menu on Google Play.
Example:
Results:
Configuration
Proxy Support
Throttling
Custom Guzzle Options
Enums
Collection
| Value | Description |
|---|---|
Collection::TOP_FREE |
Top free apps |
Collection::TOP_PAID |
Top paid apps |
Collection::GROSSING |
Top grossing apps |
Category
53 category values:
| App Categories | Game Categories |
|---|---|
APPLICATION, COMMUNICATION, EDUCATION, ENTERTAINMENT, FINANCE, HEALTH_AND_FITNESS, LIFESTYLE, MUSIC_AND_AUDIO, NEWS_AND_MAGAZINES, PHOTOGRAPHY, PRODUCTIVITY, SHOPPING, SOCIAL, SPORTS, TOOLS, TRAVEL_AND_LOCAL, VIDEO_PLAYERS, WEATHER, ... |
GAME, GAME_ACTION, GAME_ADVENTURE, GAME_ARCADE, GAME_BOARD, GAME_CARD, GAME_CASINO, GAME_CASUAL, GAME_EDUCATIONAL, GAME_MUSIC, GAME_PUZZLE, GAME_RACING, GAME_ROLE_PLAYING, GAME_SIMULATION, GAME_SPORTS, GAME_STRATEGY, GAME_TRIVIA, GAME_WORD |
Sort
| Value | Description |
|---|---|
Sort::HELPFULNESS |
Most helpful first |
Sort::NEWEST |
Newest first |
Sort::RATING |
Highest rated first |
Price
| Value | Description |
|---|---|
Price::ALL |
All apps |
Price::FREE |
Free apps only |
Price::PAID |
Paid apps only |
Age
| Value | Description |
|---|---|
Age::FIVE_UNDER |
Ages 5 & under |
Age::SIX_EIGHT |
Ages 6-8 |
Age::NINE_UP |
Ages 9 & up |
Project Structure
Testing
Test Structure
| Suite | Files | Description |
|---|---|---|
| Unit Tests | tests/ |
Mock-based, no network access required |
| Scraper Tests | tests/Scraper/ |
One test file per scraper (10 files) |
| Utility Tests | tests/ |
ScriptData, MappingHelper, HttpClient |
| Enum Tests | tests/EnumTest.php |
Category, Collection, Sort, Price, Age |
| Facade Tests | tests/GooglePlayScraperTest.php |
Main facade class |
| Integration Tests | tests/integration.php |
Real API tests |
Dependencies
| Package | Version | Purpose |
|---|---|---|
guzzlehttp/guzzle |
^7.9 | HTTP client |
symfony/dom-crawler |
^7.2 | HTML parsing |
symfony/css-selector |
^7.2 | CSS selector support |
psr/log |
^3.0 | Logging interface |
phpunit/phpunit |
^12.5 | Testing (dev) |
License
MIT License. See LICENSE for details.
Reference
This PHP package was developed based on the architecture and workflows of facundoolano/google-play-scraper (Node.js).
All versions of google-play-scraper with dependencies
guzzlehttp/guzzle Version ^7.9
symfony/dom-crawler Version ^7.2
symfony/css-selector Version ^7.2
psr/log Version ^3.0