Download the PHP package wardstone/client without Composer
On this page you can find all versions of the php package wardstone/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wardstone/client
More information about wardstone/client
Files in wardstone/client
Download wardstone/client
More information about wardstone/client
Files in wardstone/client
Vendor wardstone
Package client
Short Description PHP SDK for the Wardstone LLM security API. Detect prompt injection, content violations, data leakage, and unknown links.
License MIT
Homepage https://wardstone.ai
Package client
Short Description PHP SDK for the Wardstone LLM security API. Detect prompt injection, content violations, data leakage, and unknown links.
License MIT
Homepage https://wardstone.ai
Please rate this library. Is it a good library?
Informations about the package client
Wardstone PHP SDK
PHP SDK for the Wardstone LLM security API. Detect prompt injection, content violations, data leakage, and unknown links in LLM inputs and outputs.
Installation
Quick Start
Configuration
Environment Variable
The API key can be set via the WARDSTONE_API_KEY environment variable:
Usage
Basic Detection
Array Input
Scan Strategies
Raw Scores
Rate Limit Info
Error Handling
Safe Logging
When logging exceptions, use getSafeTrace() and getSafeTraceAsString() instead of PHP's built-in getTrace() / getTraceAsString(). The safe variants redact function arguments to prevent API keys from appearing in logs:
Risk Levels
Each category returns one of four risk levels:
"Low Risk"- No threat detected"Some Risk"- Minor concern"High Risk"- Significant threat"Severe Risk"- Critical threat, action recommended
Requirements
- PHP >= 8.1
- ext-curl
- ext-json
- Zero runtime dependencies
Links
- Documentation
- API Reference
- Support
All versions of client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package wardstone/client contains the following files
Loading the files please wait ...