├── .github ├── CODEOWNERS ├── actions │ └── libextism │ │ └── action.yaml └── workflows │ └── ci.yaml ├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── composer.json ├── example ├── composer.json ├── composer.lock ├── index.php └── memory_test.php ├── phpcs.xml.dist ├── phpunit.xml.dist ├── src ├── CompiledPlugin.php ├── CurrentPlugin.php ├── ExtismValType.php ├── FunctionCallException.php ├── HostFunction.php ├── Internal │ ├── LibExtism.php │ ├── PluginHandle.php │ └── extism.h ├── Manifest.php ├── Manifest │ ├── ByteArrayWasmSource.php │ ├── HttpMethod.php │ ├── MemoryOptions.php │ ├── PathWasmSource.php │ ├── UrlWasmSource.php │ └── WasmSource.php ├── Plugin.php ├── PluginLoadException.php └── PluginOptions.php ├── tests ├── CompiledPluginTest.php ├── Helpers.php ├── ManifestTest.php ├── PluginTest.php └── data │ └── test.txt └── wasm ├── alloc.wasm ├── config.wasm ├── count_vowels.wasm ├── count_vowels_kvstore.wasm ├── exit.wasm ├── fail.wasm ├── fs.wasm ├── hello.wasm ├── http.wasm └── sleep.wasm /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @mhmd-azeez @nilslice 2 | -------------------------------------------------------------------------------- /.github/actions/libextism/action.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/.github/actions/libextism/action.yaml -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/composer.json -------------------------------------------------------------------------------- /example/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/example/composer.json -------------------------------------------------------------------------------- /example/composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/example/composer.lock -------------------------------------------------------------------------------- /example/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/example/index.php -------------------------------------------------------------------------------- /example/memory_test.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/example/memory_test.php -------------------------------------------------------------------------------- /phpcs.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/phpcs.xml.dist -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/CompiledPlugin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/CompiledPlugin.php -------------------------------------------------------------------------------- /src/CurrentPlugin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/CurrentPlugin.php -------------------------------------------------------------------------------- /src/ExtismValType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/ExtismValType.php -------------------------------------------------------------------------------- /src/FunctionCallException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/FunctionCallException.php -------------------------------------------------------------------------------- /src/HostFunction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/HostFunction.php -------------------------------------------------------------------------------- /src/Internal/LibExtism.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Internal/LibExtism.php -------------------------------------------------------------------------------- /src/Internal/PluginHandle.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Internal/PluginHandle.php -------------------------------------------------------------------------------- /src/Internal/extism.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Internal/extism.h -------------------------------------------------------------------------------- /src/Manifest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Manifest.php -------------------------------------------------------------------------------- /src/Manifest/ByteArrayWasmSource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Manifest/ByteArrayWasmSource.php -------------------------------------------------------------------------------- /src/Manifest/HttpMethod.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Manifest/HttpMethod.php -------------------------------------------------------------------------------- /src/Manifest/MemoryOptions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Manifest/MemoryOptions.php -------------------------------------------------------------------------------- /src/Manifest/PathWasmSource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Manifest/PathWasmSource.php -------------------------------------------------------------------------------- /src/Manifest/UrlWasmSource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Manifest/UrlWasmSource.php -------------------------------------------------------------------------------- /src/Manifest/WasmSource.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Manifest/WasmSource.php -------------------------------------------------------------------------------- /src/Plugin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/Plugin.php -------------------------------------------------------------------------------- /src/PluginLoadException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/PluginLoadException.php -------------------------------------------------------------------------------- /src/PluginOptions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/src/PluginOptions.php -------------------------------------------------------------------------------- /tests/CompiledPluginTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/tests/CompiledPluginTest.php -------------------------------------------------------------------------------- /tests/Helpers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/tests/Helpers.php -------------------------------------------------------------------------------- /tests/ManifestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/tests/ManifestTest.php -------------------------------------------------------------------------------- /tests/PluginTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/tests/PluginTest.php -------------------------------------------------------------------------------- /tests/data/test.txt: -------------------------------------------------------------------------------- 1 | hello world! -------------------------------------------------------------------------------- /wasm/alloc.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/alloc.wasm -------------------------------------------------------------------------------- /wasm/config.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/config.wasm -------------------------------------------------------------------------------- /wasm/count_vowels.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/count_vowels.wasm -------------------------------------------------------------------------------- /wasm/count_vowels_kvstore.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/count_vowels_kvstore.wasm -------------------------------------------------------------------------------- /wasm/exit.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/exit.wasm -------------------------------------------------------------------------------- /wasm/fail.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/fail.wasm -------------------------------------------------------------------------------- /wasm/fs.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/fs.wasm -------------------------------------------------------------------------------- /wasm/hello.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/hello.wasm -------------------------------------------------------------------------------- /wasm/http.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/http.wasm -------------------------------------------------------------------------------- /wasm/sleep.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/extism/php-sdk/HEAD/wasm/sleep.wasm --------------------------------------------------------------------------------