kinzal/sstp

Sakura Script Transfer Protocol.

0.0.2 2013-11-30 22:34 UTC

This package is not auto-updated.

Last update: 2024-03-26 04:02:38 UTC


README

Sakura Script Transfer Protocol http://usada.sakura.vg/contents/sstp.html

Install

Add the package to your composer.json and run composer update.

{
    "require": {
        "kinzal/sstp": "dev-master"
    }
}

Example

$sstp = new SSTP();
$sstp->message = '
    SEND SSTP/1.1
    Sender: カードキャプター
    Script: \h\s0汝のあるべき姿に戻れ。\e
    Option: nodescript,notranslate
    Charset: Shift_JIS
';
$response = $sstp->send('127.0.0.1', 9801, 2);

echo $response; // -> SSTP/1.1 200 OK\r\n