We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8fa38f commit 70c6e04Copy full SHA for 70c6e04
README.md
@@ -82,11 +82,17 @@ $image = $avatar->cache()->generate(); // 60 minutes
82
````
83
You can simply use ->cache() and it will set cache to 60 minutes, but you can also say ->cache(180) to cache for 180 minutes.
84
85
+### Length - default: 2
86
+````php
87
+$image = $avatar->name('John Doe Johnson')->length(3)->generate(); // 3 letters = JDJ
88
+````
89
+
90
## Chaining it all together
91
We will not use the ->font() method in this example; as I like the regular one.
92
93
````php
94
return $avatar->name('Lasse Rafn')
95
+ ->length(2)
96
->size(96) // 48 * 2
97
->background('#8BC34A')
98
->color('#fff')
0 commit comments