PHP Classes

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

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Simple PHP Chat with Websocket   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: Simple PHP Chat with Websocket
Implements a chat system using Websockets
Author: By
Last change:
Date: Yesterday
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;
    }
}