wordpress-playground-handler
Version:
A Node.js library for creating and managing WordPress Playground instances with PHP request handling capabilities. Optimized for Node.js runtime environments.
15 lines (14 loc) • 562 B
TypeScript
import { PHPRequestHandler } from "@php-wasm/universal";
import { Blueprint } from "@wp-playground/blueprints";
export interface MountPaths {
databasePath?: string;
muPluginsPath?: string;
}
export interface PlaygroundOptions {
blueprintPath?: string;
blueprint?: Blueprint;
mountPaths?: MountPaths;
}
export declare function getPlaygroundHandler(options?: PlaygroundOptions): Promise<PHPRequestHandler>;
export { PHPRequestHandler, PHPRequest, PHPResponse } from "@php-wasm/universal";
export { Blueprint } from "@wp-playground/blueprints";