Skip to content

Commit

Permalink
Basic documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega committed Jul 31, 2019
1 parent f7ddd93 commit cb0aad2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
# PHP SSH Connection

## Installation

```bash
composer require divineomega/php-ssh-connection
```

## Usage

````php
$connection = (new SSHConnection())
->to('test.rebex.net')
->onPort(22)
->as('demo')
->withPassword('password')
->connect();

$command = $connection->run('echo "Hello world!"');

$command->getOutput(); // 'Hello World'
$command->getError(); // ''
```

0 comments on commit cb0aad2

Please sign in to comment.