BSN4

BSN4 / grpc-php-rs

Public

A Rust-based gRPC extension for PHP — drop-in replacement for ext-grpc. ZTS-safe, uses rustls instead of OpenSSL.

16
1
100% credibility
Found Mar 10, 2026 at 14 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Rust
AI Summary

A Rust-based drop-in replacement for the official PHP gRPC extension that fixes crashes in threaded environments and OpenSSL conflicts.

How It Works

1
😩 App crashes on connections

Your PHP program keeps crashing when trying to connect and talk to other services using the usual tool.

2
🔍 Discover a fix

You find a reliable replacement that works just like the old one but without the crashes or conflicts.

3
Choose easy setup
🐳
Container copy

Copy a pre-made piece into your ready environment with one quick line.

📦
Quick package

Install a handy bundle using a simple command.

📥
Direct download

Grab the file and place it where your PHP looks for helpers.

4
📂 Place it in PHP

Put the replacement right into your PHP's helper folder so it's ready to use.

5
🔌 Turn it on

Add one line to tell PHP to use this stable version, and your connections start working perfectly.

🎉 Smooth sailing

Now your app chats reliably with services, handles lots of requests without crashing, and everything feels solid.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 14 to 16 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is grpc-php-rs?

grpc-php-rs is a Rust-based gRPC extension for PHP, acting as a drop-in replacement for ext-grpc. It lets PHP apps make gRPC calls with the exact same API—no code changes—while fixing ZTS crashes in runtimes like FrankenPHP and Swoole, and using rustls instead of OpenSSL to dodge conflicts with curl or other extensions. Install via Docker copy-paste or PIE for instant use across PHP 8.2+ on Linux and macOS.

Why is it gaining traction?

Unlike the C-based ext-grpc, this Rust project eliminates segfaults under threaded SAPIs and skips OpenSSL deps entirely, making it ZTS-safe out of the box. Prebuilt Docker images handle NTS/ZTS for any PHP version, and tests prove compatibility with Temporal and OpenTelemetry. Devs swap it in for reliable gRPC without rebuilding PHP.

Who should use this?

PHP microservice devs hitting ZTS crashes on Swoole or FrankenPHP. Backend teams integrating gRPC clients for Firestore, Temporal workflows, or OTEL tracing. Folks exploring Rust-based PHP extensions on GitHub who need production-ready gRPC without OpenSSL headaches.

Verdict

Solid docs and ZTS stress tests make it usable now, despite 11 stars and 1.0% credibility score signaling early maturity. Try it as ext-grpc replacement if threading or deps break you—otherwise wait for more adoption.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.