beorn/base64url-tools
Composer 安装命令:
composer require beorn/base64url-tools
包简介
Base64 URL-safe encoder/decoder. Also generates random tokens.
关键字:
README 文档
README
This library provides a simple URL-safe Base64 encoder/decoder. Nothing fancy, just PHP's standard base64_encode() and base64_decode() functions converted to a URL- and filename-safe alphabet as defined in RFC 4648. None of this is new, I just wanted to have a convenient place to bundle these tools into my projects.
Encoding/Decoding Data
Simply pass your raw or encoded data into the appropriate function:
Base64Url::encode("Hello, world!") => "SGVsbG8sIHdvcmxkIQ" // *see note
Base64Url::decode("SGVsbG8sIHdvcmxkIQ") => "Hello, world!"
*Note: The Base64 padding characters (=) are removed from the encoded string, but are reconstituted on decode if needed.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-29