PHPackages                             dvillodres/image-generator - 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. dvillodres/image-generator

ActiveLibrary[Image &amp; Media](/categories/media)

dvillodres/image-generator
==========================

Generate images from images and text.

v1.0.0(2y ago)451MITPHPPHP ^8.1

Since Mar 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dvillodres/image-generator)[ Packagist](https://packagist.org/packages/dvillodres/image-generator)[ RSS](/packages/dvillodres-image-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

dvillodres/image-generator
==========================

[](#dvillodresimage-generator)

**image-generator** is a Composer package that allows you to generate images by overlaying text onto an image using a provided image URL and text.

---

Usage
-----

[](#usage)

### Installation

[](#installation)

You can install the package via Composer. Run the following command:

```
composer require dvillodres/image-generator

```

### Code example

[](#code-example)

```
use DVillodres\ImageGenerator\Image;
use DVillodres\ImageGenerator\ImageConfig;

Image::create(
    ImageConfig::postCover(
        $this->imgDir . '/test-' . time() . '.jpg',
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
        'example.com',
        color: '#ffffff',
        textColor: '#55b8ff',
        imgURL: 'https://images.pexels.com/photos/792416/pexels-photo-792416.jpeg'
    )
);

```

---

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a pull request.

---

Acknowledgements
----------------

[](#acknowledgements)

I want to extend my heartfelt gratitude to [Dantsu](https://github.com/DantSu) for his invaluable contribution to the world of development, particularly for his outstanding package [php-image-editor](https://github.com/DantSu/php-image-editor). Before creating this project, I relied on his package as an essential part of our workflow.

Dantsu's work provided a robust foundation and inspired us to create a simplified version tailored to our specific needs. We appreciate his dedication and effort in crafting and maintaining such a valuable project.

Thank you, Dantsu, for being a source of inspiration for the development community!

---

**Note:** This project was inspired by the work of [Dantsu/php-image-editor](https://github.com/DantSu/php-image-editor) before evolving into a simplified version for our specific requirements.

---

**Author:** Daniel Villodres | **Personal Website:** [d-v.es](https://d-v.es)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

852d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2a5b410e1b9394b2b12583a30453fcfcaec8b5e99de7ae92e603899a3d9edc9?d=identicon)[dvillodres](/maintainers/dvillodres)

---

Top Contributors

[![dvillodresu2d](https://avatars.githubusercontent.com/u/241273737?v=4)](https://github.com/dvillodresu2d "dvillodresu2d (5 commits)")

### Embed Badge

![Health badge](/badges/dvillodres-image-generator/health.svg)

```
[![Health](https://phpackages.com/badges/dvillodres-image-generator/health.svg)](https://phpackages.com/packages/dvillodres-image-generator)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

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