iaretedd/pixelizer
Composer 安装命令:
composer require iaretedd/pixelizer
包简介
Pixelizer is a PHP library that allows you to convert any data into a PNG picture and decode it back into the original data.
README 文档
README
Pixelizer is a PHP library that allows you to convert any data into a PNG picture and decode it back into the original data.
Installation
Use the package manager composer to install Pixelizer.
composer require iaretedd/pixelizer composer install
Getting Started
Encode a file into a picture
require 'vendor/autoload.php'; $pixelizer = new Pixelizer\Pixelizer(); $pixelizer->setData(file_get_contents('file_to_encode.exe')); $pixelizer->encode('encoded.png');
Decode a file from a picture
require 'vendor/autoload.php'; $pixelizer = new Pixelizer\Pixelizer(); $pixelizer->loadImage('encoded.png'); $pixelizer->decode('original_file.exe');
Tests
To run unit tests:
./vendor/bin/phpunit
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-09-17