PHP-Deno

Extension
in package

Extension contains PHP functions (ops) and associated js files which are exposed to JavaScript via the JsRuntime. PHP functions can be called from JavaScript via `Deno.core.$name` where `$name` is the array key string from the `ops` property.

It's common to provide ops and also more user-friendly accessible functions for those ops via the js_files property.

Table of Contents

Properties

$js_files  : array<string|int, JsFile>
The JS files that should be loaded into the V8 Isolate.
$ops  : array<string, callable>
The ops for the extension (bridged to PHP functions)

Methods

__construct()  : mixed

Properties

$js_files

The JS files that should be loaded into the V8 Isolate.

public array<string|int, JsFile> $js_files

$ops

The ops for the extension (bridged to PHP functions)

public array<string, callable> $ops

Methods


        
On this page

Search results