PHPackages                             norman-huth/gd-text - 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. norman-huth/gd-text

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

norman-huth/gd-text
===================

A class drawing multiline and aligned text on pictures. Uses GD extension.

v1.0.14(1y ago)41.9k↓12.2%MITPHPPHP ^8.0

Since Jan 29Pushed 1y agoCompare

[ Source](https://github.com/Muetze42/gd-text)[ Packagist](https://packagist.org/packages/norman-huth/gd-text)[ RSS](/packages/norman-huth-gd-text/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

gd-text
=======

[](#gd-text)

forked from [stil/gd-text](https://github.com/stil/gd-text)

Installation via Composer:
--------------------------

[](#installation-via-composer)

```
composer require norman-huth/gd-text
```

Basic usage example
-------------------

[](#basic-usage-example)

### New Fork Features

[](#new-fork-features)

#### HexColor

[](#hexcolor)

```
use GDText\HexColor;

$box->setFontColor(new HexColor('#0ea5e9'));
$box->setFontColor(new HexColor('7e22ce'));
$box->setFontColor(new HexColor('7e22ce', 50));
```

#### [Tailwind CSS Color](https://tailwindcss.com/docs/customizing-colors)

[](#tailwind-css-color)

```
use GDText\TailwindColor;

$box->setFontColor(new TailwindColor('slate', 200));
$box->setFontColor(new TailwindColor('slate', 200, 50));
```

### Usage

[](#usage)

```
