Giter VIP home page Giter VIP logo

laravel-gravatar's Introduction

Gravatar for Laravel

A simple bundle to create Gravatar links and images.

Installation

Drop the Gravatar bundle into your /bundles directory and register it in your application/bundles.php file. Optionally you can change the defaults in the config/gravatar.php file.

You could optionally just drop the gravatar.php and config file into your Laravel /application/libraries folder and have it load as needed.

Generate a Gravatar

echo Gravatar::get( '[email protected]' );
  // http://www.gravatar.com/avatar/4fca794da0cf08804f99048d3c8b39c1?

echo Gravatar::get_image( '[email protected]' );
  // <img src="http://www.gravatar.com/avatar/4fca794da0cf08804f99048d3c8b39c1?" alt="">

Generate a Secure Gravatar

You can create URLs and IMG tags with Gravatars secure URL.

Gravatar::get_secure( '[email protected]' );

Gravatar::get_secure_image( '[email protected]' );

Configuration

See the config/gravatar.php file for full descriptions of config options.

Also see the gravatar.php file for additional arguments you can pass on a function call.

Thanks

Thanks to Phill Sparks for implementation ideas, and Michael Owens who created the original.

laravel-gravatar's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.