Releases: sowrensen/svg-avatar-generator
Releases · sowrensen/svg-avatar-generator
v2.0.0
- Supports Laravel 11 and onwards only.
- New validator for
foreground
andgradient_colors
config. - Dropped support for named colors, e.g. red, green in
foreground
andgradient_colors
. - Use
rules()
static method instead of$rules
property to define validation rules. - New
GradientColorSet
rule class to validate gradient colors structure.
v1.4.3
v1.4.2
- 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.
v1.4.1
v1.4.0
v1.3.1
v1.3.0
v1.2.0
v1.1.0
- 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.