PHPackages                             andrewgjohnson/imagettftextgradient - 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. andrewgjohnson/imagettftextgradient

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

andrewgjohnson/imagettftextgradient
===================================

imagettftextgradient is a drop in replacement for imagettftext with an added parameter to add gradient coloring effects to your PHP GD images

v1.0.4(3y ago)5507[1 issues](https://github.com/andrewgjohnson/imagettftextgradient/issues)MITPHPPHP &gt;=5.0.0

Since Mar 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/andrewgjohnson/imagettftextgradient)[ Packagist](https://packagist.org/packages/andrewgjohnson/imagettftextgradient)[ Docs](https://imagettftextgradient.agjgd.org)[ GitHub Sponsors](https://github.com/andrewgjohnson)[ Patreon](https://www.patreon.com/agjgd)[ RSS](/packages/andrewgjohnson-imagettftextgradient/feed)WikiDiscussions master Synced today

READMEChangelog (5)DependenciesVersions (6)Used By (0)

imagettftextgradient
====================

[](#imagettftextgradient)

[![MIT License](https://camo.githubusercontent.com/04922227901ae9b0742e739b586a385fdacbb439766ee50870ea8db097378794/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3033363664362e706e673f636f6c6f72423d303336366436267374796c653d666c61742d737175617265)](https://github.com/andrewgjohnson/imagettftextgradient/blob/master/LICENSE)[![Current Release](https://camo.githubusercontent.com/416e93bee82631cf402158cf87154dcd7fc340c81836f4cb9524ac1876a13962/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616e64726577676a6f686e736f6e2f696d616765747466746578746772616469656e742e706e673f636f6c6f72423d303336366436267374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d676974687562)](https://github.com/andrewgjohnson/imagettftextgradient/releases)[![Contributors](https://camo.githubusercontent.com/1c15f7b0619209827fa90b93805d3252bf8804a2c7efd4410b981133faf02320/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6e7472696275746f72732f616e64726577676a6f686e736f6e2f696d616765747466746578746772616469656e742e706e673f636f6c6f72423d303336366436267374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d676974687562)](https://github.com/andrewgjohnson/imagettftextgradient/graphs/contributors)[![Packagist Downloads](https://camo.githubusercontent.com/9bc9e837d6674da9640bbc75c018f29d45455733d442b86eb192cdb57c23e071/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e64726577676a6f686e736f6e2f696d616765747466746578746772616469656e742e706e673f636f6c6f72423d303336366436267374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d7061636b6167697374)](https://packagist.org/packages/andrewgjohnson/imagettftextgradient/stats)[![Issues](https://camo.githubusercontent.com/0cbc5633a5b50d5f42d80c50e49e9ce3c21c1cc12e539107a66b26ceafb40316/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f616e64726577676a6f686e736f6e2f696d616765747466746578746772616469656e742e706e673f636f6c6f72423d303336366436267374796c653d666c61742d737175617265266c6f676f436f6c6f723d7768697465266c6f676f3d676974687562)](https://github.com/andrewgjohnson/imagettftextgradient/issues)[![Patreon](https://camo.githubusercontent.com/2f4a5e07537f99a530243bf5b183dbf4bb47b09ce12d4def54cb5b5b4bcd3db2/68747470733a2f2f696d616765747466746578746772616469656e742e61676a67642e6f72672f646f63756d656e746174696f6e2f696d616765747466746578746772616469656e742e61676a67642e6f72672f696d616765732f70617472656f6e2d62616467652e706e67)](https://patreon.com/agjopensource)

[![](https://camo.githubusercontent.com/a55996d6364eef4478507bdfd64a8eede306ca18264e9df7ccd379f4054d985d/68747470733a2f2f696d616765747466746578746772616469656e742e61676a67642e6f72672f646f63756d656e746174696f6e2f696d616765747466746578746772616469656e742e61676a67642e6f72672f696d616765732f6176617461722e706e67)](https://imagettftextgradient.agjgd.org/)

Description
-----------

[](#description)

**imagettftextgradient** is a drop in replacement for imagettftext with an added parameter to add gradient coloring effects to your PHP GD images.

[![Patreon - Become a Patron](https://camo.githubusercontent.com/24c60c4550632628010d5c53c8cf9abc46d101caea3a76f057bff8884850c3b5/68747470733a2f2f7261737465722e736869656c64732e696f2f62616467652f50617472656f6e2532302d6265636f6d6525323061253230506174726f6e2d4644333334412e706e673f7374796c653d666f722d7468652d6261646765266c6f676f3d70617472656f6e266c6f676f436f6c6f723d464433333441)](https://patreon.com/agjopensource)

**imagettftextgradient** is an [agjgd](https://agjgd.org) project.

Usage
-----

[](#usage)

### With Composer

[](#with-composer)

This project offers support for the [Composer](https://getcomposer.org/) dependency manager. You can find the imagettftextgradient package online on [packagist.org](https://packagist.org/packages/andrewgjohnson/imagettftextgradient).

#### Install using Composer

[](#install-using-composer)

Either run this command:

```
composer require andrewgjohnson/imagettftextgradient

```

or add this to the `require` section of your composer.json file:

```
"andrewgjohnson/imagettftextgradient": "1.*"

```

### Without Composer

[](#without-composer)

To use without Composer add an [include](http://php.net/manual/function.include.php) to the [`imagettftextgradient.php` source file](https://raw.githubusercontent.com/andrewgjohnson/imagettftextgradient/master/source/imagettftextgradient.php).

```
include_once 'source/imagettftextgradient.php';

```

Examples
--------

[](#examples)

```
// standard method to add text to a GD image
imagettftext($im, 20, 0, 0, 0, $color, $font, $string);

// this will work the exact same as the line above
imagettftextgradient($im, 20, 0, 0, 0, $color, $font, $string);

// method to add text with gradient coloring effects to a GD image
imagettftextgradient($im, 20, 0, 0, 0, $color, $font, $string, $gradient_color);

```

There are [other examples](https://github.com/andrewgjohnson/imagettftextgradient/tree/master/examples) included in the GitHub repository and on [imagettftextgradient.agjgd.org](https://imagettftextgradient.agjgd.org/examples/).

Help Requests
-------------

[](#help-requests)

Please post any questions in the [discussions area](https://github.com/andrewgjohnson/imagettftextgradient/discussions) on GitHub if you need help.

If you discover a bug please [enter an issue](https://github.com/andrewgjohnson/imagettftextgradient/issues/new) on GitHub. When submitting an issue please use our [issue template](https://github.com/andrewgjohnson/imagettftextgradient/blob/master/ISSUE_TEMPLATE.md).

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

[](#contributing)

Please read our [contributing guidelines](https://github.com/andrewgjohnson/imagettftextgradient/blob/master/CONTRIBUTING.md) if you want to contribute.

You can contribute financially by becoming a [patron](https://patreon.com/agjopensource) at [patreon.com/agjopensource](https://patreon.com/agjopensource) to support imagettftextgradient and [other agjgd.org projects](https://agjgd.org/projects/).

[![Patreon - Become a Patron](https://camo.githubusercontent.com/24c60c4550632628010d5c53c8cf9abc46d101caea3a76f057bff8884850c3b5/68747470733a2f2f7261737465722e736869656c64732e696f2f62616467652f50617472656f6e2532302d6265636f6d6525323061253230506174726f6e2d4644333334412e706e673f7374796c653d666f722d7468652d6261646765266c6f676f3d70617472656f6e266c6f676f436f6c6f723d464433333441)](https://patreon.com/agjopensource)

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

[](#acknowledgements)

This project was started by [Andrew G. Johnson (@andrewgjohnson)](https://github.com/andrewgjohnson).

Full list of contributors:

- [Andrew G. Johnson (@andrewgjohnson)](https://github.com/andrewgjohnson)

Our [security policies and procedures](https://github.com/andrewgjohnson/imagettftextgradient/blob/master/.github/SECURITY.md) comes via the [atomist/samples](https://github.com/atomist/samples/blob/master/SECURITY.md) project. Our [issue templates](https://github.com/andrewgjohnson/imagettftextgradient/tree/master/.github/ISSUE_TEMPLATE) comes via the [tensorflow/tensorflow](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) project. Our [pull request template](https://github.com/andrewgjohnson/imagettftextgradient/blob/master/.github/PULL_REQUEST_TEMPLATE.md) comes via the [stevemao/github-issue-templates](https://github.com/stevemao/github-issue-templates) project. The [mountains photo](https://unsplash.com/photos/qJvpykJ5SKs) comes via [Gabriel Garcia Marengo](https://unsplash.com/@gabrielgm).

Changelog
---------

[](#changelog)

You can find all notable changes in the [changelog](https://github.com/andrewgjohnson/imagettftextgradient/blob/master/CHANGELOG.md).

###  Health Score

31

—

LowBetter than 71% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 97.6% 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 ~519 days

Total

5

Last Release

1215d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a2c654feaba88830ba4fd37496255b92c6404cb78f5e7d90186da1496141986?d=identicon)[andrewgjohnson](/maintainers/andrewgjohnson)

---

Top Contributors

[![andrewgjohnson](https://avatars.githubusercontent.com/u/1124501?v=4)](https://github.com/andrewgjohnson "andrewgjohnson (41 commits)")[![ImgBotApp](https://avatars.githubusercontent.com/u/31427850?v=4)](https://github.com/ImgBotApp "ImgBotApp (1 commits)")

---

Tags

composergdgraphicsimageimagesphpimagegdgraphicsimages

### Embed Badge

![Health badge](/badges/andrewgjohnson-imagettftextgradient/health.svg)

```
[![Health](https://phpackages.com/badges/andrewgjohnson-imagettftextgradient/health.svg)](https://phpackages.com/packages/andrewgjohnson-imagettftextgradient)
```

###  Alternatives

[intervention/image

PHP Image Processing

14.3k190.0M1.9k](/packages/intervention-image)[league/glide

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

2.6k50.5M100](/packages/league-glide)[gregwar/image

Image handling

1.0k4.0M47](/packages/gregwar-image)[rosell-dk/webp-convert

Convert JPEG &amp; PNG to WebP with PHP

6037.8M48](/packages/rosell-dk-webp-convert)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

860908.4k10](/packages/sybio-image-workshop)[andrewgjohnson/imagettftextblur

imagettftextblur is a drop in replacement for imagettftext with added parameters to add blur, glow and shadow effects to your PHP GD images

27186.8k1](/packages/andrewgjohnson-imagettftextblur)

PHPackages © 2026

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