Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sodium Compat Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package is designed as a drop-in polyfill for ext/sodium, making it highly compatible with Laravel's architecture. It requires no structural changes to existing codebases and seamlessly integrates with Laravel's encryption services (e.g., Illuminate\Encryption\Encrypter), allowing consistent cryptographic operations across environments regardless of native extension availability.

Integration feasibility: High feasibility due to Composer-based installation and strict API parity with ext/sodium. Applications using sodium_* functions can adopt it with zero code modifications. The package automatically delegates to the native extension when present, ensuring smooth transitions between development, staging, and production environments.

Technical risk: Performance overhead in pure-PHP mode may impact CPU

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata