Mobile App Version
Get mobile app version and other related data from Google Play Store, Apple App Store and Huawei AppGallery.
Installation
Add to composer.json
:
{
"require": {
"omersalaj/mobile-app-version": "^0.0.2"
}
}
Or require package via composer:
composer require omersalaj/mobile-app-version
Usage
To get information for Android application You can use this package as following:
require_once 'vendor/autoloader.php';
use OmerSalaj\MobileAppVersion\AndroidMobileAppVersion;
//For Android initialize new app with app id
$android_app = new AndroidMobileAppVersion('com.discord');
$android_app->id();
//Returns Android package id (e.g. com.discord)
$android_app->currentVersion();
//Returns current version of the application (e.g. 74.10)
$android_app->updatedAt();
//Returns the date of latest update of the application (e.g. May 25, 2021)
$android_app->size();
//Returns application size (e.g. 92M)
$android_app->installs();
//Return total numbers of installations (e.g. 100,000,000+)
$android_app->minimumOS();
//Returns minimum Android OS version on which you can run the application (e.g 5.0 and up)
$android_app->owner();
//Returns the owner/publisher of the application (e.g. Discord Inc.)
Similar to this, for iOS applications usage will be as following:
require_once 'vendor/autoloader.php';
use OmerSalaj\MobileAppVersion\iOSMobileAppVersion;
//For iOS initialize new app with app id
$ios_app = new iOSMobileAppVersion('id985746746');
$ios_app->id();
//Returns iOS package id (e.g. id985746746)
$ios_app->currentVersion();
//Returns current version of the application (e.g. 76.0)
$ios_app->size();
//Returns application size (e.g. 178.6 MB)
$ios_app->minimumOS();
//Returns minimum iOS version on which you can run the application
// (e.g iPhone Requires iOS 10.0 or later. iPad Requires iPadOS 10.0 or later.
// iPod touch Requires iOS 10.0 or later.)
$ios_app->owner();
//Returns the owner/publisher of the application (e.g. Discord, Inc.)
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.