wymarzonylogin/fingerprintah 问题修复 & 功能扩展

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

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

wymarzonylogin/fingerprintah

Composer 安装命令:

composer require wymarzonylogin/fingerprintah

包简介

Simple visualisation of fingerprint of input text with pseudorandom bicolor png image

README 文档

README

Simple visualization of fingerprint of input text with pseudorandom bicolor png image. Generates image build of 8x8 suqare blocks, where just one corner (4x4 blocks) i unique. Other parts are just mirrored to rather have a nice symmetric image more than qr-code like one. You can increase image size by defining block size in pixels.

Installing Fingerprintah

First, get Composer if you don't have it yet.

Next, install Fingerprintah with composer:

composer require wymarzonylogin/fingerprintah

Usage

Make sure that you require Composer's autoloader in your app:

require 'vendor/autoload.php';

Generating png base64 data for image source

<?php
require 'vendor/autoload.php';

$imageGenerator = new \WymarzonyLogin\Fingerprintah\ImageGenerator(8);
$imageData = $imageGenerator->getPngImageBase64Data('Your piece of text');

echo '<img src="'.$imageData.'" />';

//some more code below...

Returning png image

<?php
require 'vendor/autoload.php';

$imageGenerator = new \WymarzonyLogin\Fingerprintah\ImageGenerator(8);
$imageGenerator->getPngImage("Some other text");
//no more code, this controller returns image

Parameters

Constructor accepts integer parameter for image block size in pixels. In example above i used 8; This means, generated image will be 64 x 64 pixels;

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固