abublihi/guid-to-base64 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

abublihi/guid-to-base64

最新稳定版本:v2.0

Composer 安装命令:

composer create-project abublihi/guid-to-base64

包简介

Convert microsoft ldap objectGuid to Base64.

README 文档

README

NOTE: For php <=7.1 see v1.0

ObjectGuid to base64 encode

This package only provides a function to encode an Object Guid to base64.

Problem

Microsoft azure immutable id is an encoding of the Object Guid to base64. but if you tray to encode the object guid directly it will preduse a not acceptable value or incorrect to the immutable id in microsoft azure. see example below

echo base64_encode("7ea2e22f-31cb-4c97-89eb-1b4501aafe40"); 
// output is "N2VhMmUyMmYtMzFjYi00Yzk3LTg5ZWItMWI0NTAxYWFmZTQw"

So this packge solves the problem.

Installation

composer require abublihi/guid-to-base64

Usage

use Abublihi\Guid\ToBase64;

$toBase64 = new ToBase64("7ea2e22f-31cb-4c97-89eb-1b4501aafe40");
echo $toBase64->getBase64(); // output "L+Kifssxl0yJ6xtFAar+QA=="
use Abublihi\Guid\ToBase64;

echo ToBase64::encode("748b2d72-706b-42f8-8b25-82fd8733860f"); // output "ci2LdGtw+EKLJYL9hzOGDw=="

Requirements

This package deeply depends on ramsey/uuid package.

References

Azure AD Connect: Design concepts

Credits

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固