PHPackages                             sentence/image-with-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. sentence/image-with-text

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

sentence/image-with-text
========================

Create images with embedded text and advanced typography

2.0.3(10y ago)013MITPHPPHP &gt;=5.3.0

Since Nov 14Pushed 10y agoCompare

[ Source](https://github.com/Sentence/image-with-text)[ Packagist](https://packagist.org/packages/sentence/image-with-text)[ Docs](http://github.com/sentence/image-with-text)[ RSS](/packages/sentence-image-with-text/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

Image with Text
===============

[](#image-with-text)

This class makes it super easy to render images with multiple, independently styled text blocks. You can control each text block's alignment, color, font, line height, and size. You may also position each text block with specific X and Y coordinates relative to the source image.

Installation
------------

[](#installation)

Install this library with [Composer](http://getcomposer.org). Add this to your `composer.json` file:

```
{
    "require": {
        "sentence/image-with-text": "~2.0"
    }
}

```

Then run `composer install`.

Usage
-----

[](#usage)

Here's a quick demonstration. You can find this full working demo in the `example/`directory.

```
