2017 © Pedro Peláez
 

library php-read-ipa

Read basic info about an application from .ipa file.

image

hoanganh25991/php-read-ipa

Read basic info about an application from .ipa file.

  • Wednesday, August 24, 2016
  • by hoanganh25991
  • Repository
  • 2 Watchers
  • 6 Stars
  • 150 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Php read ipa file

IpaParser try to unzip ipa file, then read Info.plist & uncrush *.png to get icon app, (*1)

+ unzip ipa file
+ read Info.plist, package: `rodneyrehm/plist`
+ uncrushed *.png to get icon app, class `PngUncrushed`
+ writing test, `phpunit`

How to use

/*#instance of IpaParser
$parser = new IpaParser("/path/to/file.ipa");

#getBasicInfo() return an array from Info.plist
#icon saved in ipa-info/app-icon.png
$info = $parser->getBasicInfo();

Test

/*Run unit test by cmd:
phpunit --bootstrap vendor/autoload.php test/ParseTest.php

Sample result

Info.plist, (*2)

array (size=33)
  'UIRequiresFullScreen' => boolean true
  'CFBundleInfoDictionaryVersion' => string '6.0' (length=3)
  'UISupportedInterfaceOrientations~ipad' => 
    array (size=2)
      0 => string 'UIInterfaceOrientationLandscapeLeft' (length=35)
      1 => string 'UIInterfaceOrientationLandscapeRight' (length=36)
  'UIInterfaceOrientation' => 
    array (size=1)
      0 => string 'UIInterfaceOrientationLandscapeLeft' (length=35)
  'DTPlatformVersion' => string '9.3' (length=3)
  'CFBundleName' => string 'aia_wpa' (length=7)
  'DTSDKName' => string 'iphoneos9.3' (length=11)
  'UIViewControllerBasedStatusBarAppearance' => boolean false
  'CFBundleIcons' => 
    array (size=0)
      empty
  'LSRequiresIPhoneOS' => boolean true
  'CFBundleDisplayName' => string 'AIA WPA' (length=7)
  'DTSDKBuild' => string '13E230' (length=6)
  'CFBundleShortVersionString' => string '1.0.1' (length=5)
  'CFBundleSupportedPlatforms' => 
    array (size=1)
      0 => string 'iPhoneOS' (length=8)

app-icon.png, (*3)

app-icon, (*4)

Review Youtube

php-read-ipa-2016-06-13, (*5)

The Versions

24/08 2016

dev-master

9999999-dev https://github.com/hoanganh25991/php-read-apk

Read basic info about an application from .ipa file.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Anh Le Hoang

read parser android apk