evozi / apk-parser-php
Read basic info about android application from .apk file.
Installs: 2 049
Dependents: 0
Suggesters: 0
Security: 0
Stars: 37
Watchers: 5
Forks: 14
Open Issues: 0
Requires
- php: >=7.1
- ext-json: *
- ext-libxml: *
- ext-mbstring: *
- ext-simplexml: *
- ext-zip: *
Requires (Dev)
- phpunit/phpunit: ^7.4
This package is auto-updated.
Last update: 2024-11-15 13:08:28 UTC
README
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 7.1+
Installation
Composer
Install Composer
curl -sS https://getcomposer.org/installer | php
Install via composer by hand
Create a composer.json into your project and add to your composer.json file by hand.
{ ... "require": { ... "evozi/apk-parser-php":"dev-master" } ... }
Once you have added this, just run:
php composer.phar update evozi/apk-parser-php
or
composer install
Install using composer
php composer.phar require evozi/apk-parser-php:dev-master
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
orcomposer --dev install
. Thenbin/vendor/phpunit
to run version installed by Composer. This ensures that you are running a version compatible with the test suite.
License
APK Parser is MIT licensed.