2017 © Pedro PelĂĄez
 

library gravatar

Framework agnostic Gravatar library

image

sqin/gravatar

Framework agnostic Gravatar library

  • Friday, December 5, 2014
  • by freost
  • Repository
  • 1 Watchers
  • 2 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Gravatar

Build Status Latest Stable Version Latest Unstable Version, (*1)

Description

The Gravatar package allows you to easily implement Gravatars in your application., (*2)

Methods

__construct()

Creates a Gravatar instance., (*3)

$gravatar = new Gravatar();

factory()

Returns a Gravatar instance. Allows for method chaining right of the bat., (*4)

Gravatar::factory()->setSize(80)->getGravatar('user@example.org');

setSize(int $size)

Set the size of the Gravatar. Value must be between 1 and 512., (*5)

$gravatar->setSize(100);

getSize()

Returns the size of the Gravatar., (*6)

$gravatar->getSize();

setRating(string $rating)

Set the max rating of the Gravatar., (*7)

$gravatar->setRating('pg');

getRating()

Returns the rating of the Gravatar., (*8)

$gravatar->getRating();

setDefault(string $default)

Set the url to the default Gravatar., (*9)

$gravatar->setDefault('http://example.org/default_avatar.png');

getDefault()

Returns the urlencoded URL of the default Gravatar., (*10)

$gravatar->getDefault();

getUrl(string $email)

Returns the URL of the Gravatar., (*11)

$gravatar->getUrl('user@example.org');

getGravatar(string $email [, array $attributes = array()])

Returns Gravatar image tag., (*12)

$gravatar->getGravatar('user@example.org');

The Versions

05/12 2014

dev-master

9999999-dev http://squareinsider.com

Framework agnostic Gravatar library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Frederic G. Østby

gravatar

05/12 2014

1.0.2

1.0.2.0 http://squareinsider.com

Framework agnostic Gravatar library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Frederic G. Østby

gravatar

08/11 2013

1.0.1

1.0.1.0 http://squareinsider.com

Framework agnostic Gravatar library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Frederic G. Østby

gravatar

08/11 2013

1.0.0

1.0.0.0 http://squareinsider.com

Framework agnostic Gravatar library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

The Development Requires

by Frederic G. Østby

gravatar