PHP FTP server based on workerman
server.ini
[server]
;ip address
ip=0.0.0.0
;port
port=2323
;root path
root_path=data
;max users
max_users=1
;allow anonymous
allow_anonymous=1
;ftp pasv mode port range
pasv_port_range=50000-60000
user.json
{
"test": {
"username": "test",
"password": "123",
"path": "/",
"status": true
}
}
composer require zhusaidong/ftp-server:dev-master
//ftp.php
require_once('./vendor/autoload.php');
use FTPServer\FTPServer;
$fs = new FTPServer();
$fs->run();
php ftp.php
- support sftp