Aller au contenu principal

loadNodeRuntime

Callable

  • loadNodeRuntime(phpVersion: 8.3 | 8.2 | 8.1 | 8.0 | 7.4 | 7.3 | 7.2 | 7.1 | 7.0, options?: PHPLoaderOptions): Promise<number>

  • Does what load() does, but synchronously returns an object with the PHP instance and a promise that resolves when the PHP instance is ready.

    @see

    load


    Parameters

    • phpVersion: 8.3 | 8.2 | 8.1 | 8.0 | 7.4 | 7.3 | 7.2 | 7.1 | 7.0
    • options: PHPLoaderOptions = {}

    Returns Promise<number>