Skip to content

Commit

Permalink
Readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseRafn committed Jan 15, 2017
1 parent e8fa38f commit 70c6e04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,17 @@ $image = $avatar->cache()->generate(); // 60 minutes
````
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.

### Length - default: 2
````php
$image = $avatar->name('John Doe Johnson')->length(3)->generate(); // 3 letters = JDJ
````

## Chaining it all together
We will not use the ->font() method in this example; as I like the regular one.

````php
return $avatar->name('Lasse Rafn')
->length(2)
->size(96) // 48 * 2
->background('#8BC34A')
->color('#fff')
Expand Down

0 comments on commit 70c6e04

Please sign in to comment.