PHPackages                             turbo/text2image - 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. turbo/text2image

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

turbo/text2image
================

支持中文，文字转图片，支持自动断行，加阴影，text2Image, 文字生成图片

v0.2(6y ago)028MITPHPPHP &gt;=5.6

Since May 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ziguilp/turbo-text2Image)[ Packagist](https://packagist.org/packages/turbo/text2image)[ RSS](/packages/turbo-text2image/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

### 支持中文，文字转图片，支持自动断行，加阴影

[](#支持中文文字转图片支持自动断行加阴影)

#### 使用说明

[](#使用说明)

```
composer require turbo-text2image

```

```
use Turbo\text2Image\text2Image;

// 指定容器宽高
$width = 800;
$height = 600;
// 当不指定宽时，将不自动断行
// 当指定高时，文字超出部分将不会显示
$image = new text2Image($width, $height);

$text =
MSG_EOF;

$image->setFontSize(30)->setColor("red")->setShadow([
    'x'=> 2,
    'y'=> 2,
    'color' => "#0ff|0.8"
])->generate($text)
    ->save('1.png');
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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 ~0 days

Total

2

Last Release

2252d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20342546?v=4)[turbo](/maintainers/ziguilp)[@ziguilp](https://github.com/ziguilp)

### Embed Badge

![Health badge](/badges/turbo-text2image/health.svg)

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

###  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)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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