ifeeline/shadowsocks

PHP Shadowsocks Client With Workerman or Swoole

dev-master / 1.0.x-dev 2017-10-05 12:44 UTC

This package is not auto-updated.

Last update: 2024-04-24 00:27:27 UTC


README

安装:

composer require ifeeline/shadowsocks

配置格式:

$config = [
    'local_ip' => '127.0.0.1',
    'local_port' => 1080,
    'process_count' => 12,
    'method' => 'aes-256-cfb',
    'password' => '123456789',
    'servers' => [
         [
             'ip' => '1.1.1.1',
             'port' => 8388
         ],
         [
             'ip' => '2.2.2.2',
             'port' => 8388
         ]
     ]
];

用法:

注:每次链接,会随机从$servers中选择一个SERVER进行链接。