PHPackages                             dngo-io/cover-creator - 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. dngo-io/cover-creator

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

dngo-io/cover-creator
=====================

PHP image generator with CSS

v1.3(7y ago)3714MITPHP

Since Jun 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/dngo-io/cover-creator)[ Packagist](https://packagist.org/packages/dngo-io/cover-creator)[ RSS](/packages/dngo-io-cover-creator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

### DNGO Book Cover Creator

[](#dngo-book-cover-creator)

Usage;

First install package via composer;

```
composer require dngo-io/cover-creator

```

Sample code;

> To use this package, you need to install [PHP GD](http://php.net/manual/en/book.image.php) library to server

```
require ("vendor/autoload.php");

use DngoIO\CoverCreator\Generator;

$text1 = [
        'font-size' => 18,  //px
        'font-type' => __DIR__ . '../assets/Roboto-Regular.ttf', //path of ttf file on server
        'text-color' => [61,183,228],
        'left' => 0,
        'top' => 0,
        'background-url' => __DIR__ . '../assets/background.jpg' //path of the png
    ];

$text2 = [
        'font-size' => 12,  //px
        'font-type' => __DIR__ . '../assets/Roboto-Italic.ttf', //path of ttf file on server
        'text-color' => [61,183,228],
        'left' => 50,
        'top' => 30,
    ];

$config = [
        'auto-center' => true,
        'angle' => 0,
        'header' => 'Content-type: image/jpeg',
    ];

try {
    $generator = new Generator();
    $generator->setConfig($config); //or new Generator($config)
    $generator->addLine('My First Text', $text1);
    $generator->addLine('Second ine Text', $text2);
    $generator->generate();
}catch (\Exception $e) {
    echo $e->getMessage();
}
```

#### Available Selector Values

[](#available-selector-values)

NameValueDescriptionfont-sizeintegerFont size in px. Only integer valuesfont-typefileFont file on the server. Exact path and file name.text-colorarraytext color as RGBleftintegerMargin Left value of texttopintegerMargin Top value of textwrap (optional)integerInteger value to wrap text. If disables *auto-center* selector.### Availabile Config Values

[](#availabile-config-values)

the `Generator` class takes third parameter as configs.

NameValueDescriptionauto-centerboolEnable text center on imageangleintegerAngle of the text on imageheaderstringdefault value of header when image generated. default is `Content-type: image/jpeg`background-urlfileBackground file on the server. Exact path and file name. Should be PNG or JPG```
Important: If you wrap the line, auto-center is forced to false.

```

### Error Handling

[](#error-handling)

CoverCreator has 2 exceptions. ` InvalidFileException` is thrown when the background image is not ok. `InvalidTypeException` is thrown when any of selector value is not valid.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~1 days

Total

4

Last Release

2878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e95e42d9ecf14ecdcf3c4f4c6d6589547f6b8ceae399a1869413d30e21d0c56?d=identicon)[bencagri](/maintainers/bencagri)

---

Top Contributors

[![ikidnapmyself](https://avatars.githubusercontent.com/u/13779866?v=4)](https://github.com/ikidnapmyself "ikidnapmyself (12 commits)")[![bencagri](https://avatars.githubusercontent.com/u/823521?v=4)](https://github.com/bencagri "bencagri (4 commits)")

---

Tags

image-manipulationimage-processingimage-textphptextview

### Embed Badge

![Health badge](/badges/dngo-io-cover-creator/health.svg)

```
[![Health](https://phpackages.com/badges/dngo-io-cover-creator/health.svg)](https://phpackages.com/packages/dngo-io-cover-creator)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)[humanmade/tachyon-plugin

Rewrites WordPress image URLs to use Tachyon

87338.5k2](/packages/humanmade-tachyon-plugin)

PHPackages © 2026

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