Download the PHP package uibar/gravatar without Composer

On this page you can find all versions of the php package uibar/gravatar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gravatar

Gravatar for Laravel 5 & 5.1

Build Status Latest Stable Version Total Downloads Latest Unstable Version License Project Status

SensioLabsInsight

This package is a quick and simple way to implement Gravatar in your Laravel project. Enjoy!

Features

Future Features

Planned features for the future:

Install

  1. Get the package

  2. Add the Service Provider and the Facade to your config/app.php file

Use

To get the Gravatar URL it's as simple as:

Of course we can also generate a full image tag. For your ease we can do this in multiple ways. Either way, the email is required to be specified.

All of these will return a default of 80x80 Gravatar.

Secure Connections

The class will set the Gravatar URL automatically based on the Request type. So you don't need to worry about what connection type to use if you have SSL enabled on your domain.

However, there is a way to force using HTTPS to retrieve the Gravatar. Use the forceSecure() method.

Customize

To be able to customize your Gravatar return you can refer to the following elements:

$email => The email of the Gravatar

$size => The size in pixels [1 - 2048]

$defaults => Default image set to use if avatar not found [404 | mm | identicon | monsterid | wavatar]

$rating => Accepted image rating [g | pg | r | x]

$image => TRUE or FALSE if you want or not to return the full image tag instead of the image URL

$attributes => The extra attributes you need for the image tag if you chose this way

$forceSecure => Forces the connection to be secure (TRUE | FALSE)

These elements can be changed either by passing them in the first parameter of the make() method as array keys (the order doesn't matter), by Method Chaining or trough the get() method params.

Here are three customized examples with the same effect that illustrates the customization methods:

It's up to you to chose the one that best fits your needs.

Method Chaining

You can use method chaining to customize your Gravatar. The same method names are used as the element names above. Let's see some examples:

Please note that in method chaining we use make() as the end of the statement not get().

License

This package is released under the MIT license and thus it's free for all to use, distribute and upgrade.

Thank you!

Thanks to these amazing people and their packages I got inspired to write my own representation of Gravatar Helper.

Thank you!


All versions of gravatar with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version ~5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package uibar/gravatar contains the following files

Loading the files please wait ....