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.
PHP 7.1+
curl -sS https://getcomposer.org/installer | phpCreate 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-phpor
composer installphp composer.phar require evozi/apk-parser-php:dev-masterTests are powered by PHPUnit. You have several options.
- Run
phpunitif PHPUnit is installed globally. - Install dependencies (requires Composer).
Run
php composer.phar --dev installorcomposer --dev install. Thenbin/vendor/phpunitto run version installed by Composer. This ensures that you are running a version compatible with the test suite.
APK Parser is MIT licensed.