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

ActiveLibrary

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 3d 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 22% 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

3197d 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

[psy/psysh

An interactive shell for modern PHP.

9.8k545.6M719](/packages/psy-psysh)[zircote/swagger-php

Generate interactive documentation for your RESTful API using PHP attributes (preferred) or PHPDoc annotations

5.3k132.9M468](/packages/zircote-swagger-php)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[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.4k111.1M568](/packages/symfony-maker-bundle)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)

PHPackages © 2026

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