PHPackages                             phxlang/phx - 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. phxlang/phx

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

phxlang/phx
===========

AST-based syntax extension for PHP

1.0.0-alpha1(8y ago)216[1 issues](https://github.com/phxlang/phx/issues)1MITPHP

Since Aug 13Pushed 8y ago2 watchersCompare

[ Source](https://github.com/phxlang/phx)[ Packagist](https://packagist.org/packages/phxlang/phx)[ RSS](/packages/phxlang-phx/feed)WikiDiscussions master Synced 2w ago

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

PHX
===

[](#phx)

PHX (**PH**P Ne**X**t) is a language extension of PHP. While PHP is fully supported by PHX it adds some additional syntax to the existing syntax set of PHP which increases productivity and readability of common PHP code.

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

[](#installation)

Install PHX simply by adding the dependency to the project's `composer.json`.

```
composer require phxlang/phx

```

Or install it globally:

```
composer global require phxlang/phx

```

Usage
-----

[](#usage)

### Standalone

[](#standalone)

There's a `phx` binary which takes a file path as the first argument which will be the PHX script to be executed:

```
$ vendor/bin/phx your_script.phx
```

### With Composer

[](#with-composer)

If you want to use PHX with `composer` autoloading please install the [**phx/composer-phx-plugin**](https://github.com/phxlang/composer-phx-plugin). It will add PHX autoloading support to composer.

Tests
-----

[](#tests)

Yes there are a few integration tests. Run them in the project root:

```
$ vendor/bin/phpunit
```

Documentation
-------------

[](#documentation)

There's a [**doc**](./doc/) dir with useful information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

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

3244d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/598854?v=4)[Pascal Münst](/maintainers/TiMESPLiNTER)[@TiMESPLiNTER](https://github.com/TiMESPLiNTER)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phxlang-phx/health.svg)

```
[![Health](https://phpackages.com/badges/phxlang-phx/health.svg)](https://phpackages.com/packages/phxlang-phx)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k118.7M681](/packages/symfony-maker-bundle)[roave/backward-compatibility-check

Tool to compare two revisions of a public API to check for BC breaks

6003.6M95](/packages/roave-backward-compatibility-check)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4814.0M23](/packages/coenjacobs-mozart)[v.chetkov/php-clean-architecture

PHP Clean Architecture

14659.9k](/packages/vchetkov-php-clean-architecture)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12524.8M146](/packages/phpdocumentor-reflection)

PHPackages © 2026

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