bondarde / filament-local-avatar
Creates local avatar images from user's name
v1.0.0
2024-07-14 22:32 UTC
Requires
- php: ^8.1
- bondarde/php-colors: ^1.0
- filament/filament: ^3.0
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.1
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
README
Creates local avatar images from user's name with e-mail fallback. Used madel's properties, separators, avatar length, font sizes and fallback "name" are configurable.
Local avatar provider allows offline work and application deployment to sensitive and offline environments.
Installation
You can install the package via Composer:
composer require bondarde/filament-local-avatar
You can publish the config file with:
php artisan vendor:publish --tag="filament-local-avatar-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="filament-local-avatar-views"
Usage
use BondarDe\FilamentLocalAvatar\LocalAvatarProvider; public function panel(Panel $panel): Panel { return $panel ->id() // ... ->defaultAvatarProvider(LocalAvatarProvider::class) // ...
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.