https://github.com/hoanganh25991/php-read-ipa
read basic info from ipa, get out icon path
https://github.com/hoanganh25991/php-read-ipa
Last synced: 2 months ago
JSON representation
read basic info from ipa, get out icon path
- Host: GitHub
- URL: https://github.com/hoanganh25991/php-read-ipa
- Owner: hoanganh25991
- Created: 2016-06-13T09:48:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-24T01:59:38.000Z (almost 9 years ago)
- Last Synced: 2025-03-24T15:01:35.691Z (3 months ago)
- Language: PHP
- Size: 5.58 MB
- Stars: 11
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#Php read ipa file
IpaParser try to unzip ipa file, then read __Info.plist__ & uncrush __*.png__ to get icon app+ 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.plistarray (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
##Review Youtube
[php-read-ipa-2016-06-13](https://www.youtube.com/watch?v=20c_61B_hPc)