承接 selective/base32 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

selective/base32

最新稳定版本:2.0.0

Composer 安装命令:

composer require selective/base32

包简介

Base32 based on RFC 4648

README 文档

README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Base32 string encoder based on RFC 4648.

Installation

Via Composer

$ composer require selective/base32

Requirements

  • PHP 8.1+

Usage

<?php

use Selective\Base32\Base32;

$str = 'abc 1234';

$base32 = new Base32();

// Encode
// MFRGGIBRGIZTI====
$encoded = $base32->encode($str);

// Decode
// abc 1234
echo $base32->decode($encoded); 

Without padding and only lowercase

<?php

$str = 'abc 1234';

// Encode
$encoded = $base32->encode($str, false);

// mfrggibrgizti
$encoded = strtolower($enc); 

// Decode
echo $base32->decode($encoded);

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Credits

  • Bryan Ruiz

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-22