PackageTrack
Sign in Get early access

paragonie/sodium_compat

Pure PHP implementation of libsodium; uses the PHP extension if it exists

v2.5.2 152M downloads/mo #303 most downloaded on Packagist paragonie/sodium_compat

What this package is like to depend on

Last release 5 days ago

18 Aug 2026

Release timing varies

gaps range from 9 days to 13 months

Rarely documented

notes for 10 of 85 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

85 releases · first in 2017

13 releases in the last 12 months

see the full history below

Release timeline

85 releases · Jan 2017 to Aug 2026
2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 85
  1. v2.5.2 18 Aug 2026
    Release notes

    What's Changed

    Full Changelog: v2.5.1...v2.5.2

    Open source →
    Release notes

    Version 2.5.2 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. v2.5.1 18 Aug 2026
    Release notes

    What's Changed

    Full Changelog: v2.5.0...v2.5.1

    Open source →
    Release notes

    Version 2.5.1

    Compare

    Choose a tag to compare

    Open source →
  3. v2.5.0 30 Dec 2025
    Release notes

    Security Fix

    Read: A vulnerability in libsodium

    This fixes a congruent issue in the main branch of the PHP implementation.

    For older PHP versions, see v1.24.0 instead.

    Open source →
    Release notes

    Version 2.5.0

    Compare

    Choose a tag to compare

    Open source →
  4. v2.4.0 06 Oct 2025
    Release notes

    The biggest change (besides unit testing) in this release is the optimization of Curve25519 field arithmetic by using object properties instead of an internal array. This skips some internal overhead in PHP (i.e., hash tables and memory allocation) that we ultimately never needed.

    Beyond that, we mostly expanded our unit test coverage. We're running Infection to identify code that can be mutated without the test suite failing, and it's identified a lot of false positives but also some useful information. The end result? We've fixed a few bugs.

    What's Changed

    New Contributors

    Full Changelog: v2.3.1...v2.4.0

    Open source →
    Release notes

    Version 2.4.0

    Compare

    Choose a tag to compare

    Open source →
  5. v2.3.1 30 Sep 2025
    Release notes

    Deletes the erroneous PSR-0 autoloader declaration from composer.json, fixing #196

    Full Changelog: v2.3.0...v2.3.1

    Open source →
    Release notes

    Version 2.3.1

    Compare

    Choose a tag to compare

    Open source →
  6. v2.3.0 30 Sep 2025
    Release notes

    Important

    The previous version of sodium_compat was overly permissible with sodium_base642bin() when the *_NO_PADDING variants were specified, which was not compatible with ext-sodium. This has been fixed in v2.3.0.

    If you need the old behavior in the meantime, you can call ParagonIE_Core_Base64_Original::decode() or ParagonIE_Core_Base64_UrlSafe:decode() to get lax padding enabled.

    Aside from this fix, most of the changes were to the unit test suite in order to improve our mutation testing metrics.

    What's Changed

    New Contributors

    Full Changelog: v2.2.0...v2.3.0

    Open source →
    Release notes

    Version 2.3.0

    Compare

    Choose a tag to compare

    Open source →
  7. v2.2.0 21 Sep 2025

    Nothing published for this version

  8. v2.1.0 04 Sep 2024

    Nothing published for this version

  9. v2.0.1 24 Apr 2024

    Nothing published for this version

  10. v1.24.2 18 Aug 2026
    Release notes

    What's Changed

    Full Changelog: v1.24.1...v1.24.2

    Open source →
    Release notes

    Version 1.24.2

    Compare

    Choose a tag to compare

    Open source →
  11. v1.24.1 18 Aug 2026
    Release notes

    What's Changed

    Full Changelog: v1.24.0...v1.24.1

    Open source →
    Release notes

    Version 1.24.1

    Compare

    Choose a tag to compare

    Open source →
  12. v1.24.0 30 Dec 2025
    Release notes

    Security Fix

    Read: A vulnerability in libsodium

    This fixes a congruent issue in the v1.x branch of the PHP implementation.

    Open source →
    Release notes

    Version 1.24.0

    Compare

    Choose a tag to compare

    Open source →
  13. v1.23.0 06 Oct 2025
    Release notes

    We backported some optimizations from #198 by replacing the array in the Curve25519 field element with 10 integer object properties instead. The result is a 7% to 12% speedup for the overall PHPUnit suite.

    What's Changed

    Full Changelog: v1.22.0...v1.23.0

    Open source →
    Release notes

    Version 1.23.0

    Compare

    Choose a tag to compare

    Open source →
  14. v1.22.0 30 Sep 2025

    Nothing published for this version

  15. v1.21.2 19 Sep 2025

    Nothing published for this version

  16. v1.21.1 22 Apr 2024

    Nothing published for this version

  17. v1.21.0 19 Apr 2024

    Nothing published for this version

  18. v1.20.1 05 Apr 2024

    Nothing published for this version

  19. v1.20.0 30 Apr 2023

    Nothing published for this version

  20. v1.19.0 26 Sep 2022

    Nothing published for this version

  21. v1.18.1 23 Sep 2022

    Nothing published for this version

  22. v1.18.0 13 Sep 2022

    Nothing published for this version

  23. v1.17.1 23 Mar 2022

    Nothing published for this version

  24. v1.17.0 10 Aug 2021

    Nothing published for this version

  25. v1.16.1 25 May 2021

    Nothing published for this version

  26. v1.16.0 14 May 2021

    Nothing published for this version

  27. v1.15.4 17 Apr 2021

    Nothing published for this version

  28. v1.15.3 14 Apr 2021

    Nothing published for this version

  29. v1.15.2 14 Apr 2021

    Nothing published for this version

  30. v1.15.1 14 Apr 2021

    Nothing published for this version

  31. v1.15.0 14 Apr 2021

    Nothing published for this version

  32. v1.14.0 03 Dec 2020

    Nothing published for this version

  33. v1.13.0 20 Mar 2020

    Nothing published for this version

  34. v1.12.2 30 Dec 2019

    Nothing published for this version

  35. v1.12.1 07 Nov 2019

    Nothing published for this version

  36. v1.12.0 19 Oct 2019

    Nothing published for this version

  37. v1.11.4 18 Oct 2019

    Nothing published for this version

  38. v1.11.3 17 Oct 2019

    Nothing published for this version

  39. v1.11.2 17 Oct 2019

    Nothing published for this version

  40. v1.11.1 12 Sep 2019

    Nothing published for this version

  41. v1.11.0 11 Sep 2019

    Nothing published for this version

  42. v1.10.1 12 Jul 2019

    Nothing published for this version

  43. v1.10.0 13 May 2019

    Nothing published for this version

  44. v1.9.4 09 May 2019

    Nothing published for this version

  45. v1.9.3 09 May 2019

    Nothing published for this version

  46. v1.9.2 09 May 2019

    Nothing published for this version

  47. v1.9.1 20 Mar 2019

    Nothing published for this version

  48. v1.9.0 06 Mar 2019

    Nothing published for this version

  49. v1.8.1 03 Jan 2019

    Nothing published for this version

  50. v1.8.0 29 Nov 2018

    Nothing published for this version

  51. v1.7.0 22 Sep 2018

    Nothing published for this version

  52. v1.6.6 21 Sep 2018

    Nothing published for this version

  53. v1.6.5 14 Sep 2018

    Nothing published for this version

  54. v1.6.4 29 Aug 2018

    Nothing published for this version

  55. v1.6.3 06 Jun 2018

    Nothing published for this version

  56. v1.6.2 22 May 2018

    Nothing published for this version

  57. v1.6.1 21 Mar 2018

    Nothing published for this version

  58. v1.6.0 15 Feb 2018

    Nothing published for this version

  59. v1.5.6 30 Jan 2018

    Nothing published for this version

  60. v1.5.5 18 Jan 2018

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive