mollie/polyfill-libsodium 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mollie/polyfill-libsodium

最新稳定版本:v1.1.1

Composer 安装命令:

composer require mollie/polyfill-libsodium

包简介

A polyfill package to transition from the libsodium php extension to the sodium extension. Which is included in PHP 7.2

README 文档

README

Polyfill Libsodium

A simple Polyfill for giving libsodium compatibility when having sodium installed.

Build Status

The new sodium extension has been accepted and will be distributed with PHP >= 7.2.
This will have a few breaking changes:

  • No more \Sodium\ namespace. Everything must be in the global namespace.
  • The extension will be renamed to 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

Installation

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';

License

This software is licensed under the MIT License

Copyright (c) 2017-2018, Mollie B.V.

统计信息

  • 总下载量: 688.21k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 14
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 12
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-09-12