PHP Classes

File: src/autoload.php

Recommend this page to a friend!
  Classes of Ewerton Daniel   API picpay PHP SDK for E-Commerce   src/autoload.php   Download  
File: src/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: API picpay PHP SDK for E-Commerce
Process e-commerce payments via PicPay API
Author: By
Last change:
Date: 1 year ago
Size: 267 bytes
 

Contents

Class file image Download
<?php

spl_autoload_register
(function ($class) {

    if (
substr(strtolower($class), 0, 6) !== 'picpay\\') {
        return;
    }

   
$path = __DIR__ . 'src/' . str_replace('\\', '/', $class) . '.php';
    if (
file_exists($path)) {
        require(
$path);
    }
});