PHP code example of baggins800 / reverb-rs

1. Go to this page and download the library: Download baggins800/reverb-rs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

baggins800 / reverb-rs example snippets

bash
php artisan reverb-rs:start
nginx
location / {
    proxy_pass http://127.0.0.1:8080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header Host $host;
    proxy_set_header Origin $http_origin;   # needed if you restrict allowed_origins
    proxy_read_timeout 3600s;
}
bash
cargo run --release --example conformance -- --addr 127.0.0.1:8080 > php.txt
cargo run --release --example conformance -- --addr 127.0.0.1:8081 > rust.txt
diff php.txt rust.txt