2017 © Pedro Peláez
 

socket shadowrocket

A PHP shadowsocks component

image

ycgambo/shadowrocket

A PHP shadowsocks component

  • Monday, May 21, 2018
  • by ycgambo
  • Repository
  • 1 Watchers
  • 3 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 14 Versions
  • 10 % Grown

The README.md

shadowrocket

A socks5 proxy to build your own shadowsocks private network. PHP based & Composer supported., (*1)

中文文档 Contributing, (*2)

Features

  1. TCP/UDP support
  2. IPV4/DOMAINNAME/IPV6 support
  3. Graceful restart
  4. Monolog Logger
  5. Guarder(Black List)
  6. Server Manager

Coming Next

  • bandwidth throttling
  • user management

Install

composer require ycgambo/shadowrocket

Requirements

  1. Composer
  2. PHP 5.3+

Usage

Run a server

<?php
require_once __DIR__ . '/vendor/autoload.php';

$config = array(
    'server' => array(
        'port'        => '8388',
        'password'    => 'mypass',
        'encryption'  => 'aes-256-cfb',
        'process_num' => 12,
    ),
);

ShadowRocket\Bin\Launcher::launch($config);

Run a local proxy

<?php
require_once __DIR__ . '/vendor/autoload.php';

$config = array(
    'local' => array(
        'server'      => '123.456.78.9',
        'port'        => '8388',
        'password'    => 'mypass',
        'encryption'  => 'aes-256-cfb',
        'local_port'  => '1086',
        'process_num' => 12,
    )
);

ShadowRocket\Bin\Launcher::launch($config);

This means we want to pass data to local proxy 127.0.0.1:1086 which will request proxy server 123.456.78.9:8388 for reply., (*3)

Fire your script up

Assuming your script is named as start.php, in which contains code to launch the Launcher., (*4)

To run as daemon:, (*5)

php start.php start -d

To stop your script:, (*6)

php start.php stop

To graceful restart:, (*7)

php start.php reload

To check status:, (*8)

php start.php status

To check connections:, (*9)

php start.php connections

More docs

Want a client APP?

The Versions

21/05 2018

dev-dev

dev-dev

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

15/05 2018

dev-master

9999999-dev

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

15/05 2018

1.5.4

1.5.4.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

15/05 2018

1.5.3

1.5.3.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

01/05 2018

1.5.2

1.5.2.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

01/05 2018

1.5.1

1.5.1.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

01/05 2018

1.5.0

1.5.0.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

30/04 2018

1.4.0

1.4.0.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

04/04 2018

v1.3.0

1.3.0.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

01/04 2018

v1.2.2

1.2.2.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

30/03 2018

v1.2.1

1.2.1.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

30/03 2018

v1.2.0

1.2.0.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

24/02 2018

v1.1.2

1.1.2.0

A PHP shadowsocks component

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket shadowsocks

24/02 2018

1.0.1

1.0.1.0

PHP shadowsocks

  Sources   Download

MIT

The Requires

 

by Avatar ycgambo

socket