Browse Source

Update README.md

tags/1.2.1^2
FeelancerE 6 years ago
committed by GitHub
parent
commit
c71c0fe654
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      README.md

8
README.md

@ -23,7 +23,12 @@ RouterOS API client is optimized for usage as normal Laravel package, all functi
for access to client object you need instead: for access to client object you need instead:
```php ```php
$config = new \RouterOS\Config(['api_key' => getenv('API_KEY')]);
$config = new \RouterOS\Config([
'host' => '192.168.1.3',
'user' => 'admin',
'pass' => 'admin',
'port' => 8728,
]);
$client = new \RouterOS\Client($config); $client = new \RouterOS\Client($config);
``` ```
@ -31,6 +36,7 @@ Call facade and pass array of parameters to `getClient` method:
```php ```php
$client = \RouterOS::getClient([ $client = \RouterOS::getClient([
'host' => '192.168.1.3',
'user' => 'admin', 'user' => 'admin',
'pass' => 'admin', 'pass' => 'admin',
'port' => 8728, 'port' => 8728,

Loading…
Cancel
Save