Skip to content

Commit

Permalink
Docs updates & install version update & travis tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Halliday committed Apr 7, 2018
1 parent b4fb311 commit baea4af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ php:
- 5.5
- 5.6
- 7.0

matrix:
allow_failures:
- php: 7.0
- 7.1

before_script:
- travis_retry composer self-update
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ An extension for Twig that provides simple filters for Gravatar.
## Installation
Use `composer` to install this extension:
```Shell
composer require ry167/twig-gravatar 2.0.2
composer require ry167/twig-gravatar 3.0.0
```

## Usage
Expand All @@ -20,7 +20,7 @@ require("vendor/autoload.php");
//Define your Twig Environment and Twig Loader
$twig->addExtension(new \TwigGravatar());

//create customized Twig Gravatar
//or create a customized Twig Gravatar instance
new \TwigGravatar($default = null, $size = null, $filterPrefix = 'gr', $rating = null, $useHttps = true);
```

Expand All @@ -37,10 +37,10 @@ new \TwigGravatar($default = null, $size = null, $filterPrefix = 'gr', $rating =
tags:
- { name: twig.extension }
```
You can also remove arguments section and the default values shown will be used.
You can also remove the arguments section and the default values will be used.
## Filters
This is Extension is designed so that you chain together the filters that you need on top of each other. You must however always start with the grAvatar filter.
This Extension is designed so that you chain together the filters that you need on top of each other. You must however always start with the grAvatar filter.
### grAvatar
Create a Gravatar URL, This returns just the URL for the persons avatar image without the `<img>` tag
Expand Down

0 comments on commit baea4af

Please sign in to comment.