6 * In the unlikely event that you are not using Composer to manage class autoloading, here's an autoloader for this lib.
7 * For usage, see any file in the demo/client directory
12 * Registers PhpXmlRpc\Autoloader as an SPL autoloader.
14 * @param bool $prepend Whether to prepend the autoloader or not.
16 public static function register($prepend = false)
18 spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend);
22 * Handles autoloading of classes.
24 * @param string $class A class name.
26 public static function autoload($class)
28 if (0 !== strpos($class, 'PhpXmlRpc\\')) {
32 if (is_file($file = __DIR__ . str_replace(array('PhpXmlRpc\\', '\\'), '/', $class).'.php')) {