PHPackages                             scrawler/php2js - 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. scrawler/php2js

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

scrawler/php2js
===============

Simple library to convert php into frontend javascript code

v0.3.0(4y ago)110MITPHP

Since May 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/scrawler-labs/php2js)[ Packagist](https://packagist.org/packages/scrawler/php2js)[ RSS](/packages/scrawler-php2js/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

PHP2JS
======

[](#php2js)

Convert php code to javascript code that can run on browser

### Installation

[](#installation)

package can be installed via composer

```
composer require piqon/php2js

```

### Usage

[](#usage)

If You want to create a copiled javascript file , you can run the following code:

```
