Download the PHP package danjamesmills/initials-avatar-generator without Composer

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

Intro

Latest Version on Packagist Total Downloads GitHub Actions

Introducing the Laravel Avatar package, a powerful tool for generating unique avatar images for any model in your Laravel application. This package allows you to easily create unique avatar images based on fields you specify for your models, such as name, email, or any other field. With this package, you can easily add avatar functionality to your application and ensure that each user or model has a distinct and personalised avatar image. It's also configurable to use different image generation libraries, so you can pick the one that fits your project best. With a simple and intuitive API, you can easily generate avatars for any model in your application, saving you time and effort. The Laravel Avatar package makes it easy to add personalized avatars to your application, enhance the user experience and make your app look more professional.

Installation

You can install the package via composer:

Publish Config (optional)

You should publish the migration and the config/initials-avatar-generator.php config file with:

Run the migrations: After the config and migration have been published and configured, you can create the tables for this package by running:

Publicly Accessible Storage Path

In the config/initials-avatar-generator.php we have used the following path below for storage of avatar images, feel free to change this.

If your using the above don't forget to link storage and public paths from console and create 'avatars' folder.

Basic Usage

First, add the DanJamesMills\InitialsAvatarGenerator\Traits\HasAvatar trait to your User model(s):

Defining An Accessor

Define Model Avatar Fields

If you have used a different column name from the default migration name of 'avatar', you must define this new column name on the model.

Generating Avatar

If your model has no avatar set, you can generate one below.

If you update the value of the avatar field i.e user's name, an avatar will be automatically generated and saved for you.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of initials-avatar-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
intervention/image Version ^2.7
danjamesmills/laravel-response Version ^1.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.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 danjamesmills/initials-avatar-generator contains the following files

Loading the files please wait ....