PHPackages                             nickcheek/handwriting - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nickcheek/handwriting

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nickcheek/handwriting
=====================

PHP Wrapper for handwriting.io

v1.0.7(6y ago)116MITPHPPHP ^7.4CI failing

Since Dec 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nickcheek/Handwritingio)[ Packagist](https://packagist.org/packages/nickcheek/handwriting)[ Docs](https://github.com/nickcheek/handwriting)[ RSS](/packages/nickcheek-handwriting/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

Handwriting.io PHP API Wrapper
==============================

[](#handwritingio-php-api-wrapper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fe0ca48c0e1490fbc4a3ab4f3a2a804e7726c6374dc905c9ebc1cacbf6e2eb9f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e69636b636865656b2f68616e6477726974696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nickcheek/handwriting)[![Quality Score](https://camo.githubusercontent.com/50118a7a93f0b677efdd92c89995c6374ca798bfa05e41c4c121e7ff1f719848/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e69636b636865656b2f68616e6477726974696e67696f2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nickcheek/handwritingio)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/a3150a5d45fa0923625a671a50be29106c48453811c5abf96a4dcfc829335857/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e69636b636865656b2f48616e6477726974696e67696f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nickcheek/Handwritingio/?branch=master)[![Build Status](https://camo.githubusercontent.com/1b81077f17214aa72136dc4bf1e2ee5cfeebd2bbbac5f7705f8842bbfb0c9a45/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e69636b636865656b2f48616e6477726974696e67696f2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/nickcheek/Handwritingio/build-status/master)

This is a simple php wrapper for the handwriting.io api. You'll need to register for an account and get your access and secret tokens.

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

[](#installation)

You can install the package via composer:

```
composer require nickcheek/handwriting
```

Usage
-----

[](#usage)

You can use renderPNGImage(), renderPNGString(), or renderPDF()

```
use Nickcheek\Handwriting\Writer;

$handwriting = new Writer($key, $secret);

//get random font
$random = $handwriting->getAllHandwriting(['limit'=> 50,'offset'=>1,'order_dir'=>'asc','order_by'=>'title']);

//build the url
$build = $handwriting->text('Testing the handwriting.io library')
                    ->font($random[array_rand($random)]->id)
                    ->build();

echo $handwriting->renderPNGImage($build);
```

[![Render](https://camo.githubusercontent.com/34ddae3caf91185419b639bbeaa950f452878b794e84bf305a9645e882b59c99/687474703a2f2f6e69636b636865656b2e636f6d2f696d616765732f6578616d706c652e706e67)](https://camo.githubusercontent.com/34ddae3caf91185419b639bbeaa950f452878b794e84bf305a9645e882b59c99/687474703a2f2f6e69636b636865656b2e636f6d2f696d616765732f6578616d706c652e706e67)

### Builder Class

[](#builder-class)

The builder class allows you to inject the settings you'd like for your image in a chainable format.

```
$build = $handwriting->text('text to output')
            ->font($fontID)
            ->height('50px')
            ->width('10px')
            ->size('25px')
            ->lineSpace()
            ->lineSpaceVariance()
            ->wordSpaceVariance()
            ->randomSeed()
            ->color()
            ->build();
```

Check [the docs](http://handwriting-api-docs.s3-website-us-east-1.amazonaws.com/#handwritings) if you'd like more information.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nicholas Cheek](https://github.com/nickcheek)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

6

Last Release

2341d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.0.3PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f33b515b89e91b73f02d7f38c436c85be7f9035c99f0cfa1ba78a1806045def?d=identicon)[nickcheek](/maintainers/nickcheek)

---

Top Contributors

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

---

Tags

nickcheekhandwriting

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nickcheek-handwriting/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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