PHP Classes

Apk Parser: Extract Application Package files in APK format

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 77%Total: 1,723 All time: 2,279 This week: 455Up
Version License PHP version Categories
apk-parser 1.15GNU General Publi...5.3PHP 5, Files and Folders
Description 

Author

This package can extract application package files in APK format used by devices running on Android OS.

It can open an APK file and extract the contained manifest file to parse it and retrieve the meta-information it contains like the application name, description, device feature access permission it requires, etc..

The class can also extract the whole files contained in the APK file to a given directory.

Innovation Award
PHP Programming Innovation award winner
April 2012
Winner


Prize: One book of choice by Packt
APK is file format for storing application files used in the Android operating system.

This class provides a pure PHP solution for analyzing and extracting the contents of arbitrary APK files.

Manuel Lemos
Picture of Tufan Baris YILDIRIM
  Performance   Level  
Name: Tufan Baris YILDIRIM is available for providing paid consulting. Contact Tufan Baris YILDIRIM .
Classes: 11 packages by
Country: Turkey Turkey
Age: 35
All time rank: 1773 in Turkey Turkey
Week rank: 192 Down3 in Turkey Turkey Equal
Innovation award
Innovation award
Nominee: 5x

Winner: 4x

Details

Apk Parser

This package can extract application package files in APK format used by devices running on Android OS. It can open an APK file and extract the contained manifest file to parse it and retrieve the meta-information it contains like the application name, description, device feature access permission it requires, etc.. The class can also extract the whole files contained in the APK file to a given directory.

Requirements

PHP 5.3+

Installation

  • Install composer
  • Create a composer.json into your project like the following sample:
{
    ...
    "require": {
        "tufanbarisyildirim/php-apk-parser":"dev-master"
    }
}

  • Then from your `composer.json` folder: `php composer.phar install` or `composer install`

Testing

Tests are powered by PHPUnit. You have several options.

  • Run `phpunit` if PHPUnit is installed globally.
  • Install dependencies (requires Composer). Run `php composer.phar --dev install` or `composer --dev install`. Then `bin/vendor/phpunit` to run version installed by Composer. This ensures that you are running a version compatible with the test suite.

Contributing

Fork the repo, make your changes, add your name to developers, and create a pull request with a comment that describe your changes. That's all!

Developers

Tufan Barış Yıldırım

Supporters

MiKandi Team supports/develops Apk parser

Php Storm

JetBrains provides opensource license to Apk Parser's core developers.

Add your name here if you want to support/donate apk-parser

Who Uses Apk Parser

World #1 Adult App Store MiKandi uses Apk Parser on their app store

Add your name here if you use apk-parser on your any project.

License

Apk Parser is MIT licensed.


  Files folder image Files (29)  
File Role Description
Files folder imageexamples (7 files)
Files folder imagelib (1 directory)
Files folder imagetest (1 file, 1 directory)
Accessible without login Plain text file .travis.yml Data travis bulding
Accessible without login Plain text file composer.json Data added composer
Accessible without login Plain text file LICENSE.md Lic. License text
Accessible without login Plain text file phpunit.xml Data phpunit configuration
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (29)  /  examples  
File Role Description
  Accessible without login Plain text file ApkActivities.php Example Example script
  Accessible without login Plain text file ApkClasses.php Example Example script
  Accessible without login Plain text file ApkExtractor.php Example Example script
  Accessible without login Plain text file ApkInfo.php Example Example script
  Accessible without login Plain text file ApkResource.php Example resource parsing
  Accessible without login Plain text file autoload.php Aux. Auxiliary script
  Accessible without login Plain text file PrintManifestXml.php Example Example script

  Files folder image Files (29)  /  lib  
File Role Description
Files folder imageApkParser (15 files)

  Files folder image Files (29)  /  lib  /  ApkParser  
File Role Description
  Plain text file Activity.php Class Class source
  Plain text file AndroidPlatform.php Class Class source
  Plain text file Application.php Class Class source
  Plain text file Archive.php Class Class source
  Plain text file Config.php Class Class source
  Plain text file IntentFilter.php Class Class source
  Plain text file Manifest.php Class Class source
  Plain text file ManifestXmlElement.php Class Class source
  Plain text file Parser.php Class Class source
  Plain text file ResourcesParser.php Class Class source
  Plain text file SeekableStream.php Class Class source
  Plain text file Stream.php Class Class source
  Plain text file Utils.php Class Class source
  Plain text file Xml.php Class Class source
  Plain text file XmlParser.php Class Class source

  Files folder image Files (29)  /  test  
File Role Description
Files folder imageresources (1 file)
  Accessible without login Plain text file ParserTest.php Test more tests!

  Files folder image Files (29)  /  test  /  resources  
File Role Description
  Accessible without login Image file ebhs.png Icon Icon image

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:1,723
This week:0
All time:2,279
This week:455Up
User Ratings User Comments (2)
 All time
Utility:89%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:72%StarStarStarStar
Examples:85%StarStarStarStarStar
Tests:84%StarStarStarStarStar
Videos:-
Overall:77%StarStarStarStar
Rank:49
 
very good"
12 years ago (Kemal BALABAN)
80%StarStarStarStarStar
Googd.
12 years ago (Ferhat Doğan)
80%StarStarStarStarStar