nikashitsa/png-coder 问题修复 & 功能扩展

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

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

nikashitsa/png-coder

Composer 安装命令:

composer require nikashitsa/png-coder

包简介

Encodes file to PNG image and decodes from it.

README 文档

README

Build Status

PngCoder is a single PHP class which can encode any file to PNG image and then decode it to original file.

$coder = new PngCoder();
// encode music file to image
$coder->encode('./data/music.mp3', './tmp/music.png');
// decode it
$coder->decode('./tmp/music.png', './tmp/music.mp3');

Sometimes encoded files looks mysterious, but in common case it's just a noise:

Noise Image

I don't know where this can be used 😟. Feel free to add your suggestions here 😉

Requirements

  • PHP 5.4 and later (supports PHP 7)
  • php-gd

Installing PngCoder

The recommended way to install PngCoder is through Composer.

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, run the Composer command to install the PngCoder:

composer.phar require nikashitsa/png-coder

After installing, you need to require Composer's autoloader:

require 'vendor/autoload.php';

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2015-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固