Skip to content

wpillar/codeigniter-avatars-io-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Codeigniter Avatars.io Helper

A Codeigniter helper for the http://avatars.io service.

Installation

Drop the avatars-io_helper.php file into application/helpers and load or autoload in the usual manner.

Basic Usage

Echo a plain URL of the avatar.

avatar_url('twitter', 'willpillar');
avatar_url('facebook', 'willpillar');
avatar_url('gravatar', '[email protected]');

Different Sizes

avatar_url('twitter', 'willpillar', 'large');
avatar_url('facebook', 'willpillar', 'medium');

Return the URL rather than echo

$url = avatar_url('twitter', 'willpillar', 'small', false);

Echo an img tag

avatar_url('twitter', 'willpillar', 'medium', true, true);

Find out more: http://avatars.io

About

A Codeigniter helper for the http://avatars.io service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages