PHP 7.4.33
Preview: Braintree.php Size: 723 B
/home/godevadmin/www/admin/braintree/final/braintree_php-master/lib/Braintree.php

<?php
/**
 * Braintree PHP Library
 * Creates class_aliases for old class names replaced by PSR-4 Namespaces
 *
 * @copyright  2015 Braintree, a division of PayPal, Inc.
 */

require_once(__DIR__ . DIRECTORY_SEPARATOR . 'autoload.php');

if (version_compare(PHP_VERSION, '5.4.0', '<')) {
    throw new Braintree_Exception('PHP version >= 5.4.0 required');
}


function requireDependencies() {
    $requiredExtensions = ['xmlwriter', 'openssl', 'dom', 'hash', 'curl'];
    foreach ($requiredExtensions AS $ext) {
        if (!extension_loaded($ext)) {
            throw new Braintree_Exception('The Braintree library requires the ' . $ext . ' extension.');
        }
    }
}

requireDependencies();

Directory Contents

Dirs: 2 × Files: 2

Name Size Perms Modified Actions
Braintree DIR
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
ssl DIR
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
608 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
723 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).