承接 jesobreira/base10 相关项目开发

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

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

jesobreira/base10

Composer 安装命令:

composer require jesobreira/base10

包简介

A base10 encoder as an alternative to base64.

README 文档

README

This algorithm works like Base64 but uses numbers only as the output encoded string.

Not sure why you would want it, tho.

Please note that due to the limited character set, the output strings are going too long.

Compatible Javascript/Node version here

Examples

<?php

include './src/Base10.php';

$original = 'Hello, world!';
echo "Original string: " . $original . PHP_EOL;

$encoded = jesobreira\Base10::encode($original);
echo "Encoded string: " . $encoded . PHP_EOL;

$decoded = jesobreira\Base10::decode($encoded);
echo "Decoded string " . $decoded . PHP_EOL;

Or with composer (composer require jesobreira/base10):

<?php

require __DIR__ . '/vendor/autoload.php';  // Require Composer's autoloader

use jesobreira\Base10;

$original = 'Hello, world!';
echo "Original string: " . $original . PHP_EOL;

$encoded = Base10::encode($original);
echo "Encoded string: " . $encoded . PHP_EOL;

$decoded = Base10::decode($encoded);
echo "Decoded string " . $decoded . PHP_EOL;

统计信息

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

GitHub 信息

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

其他信息

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