PHPackages                             hassanalisalem/laravel-initial-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. [Image &amp; Media](/categories/media)
4. /
5. hassanalisalem/laravel-initial-image

ActiveLaravel-library[Image &amp; Media](/categories/media)

hassanalisalem/laravel-initial-image
====================================

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

v1.0.2(9y ago)0164MITPHPPHP &gt;=5.4.0

Since Dec 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/my-tiny-experiments/laravel-initial-image)[ Packagist](https://packagist.org/packages/hassanalisalem/laravel-initial-image)[ Docs](http://www.anacoder.net)[ RSS](/packages/hassanalisalem-laravel-initial-image/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel initial Image
=====================

[](#laravel-initial-image)

Laravel package to create default profile image using first two letters of a name.

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

[](#installation)

Install using composer:

```
composer require hassanalisalem/laravel-initial-image

```

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

```
'providers' => [
    'hassanalisalem\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.

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());

```

Using a custom font

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

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

3486d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/510f178820f545b4ff2e9a4315eb5464a7c4fb099ba501cb94e91863be3409ef?d=identicon)[anacoder](/maintainers/anacoder)

---

Top Contributors

[![hsalem7](https://avatars.githubusercontent.com/u/6441901?v=4)](https://github.com/hsalem7 "hsalem7 (6 commits)")

---

Tags

laravel default profile image

### Embed Badge

![Health badge](/badges/hassanalisalem-laravel-initial-image/health.svg)

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

###  Alternatives

[league/glide

Wonderfully easy on-demand image manipulation library with an HTTP based API.

2.6k52.6M138](/packages/league-glide)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M161](/packages/intervention-image-laravel)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506516.3k27](/packages/bkwld-croppa)[intervention/image-driver-vips

libvips driver for Intervention Image

47144.1k10](/packages/intervention-image-driver-vips)[laravel-at/laravel-image-sanitize

A small but handy package to prevent malicious code execution coming into your application through uploaded image files.

29063.8k](/packages/laravel-at-laravel-image-sanitize)

PHPackages © 2026

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