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

https://github.com/kisphp/php-sftp-client


https://github.com/kisphp/php-sftp-client

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# Simple PHP SFTP Client

![example workflow](https://github.com/kisphp/php-sftp-client/actions/workflows/phpunit-run.yml/badge.svg)

## Installation

Add in composer:

```json
{
"require": {
"kisphp/php-sftp-client": "~0.1"
}
}
```

## Usage

Create a config class that implements `ConfigInterface`

```php
sendFile(__DIR__ . '/source.php', 'b.php'); // will return true for success and false for failure
```

## Download a file

```php
$s->receiveFile('a.php', 'c.php'); // will return true for success and false for failure
```