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.
Informations about the package initials-avatar-generator
Intro
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
- Danny Mills
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of initials-avatar-generator with dependencies
intervention/image Version ^2.7
danjamesmills/laravel-response Version ^1.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0