Skip to content

Commit

Permalink
added usage example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Dec 9, 2013
1 parent dad903e commit 938358d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,16 @@ Get it via [composer](http://getcomposer.org/) by adding the package to your `co
```

You may also check the package information on [packagist](https://packagist.org/packages/cebe/yii2-gravatar).

Usage
-----

```php
<?php echo \cebe\widgets\Gravatar::widget([
'email' => 'mail@cebe.cc',
'options' => [
'alt' => 'Carsten Brandt'
],
'size' => 32
]); ?>
```

0 comments on commit 938358d

Please sign in to comment.