定制 a6digital/laravel-default-profile-image 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

a6digital/laravel-default-profile-image

最新稳定版本:v2.0.0

Composer 安装命令:

composer require a6digital/laravel-default-profile-image

包简介

Laravel package to create default profile image using name of user.

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

Laravel package to create default profile image using name of user.

Installation

Install using composer:

composer require a6digital/laravel-default-profile-image 

Edit app/config/app.php and add the providers

'providers' => [ 'A6digital\Image\DefaultProfileImageServiceProvider' ] 

Basic Usage

To create a profile image just do

$img = \DefaultProfileImage::create("Name Surname"); \Storage::put("profile.png", $img->encode()); 

This will create a profile image that has 512px width&height using the first letters of name and surname.

Profile Image

Advanced Usage

Create a white color text over black color background profile image that has 216px width&height.

$img = \DefaultProfileImage::create("Name Surname", 256, '#000', '#FFF'); \Storage::put("profile.png", $img->encode()); 

Profile Small Image

Using a custom font

$img = \DefaultProfileImage::create("@ Lamoni", 256, "#212121", "#FFF", '/var/www/public/fonts/RobotoDraftRegular.woff'); \Storage::put("profile.png", $img->encode()); 

Profile Small Image

统计信息

  • 总下载量: 282.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 41
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 40
  • Watchers: 8
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固