minms / crc16
There is no license information available for the latest version (v1.0) of this package.
the crc verify library
v1.0
2020-02-17 06:52 UTC
Requires
- php: >7.0
This package is auto-updated.
Last update: 2025-04-17 18:39:50 UTC
README
来源: https://blog.csdn.net/zhang197093/article/details/89061957
使用方法
第一步
composer require minms/crc16
第二步
use function Minms\Crc16\crc16;
# or
use Minms\Crc16\Crc16;
# usage
$result = crc16('1234567890', 0x8005, 0, 0, true, true);
# or
$result = new Crc16($str, $polynomial, $initValue, $xOrValue, $inputReverse = false, $outputReverse = false);
echo $result->toInt();
echo $result->toString();