Class FastTransformer

Removes comments and whitespace from a PHP script, by calling a Web service.

Implements

Constructors

Methods

Constructors

Methods

  • Closes this transformer and releases any resources associated with it.

    Returns Promise<void>

    Resolves when the transformer is finally disposed.

  • Starts the underlying PHP process and begins accepting connections.

    Returns Promise<number>

    The TCP port used by the PHP process.

  • Processes a PHP script.

    Parameters

    • file: string

      The path to the PHP script.

    Returns Promise<string>

    The transformed script.

    Error when an error occurred while processing the script.