PHP Classes

File: examples/autoload.php

Recommend this page to a friend!
  Classes of Johnny Mast   Redbox PHP CLI Arguments   examples/autoload.php   Download  
File: examples/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: NEW
Class: Redbox PHP CLI Arguments
Extract command line parameter values
Author: By
Last change: Made the tests compatible with phpcs.
Date: 2 years ago
Size: 527 bytes
 

Contents

Class file image Download
<?php
/**
 * Autoload.php
 *
 * We want to make sure we load the correct autoloader
 * where ever we are.
 *
 * PHP version 7.3 and up.
 *
 * @category Core
 * @package Redbox_Cli
 * @author Johnny Mast <mastjohnny@gmail.com>
 * @license https://opensource.org/licenses/MIT MIT
 * @link https://github.com/johnnymast/redbox-cli
 * @since 1.0
 */
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
    include_once
__DIR__ . '/../vendor/autoload.php';
} else {
    include_once
__DIR__ . '/../../../autoload.php';
}