Download the PHP package evozi/apk-parser-php without Composer
On this page you can find all versions of the php package evozi/apk-parser-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download evozi/apk-parser-php
More information about evozi/apk-parser-php
Files in evozi/apk-parser-php
Package apk-parser-php
Short Description Read basic info about android application from .apk file.
License MIT
Homepage https://github.com/evozi/apk-parser-php
Informations about the package apk-parser-php
APK Parser
A pure-PHP library for reading Android application packages (.apk files). It parses the binary AndroidManifest.xml and resource table without any external tools, giving you access to the package name, version, SDK levels, permissions, activities, and more. It can also list every class defined in the app's dex files (multidex supported) using a native PHP dex parser — no Java required — and extract the APK's contents to a directory.
Requirements
- PHP 8.1+ (tested on PHP 8.1 – 8.5)
- Extensions:
zip,simplexml,libxml,json,mbstring
Installation
Usage
Reading basic information
Permissions
getPermissions() returns each permission with its description and cost/warning/danger flags:
Activities and intent filters
Listing classes from the dex files
Classes are read directly from classes.dex (and any classes2.dex, classes3.dex, … for multidex apps) with the built-in PHP dex parser:
Resources
Extracting the APK contents
Raw manifest XML
Configuration
If you only need the manifest, skip parsing the resource table for a faster start-up:
More runnable examples are available in the examples/ directory.
Testing
Tests are powered by PHPUnit and run on every push via GitHub Actions:
Or run everything inside Docker without a local PHP installation:
Credits
Originally based on tufanbarisyildirim/php-apk-parser by Tufan Baris Yildirim, maintained by Evozi.
License
APK Parser is MIT licensed.
All versions of apk-parser-php with dependencies
ext-simplexml Version *
ext-json Version *
ext-libxml Version *
ext-mbstring Version *
ext-zip Version *