devn00b c2c6bf7610 Initial Upload of Bot | 1 år sedan | |
---|---|---|
.. | ||
lib | 1 år sedan | |
.gitignore | 1 år sedan | |
.travis.yml | 1 år sedan | |
LICENSE | 1 år sedan | |
README.md | 1 år sedan | |
bootstrap.php | 1 år sedan | |
composer.json | 1 år sedan |
A simple Polyfill for giving libsodium compatibility when having sodium installed.
The new sodium extension has been accepted and will be distributed with PHP >= 7.2.
This will have a few breaking changes:
\Sodium\
namespace. Everything must be in the global namespace.sodium
.\Sodium\randombytes_buf()
and \Sodium\randombytes_random16()
have been removed.So the current namespaced functions will not work anymore. So we created a polyfill for this.
Reference: https://github.com/jedisct1/libsodium-php
Using Composer:
The easiest way to install is to require the polyfill-libsodium library with Composer:
composer require mollie/polyfill-libsodium
After installation of the package the bootstrap.php file will be autoloaded.
Manual installation:
Checkout or download all the files and include them manually into your project.
Include the bootstrap file in your project:
require 'vendor/mollie/polyfill-libsodium/bootstrap.php';
This software is licensed under the MIT License
© 2017 Mollie