pub trait PhpBridge: Send + Sync {
// Required method
fn call(
&self,
method: &str,
uri: &str,
body: Option<&str>,
) -> Result<PhpCallResult, String>;
}Expand description
Trait abstracting the PHP pool so JSC/Bun can call PHP.
Required Methods§
Sourcefn call(
&self,
method: &str,
uri: &str,
body: Option<&str>,
) -> Result<PhpCallResult, String>
fn call( &self, method: &str, uri: &str, body: Option<&str>, ) -> Result<PhpCallResult, String>
Execute a PHP request and return the response body.
This dispatches to the PHP worker pool, executes the request through PHP’s front controller (or worker handler), and returns the response body as a string.