Download the PHP package black-sheep-tech/laravel-dice-bear without Composer
On this page you can find all versions of the php package black-sheep-tech/laravel-dice-bear. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download black-sheep-tech/laravel-dice-bear
More information about black-sheep-tech/laravel-dice-bear
Files in black-sheep-tech/laravel-dice-bear
Package laravel-dice-bear
Short Description A simple service provider/wrapper for the DiceBear Avatars API (https://dicebear.com/).
License MIT
Informations about the package laravel-dice-bear
Laravel DiceBear is a PHP library for Laravel used to generate avatar using the DiceBear API (https://dicebear.com/). This package provides a simple, fluent interface for customizing avatar parameters and generating the corresponding URL. It also allows downloading and saving the avatars locally. Support for self-hosted DiceBear API is also available.
Installation
You can install the package via Composer:
Usage
Basic Usage (All Styles)
Download Avatar
To download the avatar directly:
Save Avatar Directly to Disk
To save the avatar to a specific location:
Supported Styles
Currently, the following DiceBear styles are supported:
Style Specific Options
Most styles have options specific to them.
- BotttsNeutral - Detailed Options
- Eyes
- Mouth
- AdventurerNeutral - Detailed Options
- Eyebrows
- Eyes;
- Mouth
- Glasses
- Glasses Probability
- Initials - Does not support any additional options
Requirements
- PHP 8.0 or higher
- Laravel framework version 9.0 or higher
License
This package is open-sourced software licensed under the MIT license.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request on GitHub.