license and installation/dependency information
[auerswald-callnotifier.git] / callnotifier.php
1 #!/usr/bin/env php
2 <?php
3 namespace callnotifier;
4
5 set_include_path(
6     __DIR__ . '/src/'
7     . PATH_SEPARATOR . get_include_path()
8 );
9 spl_autoload_register(
10     function ($class) {
11         $file = str_replace(array('\\', '_'), '/', $class) . '.php';
12         $hdl = @fopen($file, 'r', true);
13         if ($hdl !== false) {
14             fclose($hdl);
15             require $file;
16         }
17     }
18 );
19
20 $cli = new CLI();
21 $cli->run();
22
23 ?>