Giter VIP home page Giter VIP logo

php-read-ipa's Introduction

#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.plist

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

app-icon

##Review Youtube php-read-ipa-2016-06-13

<iframe width="560" height="315" src="https://www.youtube.com/embed/20c_61B_hPc" frameborder="0" allowfullscreen></iframe>

php-read-ipa's People

Contributors

hoanganh25991 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.