Menu

## API Documentation

### Namespaces

Kotchasan
Psr

### Interfaces, Classes and Traits

Kotchasan
  The main class of the Kotchasan framework.
PHPMailer
  PHPMailer - PHP email creation and transport class.
phpmailerException
  PHPMailer exception handler.
SMTP
  PHPMailer RFC821 SMTP email transport class.

### Table of Contents

APP_PATH = trim($docRoot . $appPath, '/') . '/'
BASE_PATH = trim($basePath, '/') . '/'
DB_LOG = alse
DEBUG = 0
HOST = str_replace('www.', '', $host)
HTTPS = $scheme == 'https://'
ROOT_PATH = $docRoot . '/'
TOKEN_AGE = 3600
TOKEN_LIMIT = 10
VENDOR_DIR = $vendorDir
VERSION = '6.0.0'
WEB_URL = (HTTPS ? 'https://' : $scheme) . $host . $contextPrefix . str_replace($docRoot, '', ROOT_PATH)
createClass() : object|null
  Create a new instance of a class.
doShutdown() : mixed
  Shutdown function to output debug messages to the browser console.
debug() : mixed
  Output debug information to the browser console.
getClassPath() : string
  Get the file path of a class based on its name.

### Constants

#### APP_PATH

load.php : 112
`public mixed APP_PATH = trim($docRoot . $appPath, '/') . '/'`

#### BASE_PATH

load.php : 159
`public mixed BASE_PATH = trim($basePath, '/') . '/'`

#### DB_LOG

load.php : 51
`public mixed DB_LOG = alse`

#### DEBUG

load.php : 23
`public mixed DEBUG = 0`

#### HOST

load.php : 144
`public mixed HOST = str_replace('www.', '', $host)`

#### HTTPS

load.php : 128
`public mixed HTTPS = $scheme == 'https://'`

#### ROOT_PATH

load.php : 74
`public mixed ROOT_PATH = $docRoot . '/'`

#### TOKEN_AGE

load.php : 178
`public mixed TOKEN_AGE = 3600`

#### TOKEN_LIMIT

load.php : 175
`public mixed TOKEN_LIMIT = 10`

#### VENDOR_DIR

load.php : 61
`public mixed VENDOR_DIR = $vendorDir`

#### VERSION

load.php : 42
`public mixed VERSION = '6.0.0'`

#### WEB_URL

load.php : 167
`public mixed WEB_URL = (HTTPS ? 'https://' : $scheme) . $host . $contextPrefix . str_replace($docRoot, '', ROOT_PATH)`

### Functions

#### createClass()

load.php : 188

Create a new instance of a class.

`createClass(string $className[, mixed $param = null ]) : object|null`

##### Parameters

$className : string

  The class name

$param : mixed = null

##### Return values

object|null —

An instance of the class or null if the class doesn't exist

#### doShutdown()

load.php : 196

Shutdown function to output debug messages to the browser console.

`doShutdown() : mixed`

##### Return values

mixed —

#### debug()

load.php : 210

Output debug information to the browser console.

`debug(mixed $expression) : mixed`

##### Parameters

$expression : mixed

##### Return values

mixed —

#### getClassPath()

load.php : 289

Get the file path of a class based on its name.

`getClassPath(string $className) : string`

##### Parameters

$className : string

  The class name

##### Return values

string —

The file path of the class or an empty string if the class is not found

## Search results