An easy and elegant way to generate gravatars πŸ–Ό

Overview

pH2Gravatar

The simplest Gravatar PHP package

An easy and elegant way to generate gravatar profile photos from email addresses πŸͺ„

⛏ Requirements

πŸ— How to install it?

With composer,

composer require ph-7/ph2gravatar

πŸ’­ How to use it?

require __DIR__ . '/vendor/autoload.php';

use PH7\PH2Gravatar\Gravatar\Image;
?>

<!-- Here, we leave the default parameters. https://en.gravatar.com/site/implement/images/ -->
<img src="<?php echo Image::get('[email protected]'); ?>" alt="My gravatar image" />


<!-- Set gravatar image size to 400px -->
<img src="<?php echo Image::get('[email protected]', ['size' => 400]); ?>" alt="My gravatar image" />
require __DIR__ . '/vendor/autoload.php';

use PH7\PH2Gravatar\Gravatar;

echo Gravatar::get('[email protected]', [
    'size' => 80,
    'rating' => 'pg',
    'display' => 'retro'
]);

πŸͺ„ Author

I'm Pierre-Henry Soria. A passionate, zen & dedicated software engineer 😊

@phenrysay pH-7


Pierre-Henry Soria

πŸ“ƒ License

pH2Gravatar is distributed under MIT license πŸš€ Enjoy!

You might also like...
PHPExif is a library which gives you easy access to the EXIF meta-data of an image

PHPExif v0.6.4 PHPExif is a library which gives you easy access to the EXIF meta-data of an image. PHPExif serves as a wrapper around some native or C

Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file, move it to a new directory, and returns the new source for the image.

NO LONGER MAINTAINED!!! Image Cache v. 1.0.0 Image Cache is a very simple PHP class that accepts an image source and will compress and cache the file,

PHP Exif Library - library for reading and writing Exif headers in JPEG and TIFF files using PHP.

PEL: PHP Exif Library README file for PEL: PHP Exif Library. A library with support for reading and writing Exif headers in JPEG and TIFF images using

The Tinify API allows you to compress and optimize WebP, JPEG and PNG images.

The Tinify API allows you to compress and optimize WebP, JPEG and PNG images. It is designed as a REST service. The client libraries in various languages make it very easy to interact with the Tinify API.

GifFrameExtractor is a PHP class that separates all the frames (and their duration) of an animated GIF

================================ GifFrameExtractor ================================ GifFrameExtractor is a PHP class that separates all the frames (an

Auto Image & file upload, resize and crop for Laravel eloquent model using Intervention image

Laravel ImageUp The qcod/laravel-imageup is a trait which gives you auto upload, resize and crop for image feature with tons of customization. Install

Plug n play avatar, turn name, email, and any other string into beautiful avatar (or gravatar), effortless.
Plug n play avatar, turn name, email, and any other string into beautiful avatar (or gravatar), effortless.

laravolt/avatar Display unique avatar for any user based on their (initials) name. Preview Installation This package originally built for Laravel, but

Laragram is a simple instagram
Laragram is a simple instagram "clone" built with Laravel and Tailwind CSS

Laragram is a simple instagram "clone" built with Laravel and Tailwind CSS that gives to the users the ability to create or edit their own profiles (including profile image and description), upload images and share them among friends

⚑ Dynamically generated, customizable SVG that gives the appearance of typing and deleting text. Typing SVGs can be used as a bio on your Github profile readme or repository.
⚑ Dynamically generated, customizable SVG that gives the appearance of typing and deleting text. Typing SVGs can be used as a bio on your Github profile readme or repository.

⚑ Dynamically generated, customizable SVG that gives the appearance of typing and deleting text. Typing SVGs can be used as a bio on your Github profile readme or repository.

Releases(v2.0.1)
  • v2.0.1(Apr 18, 2022)

  • v2.0.0(Jan 7, 2022)

    • Several cleanup and better consistency for the library (following also unofficial PHP standards πŸ’ͺ).
    • Breaking change: Redundant namespace has been remove from PH7\PH2Gravatar\Gravatar\Image to PH7\PH2Gravatar\Image.
      • In your project, once you update the library to v2.0.0, you will just have to replace the full namespace PH7\PH2Gravatar\Gravatar\Image to be PH7\PH2Gravatar\Image

    Happy Gravatar! ✨ Happy New Year! πŸŽ‰

    Source code(tar.gz)
    Source code(zip)
  • v1.1.2(Nov 18, 2021)

  • v1.1.0(Oct 24, 2021)

    • The library project namespace didn't have the right caps convention.
      • Renamed the project namespace from Ph7\PH2Gravatar to PH7\PH2Gravatar
    Source code(tar.gz)
    Source code(zip)
  • v1.0.1(Oct 24, 2021)

  • v1.0.0(Oct 24, 2021)

    Stable version πŸŽ‰

    Now, with pH2Gravatar, you have the easiest way to generate gravatar images from registered gravatar email addresses πŸ₯³

    <?php
    
    require __DIR__ . '/vendor/autoload.php';
    
    use Ph7\PH2Gravatar\Gravatar\Image;
    ?>
    
    <img src="<?php echo Image::get('[email protected]'); ?>" alt="My gravatar image" />
    
    Source code(tar.gz)
    Source code(zip)
Owner
β™š PH⑦ de Soriaβ„’β™›
βš‘οΈπ™€π™£π™©π™π™ͺπ™¨π™žπ™–π™¨π™©π™žπ™˜ & π™‹π™–π™¨π™¨π™žπ™€π™£π™–π™©π™š π˜Ώπ™šπ™« 🎈Everyday-learning, coding, eating fruits & doing sport are my fuel! πŸš€ Enjoy 80/20 and Parkinson's πŸ€–
β™š PH⑦ de Soriaβ„’β™›
A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API.

A PHP GD + TwitterOAuth demo to dynamically generate Twitter header images and upload them via the API. This enables you to build cool little tricks, like showing your latest followers or sponsors, latest content creted, a qrcode to something, a progress bar for some goal, and whathever you can think of.

Erika Heidi 172 Jan 5, 2023
Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing

Laravel ZATCA E-invoicing Introduction Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing Installation To get the la

Ayman Alaiwah 8 Aug 17, 2022
This is a class of php QR Code, This library helps you generate QR codes in a jiffy.

This is a class of php QR Code, This library helps you generate QR codes in a jiffy.

null 59 Oct 5, 2022
A library using PHP to generate QRCode from https://www.qrcode-monkey.com free

PHP Class Generate Free QRCode ?? A library using PHP to generate QRCode from https://www.qrcode-monkey.com free βœ‹ NOTE: Do not generate too many QRCo

Nguyen Truong Nguyen 53 Dec 28, 2022
Generate Avatars using Initials, Bears or Kittens

Avatary Simple avatar generator Explore the docs Β» View Demo Β· Report Bug Β· Request Feature Table of Contents About The Project Built With Getting Sta

Prettify Studio 33 Nov 30, 2022
A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.

Lychee A great looking and easy-to-use photo-management-system. Since the 1st of April 2018 this project has moved to it's own Organisation (https://g

Tobias Reich 6.2k Dec 31, 2022
A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.

A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.

Lychee Organisation 2.3k Jan 1, 2023
Wonderfully easy on-demand image manipulation library with an HTTP based API.

Glide Glide is a wonderfully easy on-demand image manipulation library written in PHP. Its straightforward API is exposed via HTTP, similar to cloud i

The League of Extraordinary Packages 2.4k Dec 19, 2022
An easy-to-use PHP QrCode generator with first-party support for Laravel.

An easy-to-use PHP QrCode generator with first-party support for Laravel.

Simple Software LLC 2.2k Jan 5, 2023