waaseyaa / state
Key-value state storage for Waaseyaa
v0.1.0-alpha.279
2026-07-30 04:47 UTC
Requires
- php: >=8.5
- waaseyaa/database-legacy: ^0.1.0-alpha.279
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2026-07-30 04:59:39 UTC
README
SQL-backed and in-memory application state.
SqlState requires the 32-byte key derived with
waaseyaa.state.payload-hmac.v1. It stores serialized values only inside a
strict versioned HMAC-SHA-256 envelope and verifies that envelope before every
deserialization. MemoryState is unchanged.
Existing SQL state values are invalidated at cutover: stop application workers,
clear the state table, deploy the keyed reader/writer, and allow application
state to rebuild. SqlState does not accept unsigned rows.
Changing WAASEYAA_APP_SECRET invalidates all persisted SQL state values.