Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Php.require

Php.require($phpFile) -> null

Description

Call PHP's require_once function on a file path.

The file path is always relative to code/php.

For convenience, you can use forward slashes in place of backslashes for namespace separators.

// Requires 'code/php/vendorLibrary/SomeClass.php'
Php.require('vendorLibrary/SomeClass.php')

See Also