- Add theme support to ConfOptions
- Add createHasher method to SnippetClientFactory for secure code generation
- Add examples
- Minimum PHP version lowered from 8.4 to 8.2
⚠️ Pre-release – for testing only. The API may change without notice.
- JS snippet code generation for the STROMCOM chat widget (loader, user, thread, conf, home)
SnippetClientandSnippetClientFactoryfor easy initialization- Automatic HMAC hashing of user/thread codes (
HmacCodeHasher,Base62CodeHasher) - Configurable hash algorithm (SHA-256, SHA-1) and base-62 encoding
- Environment support: Production, Staging, Custom URL (
EnvironmentInterface) - Options classes:
UserOptions,ThreadOptions,ConfOptions,SnippetOptions AvatarStylehelper – Gravatar URL generation (Robohash, Identicon, Monsterid, Wavatar, Retro)- Docs mode – annotated code output with inline JSDoc comments
SnippetCodeobject withgetCode()andgetHTML()methods- Exception hierarchy (
SnippetExceptionand specific subclasses) - Requires PHP 8.4+, no runtime dependencies besides
tuupola/base62 - MIT license