PHP Classes

File: src/Autoload.php

Recommend this page to a friend!
  Classes of Sergii Pryz   PHP Price Calculator   src/Autoload.php   Download  
File: src/Autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Class source
Class: PHP Price Calculator
Calculate prices using arbitrary precision math
Author: By
Last change:
Date: 9 years ago
Size: 369 bytes
 

Contents

Class file image Download
<?php
/**
 * PriceCalulator Autoload
 *
 * @link https://github.com/picamator/PriceCalculator
 * @license http://opensource.org/licenses/BSD-3-Clause New BSD License
 */

namespace PriceCalculator;

function
Autoload($class)
{
    include_once (
str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php');
}

spl_autoload_register(__NAMESPACE__.'\Autoload');