@@ -59,64 +59,51 @@ else {
5959And last but not least, if you want to echo out the image:
6060
6161``` php
62- echo gravatar() ->image('your@email.com')->toHtml();
63- echo gravatar() ->image('your@email.com', 'Username')->toHtml();
64- echo gravatar() ->image('your@email.com', 'Username', ['class' => 'img-responsive'])->toHtml();
65- echo gravatar() ->image('your@email.com', 'Username', ['class' => 'img-responsive'], 'pg')->toHtml();
62+ echo $ gravatar->image('your@email.com')->toHtml();
63+ echo $ gravatar->image('your@email.com', 'Username')->toHtml();
64+ echo $ gravatar->image('your@email.com', 'Username', ['class' => 'img-responsive'])->toHtml();
65+ echo $ gravatar->image('your@email.com', 'Username', ['class' => 'img-responsive'], 'pg')->toHtml();
6666```
6767
6868### Laravel
6969
70- #### Gravatar:: exists($email)
70+ #### gravatar()-> exists($email)
7171
7272Returns a boolean telling if has a gravatar of the given ` $email ` .
7373
74- #### Gravatar:: src($email, $size = null, $rating = null)
74+ #### gravatar()-> src($email, $size = null, $rating = null)
7575
7676Returns the https URL for the Gravatar of the specified email address.
7777
7878Can optionally pass in the size required as an integer (range between 1 - 512).
7979
8080``` html
8181<!-- Show image with default dimensions -->
82- <img src =" {{ Gravatar:: src('your@email.com') }}" >
82+ <img src =" {{ gravatar()-> src('your@email.com') }}" >
8383
8484<!-- Show image at 256px -->
85- <img src =" {{ Gravatar:: src('your@email.com', 256) }}" >
85+ <img src =" {{ gravatar()-> src('your@email.com', 256) }}" >
8686```
8787
88- #### Gravatar:: image($email, $alt = null, $attributes = [ ] , $rating = null)
88+ #### gravatar()-> image($email, $alt = null, $attributes = [ ] , $rating = null)
8989
9090Returns the HTML for an ` <img> ` tag
9191
9292``` php
9393<?php
9494
9595// Show image with default dimensions
96- echo Gravatar:: image('your@email.com');
96+ echo gravatar()-> image('your@email.com');
9797
9898// Adding attributes
99- echo Gravatar:: image('your@email.com', 'Your username', ['class' => 'img-responsive']);
99+ echo gravatar()-> image('your@email.com', 'Your username', ['class' => 'img-responsive']);
100100
101101// Or
102- echo Gravatar:: image('your@email.com', 'Your username', ['width' => 200, 'height' => 200]);
102+ echo gravatar()-> image('your@email.com', 'Your username', ['width' => 200, 'height' => 200]);
103103```
104104
105105 > For the blade engine use ` {!! ... !!} ` to echo out the images.
106106
107- #### gravatar() Helper
108-
109- You can use the Gravatar Helper ` gravatar() ` instead of Facade, like this:
110-
111- ``` php
112- <?php
113-
114- // Changing the default image and the size on the fly (You can do this also with the facade).
115- gravatar()->setDefaultImage('mm')->setSize(128);
116-
117- echo gravatar()->image('your@email.com', 'Username')->toHtml();
118- ```
119-
120107### API
121108
122109This is the list of all available gravatar methods:
0 commit comments