PHP Classes

File: vendor/ratchet/rfc6455/tests/bootstrap.php

Recommend this page to a friend!
  Classes of butani kartik   PHP WebSockets Server Example   vendor/ratchet/rfc6455/tests/bootstrap.php   Download  
File: vendor/ratchet/rfc6455/tests/bootstrap.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP WebSockets Server Example
Example to interact with a server using WebSockets
Author: By
Last change:
Date: 2 years ago
Size: 418 bytes
 

Contents

Class file image Download
<?php

/**
 * Find the auto loader file
 */
$files = [
   
__DIR__ . '/../vendor/autoload.php',
   
__DIR__ . '/../../vendor/autoload.php',
   
__DIR__ . '/../../../vendor/autoload.php',
   
__DIR__ . '/../../../../vendor/autoload.php',
];

foreach (
$files as $file) {
    if (
file_exists($file)) {
       
$loader = require $file;
       
$loader->addPsr4('Ratchet\\RFC6455\\Test\\', __DIR__);
        break;
    }
}