# payplug/1.2.3/vendor/payplug/payplug-php/lib/init.php

PayPlug for WooCommerce (Official), version 1.2.3. 13 lines.

- Page: https://pluginprobe.com/plugins/payplug/1.2.3/code/vendor/payplug/payplug-php/lib/init.php
- Raw: https://pluginprobe.com/plugins/payplug/1.2.3/raw/vendor/payplug/payplug-php/lib/init.php
- Modified: 2021-01-12T16:32:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/payplug/1.2.3/code/vendor/payplug/payplug-php/lib/init.php#L10-L20`.

```php
<?php
spl_autoload_register(function ($class) {
    if (strpos($class, 'Payplug') !== 0) {
        return;
    }

    $file = __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $class) . '.php';

    if (file_exists($file)) {
        require($file);
    }
});

```
