Download the PHP package laravolt/avatar without Composer

On this page you can find all versions of the php package laravolt/avatar. 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 avatar

laravolt/avatar

Total Downloads Monthly Downloads Run Tests Coverage Status

Preview

Display unique avatar for any user based on their (initials) name.

Preview

Preview

:film_strip: Video Tutorial

Installation

This package originally built for Laravel, but can also be used in any PHP project.

Read more about integration with PHP project here.

Laravel >= 5.2:

Laravel 5.1:

Service Provider & Facade

Note: only for Laravel 5.4 and below, because since Laravel 5.5 we use package auto-discovery.

Publish Config (optional)

This will create config file located in config/laravolt/avatar.php.

Lumen Service Provider

Usage

Output as base64

Save as file

Output as Gravatar

Gravatar parameter reference: https://en.gravatar.com/site/implement/images/

Output as SVG

You may specify custom font-family for your SVG text.

Get underlying Intervention image object

The method will return an instance of Intervention image object, so you can use it for further purposes.

Non-ASCII Character

By default, this package will try to output any initials letter as it is. If the name supplied contains any non-ASCII character (e.g. ā, Ě, ǽ) then the result will depend on which font used (see config). It the font supports characters supplied, it will successfully displayed, otherwise it will not.

Alternatively, we can convert all non-ascii to their closest ASCII counterparts. If no closest coutnerparts found, those characters are removed. Thanks to Stringy for providing such useful functions. What we need is just change one line in config/avatar.php:

Configuration

Overriding config at runtime

We can overriding configuration at runtime by using following functions:

Integration with other PHP project

$config is just an ordinary array with same format as explained above (See Configuration).

Support Us

Buy Me A Coffee

Donate Via PayPal

paypal

Traktir Saya

Trakteer Saya


All versions of avatar with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/cache Version ^8.0|^9.0|^10.0
intervention/image Version ^2.7
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 laravolt/avatar contains the following files

Loading the files please wait ....