paragonie/sodium_compat
Pure-PHP polyfill for PHP’s Sodium (libsodium) cryptography API. Transparently uses the native sodium extension when available; otherwise falls back to a compatible implementation. v1 supports PHP 5.2+ incl. 32-bit; v2 targets PHP 8.1+ only.
sodium_* API, so you can write crypto code once and run it everywhere. No environment-specific logic, no refactoring for production—same code works on shared hosting, cloud servers, or local dev. Switch to native ext/sodium later with zero code changes, backed by a 900+ star, security-reviewed library trusted by production systems."How can I help you explore Laravel packages today?