idsquare 是一个轻量级且易于使用的库,可以从简单的方块中创建美观的彩色标识图像(identicons)。

1.0.1 2015-08-11 21:15 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:34:40 UTC


README

idsquare 是一个轻量级且易于使用的库,可以从简单的方块中创建美观的彩色标识图像(identicons)。

Example 1 Example 2 Example 3 Example 4 Example 5

如何使用?

要使用 idsquare 生成您自己的标识图像,只需调用一个简单的函数即可

<?php

require('idsquare.php');

\Cerlestes\IdSquare\output( "my-email-address@tld.com" );

这是一个快捷函数,用于底层的 IdSquare 类

<?php

require('idsquare.php');

$idsquare = new \Cerlestes\IdSquare\IdSquare( "my-email-address@tld.com" );
$idsquare->generateAndOutput();

要求

idsquare 需要 PHP 5.x 或更高版本,并且已经安装了 GDLib。

许可协议

idsquare 在 MIT 许可协议 下发布。