Download the PHP package gridprinciples/laravel-placeholder-avatars without Composer
On this page you can find all versions of the php package gridprinciples/laravel-placeholder-avatars. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gridprinciples/laravel-placeholder-avatars
More information about gridprinciples/laravel-placeholder-avatars
Files in gridprinciples/laravel-placeholder-avatars
Package laravel-placeholder-avatars
Short Description Serve SVG avatars from your Laravel application
License MIT
Homepage https://github.com/gridprinciples/laravel-placeholder-avatars
Informations about the package laravel-placeholder-avatars
Serve SVG avatars from your Laravel application
This package gets you several BoringAvatar designs rendered in your Laravel application as SVGs. They can be rendered via configurable URL or by direct usage of a Blade component.
Installation
You can install the package via composer:
Usage
Via URL
If you plan on rendering via URL, you must register it in your routes file:
By default, you can use query parameters to set the generation options. For example:
...would generate the same face every time ("JohnDoe" as the seed) in a square format.
If you want to dictate which options are used in generation, you can supply these options when adding the route:
Via component
You can also render the SVGs inline within any Blade component:
Avatars
The following types from BoringAvatars are currently supported:
beam
marble
pixel
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- BoringDesigners - for making some really good open-source avatars
- Spatie - for a great package skeleton
- Greg Brock
- All Contributors
License
The MIT License (MIT). Please see License File for more information.