定制 arokettu/unsigned 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

arokettu/unsigned

最新稳定版本:1.3.7

Composer 安装命令:

composer require arokettu/unsigned

包简介

Fixed length unsigned arithmetic emulation

README 文档

README

Packagist PHP Packagist Gitlab pipeline status Codecov

Fixed length unsigned arithmetic emulation for PHP. The lib was created as a helper for the random-polyfill.

Installation

composer require 'arokettu/unsigned'

Example

<?php
use Arokettu\Unsigned as u;
$a = u\from_int(1234567890123456789, 24); // use 24-byte a.k.a. 192-bit arithmetic
$b = u\from_hex('123456789abcdef01234567890abcdef', 24); // numbers must have same bitness
// 1234567890123456789 * 0x123456789abcdef01234567890abcdef =
$c = u\mul($a, $b);
var_dump(u\to_dec($c)); // 29873897512945703720213152879288233401251320475301467035

Documentation

Read full documentation here: https://sandfox.dev/php/unsigned.html

Also on Read the Docs: https://php-unsigned.readthedocs.io/

Support

Please file issues on our main repo at GitLab: https://gitlab.com/sandfox/unsigned/-/issues

Feel free to ask any questions in our room on Gitter: https://gitter.im/arokettu/community

License

The library is available as open source under the terms of the 2-Clause BSD License.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2022-08-25