sysout/php-app-mobile-version

read the version of the apps that is in the app store and google play

1.1.0 2022-05-30 17:33 UTC

This package is auto-updated.

Last update: 2025-05-29 01:38:03 UTC


README

Installation

The recommended way to install AppMobileVersion is through Composer.

composer require sysout/php-app-mobile-version

Documentation

to use the whole appversion library, you should follow the following structure in laravel:

$options = [
    'bundleId' => 'package id',
    'useCache' => true,
    'cacheFilePath' => '/var/www/mobile-version.json',
    'cachePeriod' => 3600
];

$api= new AppMobileVersion($options);

$data =[
    $androidVersion = 'android: '.$api->getAndroid(),
    $iosVersion = 'ios: '.$api->getIos()
];

echo $data;