PHPackages                             afaztech/glyphify - 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. afaztech/glyphify

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

afaztech/glyphify
=================

A PHP font generator supporting Persian and Latin scripts with 100+ unique font styles

1.0.0(today)00MITPHPPHP &gt;=7.4

Since Jun 19Pushed todayCompare

[ Source](https://github.com/AfazTech/Glyphify)[ Packagist](https://packagist.org/packages/afaztech/glyphify)[ RSS](/packages/afaztech-glyphify/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Glyphify
========

[](#glyphify)

PHP font generator supporting Persian and Latin with 50+ unique font styles.

Overview
--------

[](#overview)

Glyphify is a comprehensive text styling library that transforms ordinary text into various Unicode-based font styles. It supports both Persian and Latin scripts, offering over 50 different font mappings including mathematical symbols, decorative styles, and specialized Persian fonts. Perfect for social media posts, creative writing, and any application requiring styled text.

Donate
------

[](#donate)

[ ![](https://camo.githubusercontent.com/6172dcfba6291a8708f0f4162f69dbd651851f1d047ec49573514d5e59127bed/687474703a2f2f7777772e636f6666656574652e69722f696d616765732f627574746f6e732f6c656d6f6e63686966666f6e2e706e67)](http://www.coffeete.ir/afaz)Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

Features
--------

[](#features)

- **Multi-script Support**: Fully supports Persian (Arabic script) and Latin text
- **50+ Font Styles**: Includes bold, italic, circled, squared, fraktur, script, and more
- **Persian Specialization**: Dedicated Persian fonts with proper character mapping and contextual forms
- **Smart Text Detection**: Automatically detects Persian, English, or mixed text
- **Finglish Transliteration**: Converts Persian text to Finglish (Persian in Latin script)
- **Flexible Output**: Generate styled text as array, JSON, or CSV
- **Configurable Options**: Control Persian, Latin, Finglish, and all-fonts modes
- **Lightweight**: No external dependencies, pure PHP implementation

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- JSON extension (enabled by default)
- Multibyte string support (PHP's mbstring extension)

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

[](#installation)

Install via Composer:

```
composer require afaztech/glyphify
```

Or clone the repository directly:

```
git clone https://github.com/AfazTech/glyphify.git
cd glyphify
composer install
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
