Skip to content

wudi/php-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-rs

⚠️ In Experimental State

A PHP interpreter written in Rust.

Features

  • Core PHP language support
  • Standard library extensions (BCMath, JSON, MySQLi, PDO, OpenSSL, Zip, Zlib, etc.)
  • CLI interface (php)
  • FastCGI Process Manager (php-fpm)

Getting Started

Prerequisites

  • Rust (latest stable release)

Building

Clone the repository and build using Cargo:

git clone https://github.com/wudi/php-rs.git
cd php-rs
cargo build --release

Usage

CLI

Run a PHP script:

cargo run --bin php -- script.php

Interactive shell:

cargo run --bin php

FPM

Start the PHP-FPM server:

cargo run --bin php-fpm

Testing

Run the test suite:

cargo test

License

This project is licensed under the MIT License.

Created by AI

About

A PHP interpreter written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages