PHP Classes

File: src/autoloader.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   PHP EU VAT Validation   src/autoloader.php   Download  
File: src/autoloader.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP EU VAT Validation
Validate VAT number using VIES API
Author: By
Last change: Bump Year (copyright header)
Date: 5 years ago
Size: 668 bytes


Class file image Download
 * Manual Autoloader File (if composer isn't installed)
 * @author Pierre-Henry Soria <>
 * @copyright (c) 2017-2019, Pierre-Henry Soria. All Rights Reserved.
 * @license GNU General Public License; <>

namespace PH7\Eu;

// Autoloading Classes Files
spl_autoload_register(function ($sClass) {
// Hack to remove namespace and backslash
$sClass = str_replace([__NAMESPACE__ . '\\', '\\'], DIRECTORY_SEPARATOR, $sClass);

// Get library classes
if (is_file(__DIR__ . $sClass . '.php')) {
__DIR__ . $sClass . '.php';