承接 mindplay/nbase 相关项目开发

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

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

mindplay/nbase

Composer 安装命令:

composer require mindplay/nbase

包简介

Convert numbers between arbitrary notations

README 文档

README

This script provides a converter between numbers encoded with n-base notation.

PHP Version Build Status

Usage

Any notation (using ASCII characters) can be used.

For example, to convert from decimal to hexadecimal notation:

$converter = new NBaseConverter();

echo $converter->convert('12345', 'dec', 'hex'); // => '3039'

You can define your custom notations via the public $notations property - the notation names supplied to the convert method must be defined in $notation.

Common notations such as bin, hex, dec and oct are pre-defined, as well as base62 and base64, plus a URL-safe variation of base64 called url64 which uses - and _ instead of the standard + and / used by base64.

Also, a useful notation legible is available, which excludes visually ambiguous characters such as 1 and l, 0 and O, which can be used to shorten numeric IDs, e.g. for use in URLs.

Refer to the source code for a list of pre-defined notations.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固