Skip to content

Commit cb0aad2

Browse files
committed
Basic documentation
1 parent f7ddd93 commit cb0aad2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
11
# PHP SSH Connection
2+
3+
## Installation
4+
5+
```bash
6+
composer require divineomega/php-ssh-connection
7+
```
8+
9+
## Usage
10+
11+
````php
12+
$connection = (new SSHConnection())
13+
->to('test.rebex.net')
14+
->onPort(22)
15+
->as('demo')
16+
->withPassword('password')
17+
->connect();
18+
19+
$command = $connection->run('echo "Hello world!"');
20+
21+
$command->getOutput(); // 'Hello World'
22+
$command->getError(); // ''
23+
```

0 commit comments

Comments
 (0)