expbenson/app-info

Read information from App.

Installs: 10

Dependents: 0

Stars: 1

Watchers: 1

Language: PHP

0.1.5 2014-04-06 10:11 UTC

README

Read information from App package.

Installation

Using composer

{
    "require": {
        "rodneyrehm/plist": "dev-master",
        "tufanbarisyildirim/php-apk-parser": "dev-master",
        "expbenson/app-info": "dev-master"
    }
}

Usage

// Test 1
$app = Expbenson\AppInfo\AppFactory::Create('test.apk');

echo sprintf(
    "Name:\t%s\nVersion:\t%s\nVersionCode:\t%s\n",
    $app->getName(),
    $app->getVersion(),
    $app->getVersionCode()
);
// Test 2
$ipa = Expbenson\AppInfo\IosApp('ios.ipa');
echo sprintf(
    "Name:\t%s\nVersion:\t%s\nVersionCode:\t%s\n",
    $app->getName(),
    $app->getVersion(),
    $app->getVersionCode()
);