# phpx
**Repository Path**: mirrors_swoole/phpx
## Basic Information
- **Project Name**: phpx
- **Description**: C++ wrapper for Zend API
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 1
- **Forks**: 0
- **Created**: 2022-01-06
- **Last Updated**: 2026-03-30
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[](https://twitter.com/phpswoole)
[](https://discord.swoole.dev)
[](https://github.com/matyhtf/phpx/actions?query=workflow%3Alibphpx)
[](LICENSE)
[](https://github.com/swoole/phpx/releases/)
[](https://codecov.io/gh/swoole/phpx)
C++ wrapper for Zend API
## Requirements
- PHP 8.1 or later
- Linux/macOS/Windows
- GCC 4.8 or later
- Composer
## Build libphpx.so
```shell
cmake .
make -j 4
sudo make install
sudo ldconfig
```
## Create Project
```shell
# extension
composer create-project swoole/phpx-ext test
```
## Generate ArgInfo & Function Entires
```shell
php vendor/swoole/phpx/bin/gen_stub.php your_stub_dir
```
## Build extension
```shell
cd test
cmake .
make -j 4
make install
```
## Load your extension
Edit `php.ini`, add `extension=test.so`
## Run
```shell
php echo.php
```