PHPackages                             brownbear/php-transpiler - 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. brownbear/php-transpiler

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

brownbear/php-transpiler
========================

Transpiles PHP 5.x into PHP 5.6 or PHP 7 optimized code

23214[6 issues](https://github.com/original-brownbear/php-transpiler/issues)PHP

Since Feb 29Pushed 10y ago3 watchersCompare

[ Source](https://github.com/original-brownbear/php-transpiler)[ Packagist](https://packagist.org/packages/brownbear/php-transpiler)[ RSS](/packages/brownbear-php-transpiler/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Transpiler
==============

[](#php-transpiler)

This tool transpiles PHP code into optimized PHP code.

Implemented features:

1. Inlines `require` and `include` statements.
2. Strips unnecessary whitespaces from the code.
3. Strips comments from code.

Example
-------

[](#example)

Run against files test.php and include.php in the same directory given as:

test.php

```
