定制 normeno/base64-handler 二次开发

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

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

normeno/base64-handler

Composer 安装命令:

composer require normeno/base64-handler

包简介

Base64 Handler

README 文档

README

Latest Stable Version Latest Unstable Version Build Status Quality Score Total Downloads License

A simple and powerful package to handle base64.

Currently only tested with images (png, jpg, svg, doc, docx, pdf)

Requirements

  • PHP >= 7.1

Usage

Init library

$base64Handler = new Base64Handler();

File to Base64

Path

$file = 'path/to/file.png';
$convert = $base64Handler->toBase64($file);

URL

$file = 'http://icons.iconarchive.com/icons/graphicloads/100-flat/256/home-icon.png';
$convert = $base64Handler->toBase64($file);

Base64 to File

$base64 = 'xyz';
$convert = $base64Handler->toFile($base64);

Check base64 type

$base64 = 'xyz';
$getFile = $base64Handler->getBase64Type($base64);

TO-DO

  • Check if base64 is a PDF

License

The Base64 Handler is open-sourced software licensed under the MIT license.

Donate

If you find this project useful, you can buy author a glass of juice

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-07-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固