PHPackages                             abaydullah/php-laravel-android-apk-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. abaydullah/php-laravel-android-apk-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

abaydullah/php-laravel-android-apk-parser
=========================================

Read basic info about an application from android .apk file

v1.0.0(1y ago)01.2k—6.7%1MITPHPPHP ^8.1

Since Nov 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/abaydullah/php-laravel-android-apk-parser)[ Packagist](https://packagist.org/packages/abaydullah/php-laravel-android-apk-parser)[ Docs](https://abaydullah.com)[ RSS](/packages/abaydullah-php-laravel-android-apk-parser/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[PHP Larvael Android Apk Parser](http://abaydullah.com/)
========================================================

[](#php-larvael-android-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

[](#requirements)

PHP 8.1+

Installation
------------

[](#installation)

Add `abaydullah/php-laravel-android-apk-parser` as a require dependency in your `composer.json` file:

```
$ composer require abaydullah/php-laravel-android-apk-parser
```

Usage
-----

[](#usage)

First create a `Scraper` instance.

```
use Abaydullah\ApkParser\Parser;

include 'autoload.php';
$apk = new Parser('APK URL');

$manifest = $apk->getManifest();
$permissions = $manifest->getPermissions();

echo '';
echo "Package Name      : " . $manifest->getPackageName() . "" . PHP_EOL;
echo "Version           : " . $manifest->getVersionName() . " (" . $manifest->getVersionCode() . ")" . PHP_EOL;
echo "Min Sdk Level     : " . $manifest->getMinSdkLevel() . "" . PHP_EOL;
echo "Min Sdk Platform  : " . $manifest->getMinSdk()->platform . "" . PHP_EOL;
echo "Target Sdk Level     : " . $manifest->getTargetSdkLevel() . "" . PHP_EOL;
echo "Target Sdk Platform  : " . $manifest->getTargetSdk()->platform . "" . PHP_EOL;
echo PHP_EOL;
echo "------------- Permssions List -------------" . PHP_EOL;

// find max length to print more pretty.
$perm_keys = array_keys($permissions);
$perm_key_lengths = array_map(
    function ($perm) {
        return strlen($perm);
    },
    $perm_keys
);
$max_length = max($perm_key_lengths);

foreach ($permissions as $perm => $detail) {
    echo str_pad($perm, $max_length + 4, ' ') . "=> " . $detail['description'] . " " . PHP_EOL;
    echo str_pad(
        '',
        $max_length - 5,
        ' '
    ) . ' cost    =>  ' . ($detail['flags']['cost'] ? 'true' : 'false') . " " . PHP_EOL;
    echo str_pad(
        '',
        $max_length - 5,
        ' '
    ) . ' warning =>  ' . ($detail['flags']['warning'] ? 'true' : 'false') . " " . PHP_EOL;
    echo str_pad(
        '',
        $max_length - 5,
        ' '
    ) . ' danger  =>  ' . ($detail['flags']['danger'] ? 'true' : 'false') . " " . PHP_EOL;
}

echo PHP_EOL;
echo "------------- Activities  -------------" . PHP_EOL;
foreach ($apk->getManifest()->getApplication()->activities as $activity) {
    echo $activity->name . ($activity->isLauncher ? ' (Launcher)' : null) . PHP_EOL;
}
```

Testing
-------

[](#testing)

Tests are powered by PHPUnit. You have several options.

- Run `phpunit` if PHPUnit is installed globally.
- Install dependencies (requires [Composer](https://getcomposer.org/download)). 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.

Thanks
------

[](#thanks)

This Package Modified From Here Thanks JetBrains for the free open source license

[ ![Jetbrains](https://camo.githubusercontent.com/fb05ef5dfb873be566f687c659530467837038a1f1b3160accc9e8df636d323a/68747470733a2f2f7265736f75726365732e6a6574627261696e732e636f6d2f73746f726167652f70726f64756374732f636f6d70616e792f6272616e642f6c6f676f732f6a625f6265616d2e706e67)](https://www.jetbrains.com/?from=tufanbarisyildirim)### License

[](#license)

Apk Parser is [MIT licensed](./LICENSE.md).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

596d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b8fe603722b4b20fc54ea69fab6ebdb071b57e6da392f58a11e1f70f905957f?d=identicon)[abaydullah](/maintainers/abaydullah)

---

Top Contributors

[![abaydullah](https://avatars.githubusercontent.com/u/36629239?v=4)](https://github.com/abaydullah "abaydullah (4 commits)")

---

Tags

phplaravelparserandroidapk

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/abaydullah-php-laravel-android-apk-parser/health.svg)

```
[![Health](https://phpackages.com/badges/abaydullah-php-laravel-android-apk-parser/health.svg)](https://phpackages.com/packages/abaydullah-php-laravel-android-apk-parser)
```

###  Alternatives

[tufanbarisyildirim/php-apk-parser

Read basic info about an application from .apk file.

351545.2k3](/packages/tufanbarisyildirim-php-apk-parser)[ajthinking/archetype

Programmatically edit PHP and Laravel files.

2723.9M19](/packages/ajthinking-archetype)[corveda/php-sandbox

A PHP library that can be used to run PHP code in a sandboxed environment

23796.2k2](/packages/corveda-php-sandbox)[evozi/apk-parser-php

Read basic info about android application from .apk file.

402.3k](/packages/evozi-apk-parser-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
