All notable changes to svg-avatar-generator
v1.x will be documented in this file.
- Separate workflow and branch for Laravel 11.
- Fixed typo in files.
- Use laravel validation instead of manually checking configs.
- Added
ConfigValidator
class to define and perform validations. - Changed modifiers for
$config
and$extractor
inSvgAvatarGenerator
class. - Removed stale exception classes.
- Laravel 11 github workflows.
- Laravel 11 support.
- Support for custom fonts.
- New keys
custom_font_url
andfont_family
in config. - Moved font family config to
font-family.blade.php
file.
- Revert
Shape::CIRCLE
back as default shape which was changed toShape::RECTANGLE
by mistake.
- Support for rounded corners.
- Support for route middleware.
- New keys
corner_radius
andmiddleware
in config.
- Support for custom extractor.
- New key
extractor
in svg-avatar config.
- Support for setting multiple sets of gradient colors.
- Random gradient generation from defined presets in config.
setGradientColors()
method onSvgAvatarGenerator
class now accepts multiple integer/array arguments.- Option to set gradient stops via
setGradientStops()
method. - New
$gradientSet
attribute—with related getters and setters—which holds the randomly picked gradient set. - Use blade templates to create SVG instead of PHP heredoc.
- New
render()
method onShape
enum class. - Moved some helper methods to
Tool
trait.
- Initial release