irbis45/laravel-user-logo
最新稳定版本:v0.0.2
Composer 安装命令:
composer require irbis45/laravel-user-logo
包简介
Generates a logo Base64 based on the full name
README 文档
README
Installation
Require this package with composer. It is recommended to only require the package for development.
composer require irbis45/laravel-user-logo --dev
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
If you don't use auto-discovery, add the ServiceProvider to the providers list. For Laravel 11 or newer, add the ServiceProvider in bootstrap/providers.php. For Laravel 10 or older, add the ServiceProvider in config/app.php.
Irbis45\UserLogo\ServiceProvider::class,
Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="Irbis45\UserLogo\ServiceProvider"
Or by tag:
php artisan vendor:publish --tag=user-logo-config
Usage
You can use Facade
use Irbis45\UserLogo\Facades\UserLogo; $base64logo = UserLogo::generate('Иванов Иван');
Or helper
$base64logo = userlogo('Иванов Иван');
$base64logo = userlogo()->generate('Иванов Иван');
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-22