Download the PHP package ranvis/identicon without Composer
On this page you can find all versions of the php package ranvis/identicon. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ranvis/identicon
More information about ranvis/identicon
Files in ranvis/identicon
Package identicon
Short Description Identicon with variable complexity.
License BSD-2-Clause
Homepage https://github.com/ranvis/identicon/blob/master/README.md
Informations about the package identicon
Identicon
Identicon with variable complexity.
Samples
https://github.com/ranvis/identicon/wiki/Samples
License
BSD 2-Clause License
Installation
composer require ranvis/identicon:1.0.*
1.1 or later may have visual incompatibility with 1.0.
Upgrading
1.0.x is fully compatible with 1.0.0.
See CHANGES.md for the details.
Example Usage
Quick Reference
Identicon::__construct()
__construct($maxSize, TileInterface $tile, $tiles = 6, $colors = 2, $highQuality = true)
- int $maxSize maximum size of the icon to draw
- TileInterface $tile tile to use
- int $tiles complexity of the icon
- int $colors maximum usable colors
- bool $highQuality prefer quality over memory and speed
Identicon->getMinimumHashLength()
getMinimumHashLength(): int
get number of hex characters required to draw icon.
Identicon->draw()
draw($hash): $this
draw icon to internal buffer.
- string $hash arbitrary hex string
returns $this.
Identicon->output()
output($size = null, $compression = -1, $filters = -1): bool
print PNG image to stdout with Content-Type header.
- int $size image size
- int $compression PNG compression level
- int $filters PNG filter flags to use
returns true on success.
Identicon->save()
save($filePath, $size = null, $compression = -1, $filters = -1): bool
save PNG image to file.
- string $filePath file path to save
- int $size image size
- int $compression PNG compression level
- int $filters PNG filter flags to use
returns true on success.
Identicon->getImage()
getImage($size = null): resource
get icon image.
- int $size image size
returns GD image.
All versions of identicon with dependencies
ext-gd Version *