定制 olegf13/base64url 二次开发

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

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

olegf13/base64url

Composer 安装命令:

composer require olegf13/base64url

包简介

Base64 encoder/decoder with URL safe alphabet (base64url).

关键字:

README 文档

README

Base64 encoder/decoder with URL safe alphabet (base64url).

Modified Base64 with URL (and filename) safe alphabet, where the '+' and '/' characters of standard Base64 are respectively replaced by '-' and '_', and the padding '=' signs are omitted.

See base64url reference in RFC 4648.

Given the example input ????SlashAndPlus>>>, standard base64 encoded result equals to Pz8/P1NsYXNoQW5kUGx1cz4+Pg==, where base64url version produces Pz8_P1NsYXNoQW5kUGx1cz4-Pg.

Requirements

The library requires PHP 5.6 or above for basic usage.

Installation

The preferred way to install this library is through Composer. To install the latest version, run:

composer require olegf13/base64url

Basic usage

<?php
use Olegf13\Base64URL;

$inputString = '????SlashAndPlus>>>';
$encodedString = Base64URL::encode($inputString);
echo $encodedString, \PHP_EOL; // "Pz8_P1NsYXNoQW5kUGx1cz4-Pg"
echo Base64URL::decode($encodedString), \PHP_EOL; // "????SlashAndPlus>>>" 

License

This library is licensed under the MIT License - see the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固