Releases for sf 1.1
| Version |
License |
API |
Released |
|
0.8.0stable
|
MIT license |
0.8.0stable
|
10/08/2008 |
Releases for sf 1.0
| Version |
License |
API |
Released |
|
0.8.0stable
|
MIT license |
0.8.0stable
|
10/08/2008 |
|
0.0.1beta
|
MIT license |
1.0.0stable
|
22/09/2007 |
Copyright (c) 2006-2008 Mickael Kurmann
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Changelog for release 0.8.0 - 10/08/2008
Not available
Other releases
Release 0.8.0 - 10/08/2008
Not available
Release 0.0.1 - 22/09/2007
Not available
Installation for sf 1.1
php symfony plugin:install sfGravatarPlugin --release=0.8.0
Installation for sf 1.0
php symfony plugin-install http://plugins.symfony-project.org/sfGravatarPlugin
PEAR
Download the PEAR package
sfGravatarPlugin symfony plugin
Overview
Lets you easily use Gravatar from http://site.gravatar.com. Currently supports:
- caching of the gravatars, with a configurable expiration delay
- all gravatar options (rating, resizing, etc.)
Installation
Step 1
symfony plugin-install http://plugins.symfony-project.com/sfGravatarPlugin
symfony cc
Step 2
Create a directory named g_cache in web/uploads and add full rights to it (note : you can change the directory's name but don't forget to change it in config file).
Step 3 (optional)
- You can configure you gravatar plugin to your needs by adding the config above in your
app.yml
- You can copy the
gravatar_default.png in your cache directory or create yours
Usage
<?php use_helper('Gravatar') ?>
<?php echo gravatar_image_tag($email, $gravatar_rating = null, $gravatar_size = null) ?>
More information about rating and size on the gravatar website.
You can set some default option that are common for all of your gravatar in your app.yml:
all:
gravatar:
default_size: 80
default_rating: G
default_image: gravatar_default.png
cache_dir_name: g_cache
cache_expiration: 3 days # refer to strtotime() php function for more infos, but you can write 1 week, 1 year, whatever you want
License
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
The plugin is being developed by Mickael Kurmann (mickael.kurmann <> gmail.com) and Xavier Lacot (xavier@lacot.org)
Todo
- automatically remove cached gravatar through a cron
- add unit tests
Changelog
version 0.8 - 2008-08-10:
- stable release
- changed documentation to Markdown format (Xavier)
- added cache for non-existing gravatar emails (Xavier)
version 0.0.1 - 2007-09-22:
- initial release (Mickael)