PHP code example of expbenson / app-info

1. Go to this page and download the library: Download expbenson/app-info library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

expbenson / app-info example snippets


// 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()
);