knik/flysystem-gameap

Flysystem Adapter for GameAP Daemon File Server

0.1.5 2020-12-19 21:01 UTC

This package is auto-updated.

Last update: 2024-10-20 05:31:10 UTC


README

Build Status Quality Score Coverage Status

GameAP Daemon Files Adapter. This adapter uses gameap-daemon-client library.

Installation

composer require knik/flysystem-gameap

Usage

use Knik\Flysystem\Gameap\GameapAdapter;
use League\Flysystem\Filesystem;

$adapter = new GameapAdapter([
    'host' => 'localhost',
    'port' => 31717,
    'username' => 'username',
    'password' => 'password',
    'serverCertificate' => '/path/to/server.crt',
    'localCertificate' => '/path/to/client.crt',
    'privateKey' => '/path/to/private.key',
    'privateKeyPass' => 'pr1vateKeyPa$$',
    'root' => '/home/gameap',
    'timeout' => 10,
]);

$filesystem = new Filesystem($adapter);