forxer / gravatar Goto Github PK
View Code? Open in Web Editor NEWA lightweight PHP 8 library offering easy Gravatar integration.
License: MIT License
A lightweight PHP 8 library offering easy Gravatar integration.
License: MIT License
How to let users upload a gravatar or change their existing one?
Do you have any plans on maybe supporting Laravel 4?
When providing a full URL as the default image, the resulting URL is being double-encoded and creating an invalid Gravatar URL, e.g.::
Gravatar::image('[email protected]', null, 'https://example.com/image.jpg');
// results in:
// http://www.gravatar.com/avatar/5f0efb20de5ecfedbe0bf5e7c12353fe?d=https%253A%252F%252Fexample.com%252Fimage.jpg
Note the https%253A%252F%252Fexample.com%252Fimage.jpg
instead of https%3A%2F%2Fexample.com%2Fimage.jpg
.
The URL is first being raw-encoded and then later that value is used in http_build_query()
.
Since http_build_query()
already URL-encodes data, I believe the use of rawencodeurl()
is redundant.
A force default method should be added to Image class which should set f
or forcedefault
query param to 'y'
Per https://en.gravatar.com/site/implement/images/
If for some reason you wanted to force the default image to always load, you can do that by using the f= or forcedefault= parameter, and setting its value to y.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.