PHP Classes

File: vendor/nesbot/carbon/bin/carbon

Recommend this page to a friend!
  Classes of Hillary Kollan   Chatto PHP Websocket Chat System   vendor/nesbot/carbon/bin/carbon   Download  
File: vendor/nesbot/carbon/bin/carbon
Role: Example script
Content type: text/plain
Description: Example script
Class: Chatto PHP Websocket Chat System
Websocket based chat system using Ratchet library
Author: By
Last change:
Date: 3 years ago
Size: 378 bytes
 

Contents

Class file image Download
#!/usr/bin/env php
<?php

$dir
= __DIR__.'/..';

if (!
file_exists($dir.'/autoload.php')) {
   
$dir = __DIR__.'/../vendor';
}

if (!
file_exists($dir.'/autoload.php')) {
   
$dir = __DIR__.'/../../..';
}

if (!
file_exists($dir.'/autoload.php')) {
    echo
'Autoload not found.';
    exit(
1);
}

include
$dir.'/autoload.php';

exit((new \
Carbon\Cli\Invoker())(...$argv) ? 0 : 1);