Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/et-nik/flysystem-gameap

Flysystem Adapter for GameAP Daemon File Server
https://github.com/et-nik/flysystem-gameap

flysystem-adapter gameap php

Last synced: 9 days ago
JSON representation

Flysystem Adapter for GameAP Daemon File Server

Awesome Lists containing this project

README

        

# GameAP Daemon Flysystem

[![Build Status](https://travis-ci.com/et-nik/flysystem-gameap.svg?branch=master)](https://travis-ci.com/et-nik/flysystem-gameap)
[![Quality Score](https://img.shields.io/scrutinizer/g/et-nik/flysystem-gameap.svg?style=flat-square)](https://scrutinizer-ci.com/g/et-nik/flysystem-gameap)
[![Coverage Status](https://scrutinizer-ci.com/g/et-nik/flysystem-gameap/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/et-nik/flysystem-gameap/code-structure)

GameAP Daemon Files Adapter.
This adapter uses [gameap-daemon-client](https://github.com/et-nik/gameap-daemon-client) library.

## Installation

```bash
composer require knik/flysystem-gameap
```

## Usage

```php
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);
```