src/NGB/NGB.php
public function autoload( $className ) {
        //echo $className.' -- ';
        $className = str_replace('\\', DIRECTORY_SEPARATOR, $className);

        if ( strpos( $_SERVER['SERVER_SOFTWARE'], 'Win') !== false ) {
            spl_autoload_extensions('.php');
            spl_autoload( strtolower($className) );

        }else {
            $className = $className.'.php';

            if ( stream_resolve_include_path($className) !== false ) {
                require_once $className;
            }

        }
    }
public function autoload( $className ) {
        //echo $className.' -- ';
        $className = str_replace('\\', DIRECTORY_SEPARATOR, $className);

        if ( strpos( $_SERVER['SERVER_SOFTWARE'], 'Win') !== false ) {
            spl_autoload_extensions('.php');
            spl_autoload( strtolower($className) );

        }else {
            $className = $className.'.php';

            if ( stream_resolve_include_path($className) !== false ) {
                require_once $className;
            }

        }
    }
******************************************************************************
Autoloader

If you are using Composer ->  new \NGB\NGB(['composer' => true])
*****************************************************************************