PHPackages                             hracik/php-create-image-from-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. hracik/php-create-image-from-text

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

hracik/php-create-image-from-text
=================================

Create image from text.

0.1.1(6y ago)018.1k[1 PRs](https://github.com/hracik/php-create-image-from-text/pulls)MITPHPCI passing

Since May 27Pushed 3mo agoCompare

[ Source](https://github.com/hracik/php-create-image-from-text)[ Packagist](https://packagist.org/packages/hracik/php-create-image-from-text)[ RSS](/packages/hracik-php-create-image-from-text/feed)WikiDiscussions master Synced 1mo ago

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

Create image from text
======================

[](#create-image-from-text)

Create image from text. Custom text, text angle, text padding, font size and font type.

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running

### Installing

[](#installing)

Install with Composer

```
composer require hracik/php-create-image-from-text

```

### Usage

[](#usage)

```
use Hracik\CreateImageFromText;

//possible return options are: RETURN_BASE64_IMG, RETURN_BASE64, RETURN_RESOURCE
$image = CreateImageFromText::createImageFromText($text, 0, 10, 12, null, CreateImageFromText::RETURN_BASE64_IMG);
```

### Examples

[](#examples)

This is how it will look

[![](example/email.jpg)](example/email.jpg)

[![](example/text.jpg)](example/text.jpg)

Running the tests
-----------------

[](#running-the-tests)

Run

```
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests

```

For Windows platforms

```
./vendor/bin/phpunit.bat --bootstrap vendor/autoload.php tests

```

Built With
----------

[](#built-with)

- [PHPUnit](https://phpunit.de/) - The PHP Testing Framework
- [PHP: imagettfbbox - Manual](https://www.php.net/manual/en/function.imagettfbbox.php#105593)

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

[](#contributing)

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/hracik/php-create-image-from-text/tags).

Authors
-------

[](#authors)

- **Andrej Lahucky** - *Initial work* - [Hracik](https://github.com/hracik)

See also the list of [contributors](https://github.com/hracik/php-create-image-from-text/graphs/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

Acknowledgments
---------------

[](#acknowledgments)

- PurpleBooth

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Every ~9 days

Total

3

Last Release

2526d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

image-creation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hracik-php-create-image-from-text/health.svg)

```
[![Health](https://phpackages.com/badges/hracik-php-create-image-from-text/health.svg)](https://phpackages.com/packages/hracik-php-create-image-from-text)
```

###  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)
