tufanbarisyildirim / php-apk-parser
Read basic info about an application from .apk file.
Installs: 522 636
Dependents: 7
Suggesters: 0
Security: 0
Stars: 346
Watchers: 12
Forks: 119
Open Issues: 4
pkg:composer/tufanbarisyildirim/php-apk-parser
Requires
- php: >=8.0
- ext-json: *
- ext-libxml: *
- ext-mbstring: *
- ext-simplexml: *
- ext-zip: *
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is not auto-updated.
Last update: 2026-02-28 19:52:21 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 8.0+
PHP 7.3+ is in 2.x.x branch
Installation
- Install composer
- Run the following command in the folder where
composer.jsonis:composer require tufanbarisyildirim/php-apk-parser
Testing
Tests are powered by PHPUnit and can be run fully in Docker.
- Build the PHP test image:
make docker-build - Install dependencies in Docker:
make docker-install - Run tests in Docker:
make docker-test - Run code style checks in Docker (non-mutating):
make docker-lint - Run code style auto-fix in Docker:
make docker-format - Run PHP syntax/static checks in Docker:
make docker-static - Run the full verification pipeline in Docker:
make docker-check - Existing aliases are still available:
make test,make lint
Dependency Lockfile Policy
composer.lock is committed in this repository to keep local and CI dependency resolution deterministic.
CI also validates compatibility across dependency ranges (highest and lowest sets).
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! Thanks to all contributers
Thanks
Thanks JetBrains for the free open source license
License
Apk Parser is MIT licensed.