1. Go to this page and download the library: Download graze/telnet-client library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
graze / telnet-client example snippets
/**
* Whether an error prompt was encountered.
*
* @return bool
*/
public function isError();
/**
* Any response from the server up until a prompt is encountered.
*
* @return string
*/
public function getResponseText();
/**
* The portion of the server's response that caused execute() to return.
*
* @return array
*/
public function getPromptMatches();