PHP code example of marks12 / socketserverbundle
1. Go to this page and download the library: Download marks12/socketserverbundle 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/ */
marks12 / socketserverbundle example snippets
namespace AppBundle\Socket;
class ResponseFactoryExample {
function run ($data, $em, $answer_object) {
$msg = 'Hello, this is class run in ServerProduct. Data: ' .
$data .
PHP_EOL;
$answer_object->answer($msg);
}
}