PHPackages                             mervick/javascript-unpacker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mervick/javascript-unpacker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mervick/javascript-unpacker
===========================

PHP helper that makes easy to unpack JavaScript code packed by Dean Edwards packer tool

v1.0.1(10y ago)2043511MITPHPPHP &gt;=5.4.0

Since Nov 10Pushed 10y ago5 watchersCompare

[ Source](https://github.com/mervick/JavaScriptUnpacker)[ Packagist](https://packagist.org/packages/mervick/javascript-unpacker)[ RSS](/packages/mervick-javascript-unpacker/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

JavaScriptUnpacker
==================

[](#javascriptunpacker)

Makes easy to unpacking JavaScript code packed by Dean Edwards packer tool. Supports of all known encodings. The input script may contain multiple encoded code blocks, mixes with the non-encoded code, and is also supported for repeatedly encoded code.

Installation via Composer
-------------------------

[](#installation-via-composer)

```
composer require "mervick/javascript-unpacker"
```

Usage
-----

[](#usage)

```
echo JavaScriptUnpacker::unpack(file_get_contents('/path/to/packed.js'));
```

Unpack JavaScript via PHP eval(function(p,a,c,k,e,d)
----------------------------------------------------

[](#unpack-javascript-via-php-evalfunctionpacked)

```
$js =
