PHP Classes

File: autoload.php

Recommend this page to a friend!
  Classes of Ewerton Daniel   Standard Paypal PHP SDK   autoload.php   Download  
File: autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Standard Paypal PHP SDK
Compose orders and process payments using Paypal
Author: By
Last change:
Date: 1 year ago
Size: 274 bytes
 

Contents

Class file image Download
<?php

spl_autoload_register
(function ($class) {

    if (
substr(strtolower($class), 0, 6) !== 'paypal\\') {
        return;
    }
   
$path = __DIR__ . '/src/PayPal/' . str_replace('\\', '/', $class) . '.php';
    if (
file_exists($path)) {
        require(
$path);
    }
});