PHPackages                             a6digital/laravel-default-profile-image - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. a6digital/laravel-default-profile-image

ActiveLaravel-library[Utility &amp; Helpers](/categories/utility)

a6digital/laravel-default-profile-image
=======================================

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

v2.0.0(8y ago)42352.2k↓28.7%6[1 issues](https://github.com/socialityio/laravel-default-profile-image/issues)MITPHPPHP &gt;=5.4.0

Since Mar 23Pushed 8y ago8 watchersCompare

[ Source](https://github.com/socialityio/laravel-default-profile-image)[ Packagist](https://packagist.org/packages/a6digital/laravel-default-profile-image)[ Docs](https://github.com/a6digital/laravel-default-profile-image)[ RSS](/packages/a6digital-laravel-default-profile-image/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (12)Used By (0)

Laravel Default Profile Image
=============================

[](#laravel-default-profile-image)

[![Latest Stable Version](https://camo.githubusercontent.com/32a1da386e73793772615ef7379763f434d352c65b499a8bb5817172628ebf60/68747470733a2f2f706f7365722e707567782e6f72672f61366469676974616c2f6c61726176656c2d64656661756c742d70726f66696c652d696d6167652f762f737461626c652e737667)](https://packagist.org/packages/a6digital/laravel-default-profile-image) [![Total Downloads](https://camo.githubusercontent.com/33e7ad868c215c4fb0ce37a295b30a7f244bccf0af62c427b8bcb523f11b55c3/68747470733a2f2f706f7365722e707567782e6f72672f61366469676974616c2f6c61726176656c2d64656661756c742d70726f66696c652d696d6167652f646f776e6c6f6164732e737667)](https://packagist.org/packages/a6digital/laravel-default-profile-image) [![Latest Unstable Version](https://camo.githubusercontent.com/81a56a13c48a4e2a335a7cbd4493afd24d0c70e8bb3d3725cd373634999c96ea/68747470733a2f2f706f7365722e707567782e6f72672f61366469676974616c2f6c61726176656c2d64656661756c742d70726f66696c652d696d6167652f762f756e737461626c652e737667)](https://packagist.org/packages/a6digital/laravel-default-profile-image) [![License](https://camo.githubusercontent.com/c5c165071da8862879ac61cac61a8797aad985f73f46e109ce74a25d7ddd1381/68747470733a2f2f706f7365722e707567782e6f72672f61366469676974616c2f6c61726176656c2d64656661756c742d70726f66696c652d696d6167652f6c6963656e73652e737667)](https://packagist.org/packages/a6digital/laravel-default-profile-image)

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

Installation
------------

[](#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
-----------

[](#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&amp;height using the first letters of name and surname.

[![Profile Image](https://raw.githubusercontent.com/a6digital/laravel-default-profile-image/master/docs/images/profile.png)](https://raw.githubusercontent.com/a6digital/laravel-default-profile-image/master/docs/images/profile.png)

Advanced Usage
--------------

[](#advanced-usage)

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

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

```

[![Profile Small Image](https://raw.githubusercontent.com/a6digital/laravel-default-profile-image/master/docs/images/profile-small.png)](https://raw.githubusercontent.com/a6digital/laravel-default-profile-image/master/docs/images/profile-small.png)

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](https://raw.githubusercontent.com/a6digital/laravel-default-profile-image/master/docs/images/profile-font-roboto.png)](https://raw.githubusercontent.com/a6digital/laravel-default-profile-image/master/docs/images/profile-font-roboto.png)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~109 days

Recently: every ~271 days

Total

11

Last Release

3035d ago

Major Versions

v0.1.0 → v1.02015-03-23

v1.0.5 → v2.0.02018-03-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/10252ed85bd2711d037aa5b10994de5c91e18f4f90ad8b9f9178f12d008e52ed?d=identicon)[toprakkaya](/maintainers/toprakkaya)

---

Top Contributors

[![a6-digital-hasan](https://avatars.githubusercontent.com/u/192774361?v=4)](https://github.com/a6-digital-hasan "a6-digital-hasan (15 commits)")[![toprakkaya](https://avatars.githubusercontent.com/u/1404659?v=4)](https://github.com/toprakkaya "toprakkaya (4 commits)")[![nturnage](https://avatars.githubusercontent.com/u/31660956?v=4)](https://github.com/nturnage "nturnage (3 commits)")[![lamoni](https://avatars.githubusercontent.com/u/5675626?v=4)](https://github.com/lamoni "lamoni (1 commits)")[![swatkins](https://avatars.githubusercontent.com/u/128742?v=4)](https://github.com/swatkins "swatkins (1 commits)")

---

Tags

laravel default profile image

### Embed Badge

![Health badge](/badges/a6digital-laravel-default-profile-image/health.svg)

```
[![Health](https://phpackages.com/badges/a6digital-laravel-default-profile-image/health.svg)](https://phpackages.com/packages/a6digital-laravel-default-profile-image)
```

###  Alternatives

[laravolt/avatar

Turn name, email, and any other string into initial-based avatar or gravatar.

2.0k5.8M39](/packages/laravolt-avatar)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19346.6k3](/packages/symfony-ux-cropperjs)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37549.4k](/packages/beyondcode-laravel-favicon)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
