PHPackages                             thesoulless/reshapetext - 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. thesoulless/reshapetext

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

thesoulless/reshapetext
=======================

Reshapes bidirectional text

v1.2.1(9y ago)21001MITPHPPHP ~5.5|~7.0

Since Jan 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/thesoulless/reshapetext)[ Packagist](https://packagist.org/packages/thesoulless/reshapetext)[ Docs](https://github.com/thesoulless/reshapetext)[ RSS](/packages/thesoulless-reshapetext/feed)WikiDiscussions master Synced 1mo ago

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

Reshape bidirectional text for Laravel 5
========================================

[](#reshape-bidirectional-text-for-laravel-5)

اصلاح متن فارسی روی عکس
-----------------------

[](#اصلاح-متن-فارسی-روی-عکس)

[![Packagist](https://camo.githubusercontent.com/16e4cf5fbb95acca3b467c9f23bf31e8ddea3f1ee1ee2048602dda0288968ec5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746865736f756c6c6573732f72657368617065746578742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/thesoulless/reshapetext)[![license](https://camo.githubusercontent.com/7123c32787e013be5a8a13598ad01f562754637ed6141e89b02e85bf16d3e63e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6173686170652f6170697374617475732e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Reshapes a bidirectional text to use with imaging libraries (GD, etc.).

Install
-------

[](#install)

Via Composer

```
$ composer require thesoulless/reshapetext
```

Add

```
Thesoulless\Reshapetext\ReshapetextServiceProvider::class,

```

to `providers` and

```
'Reshapetext' => Thesoulless\Reshapetext\Facades\Reshapetext::class,

```

to `aliases` section of `config/app.php`

Usage
-----

[](#usage)

```
$text = "متن راست به چپ";
$text = \Reshapetext::reshape($text);
```

Credits
-------

[](#credits)

This Laravel package is based on [Persian-Log2Vis](https://github.com/omid/Persian-Log2Vis)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

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

Total

4

Last Release

3396d ago

PHP version history (2 changes)1.0.0PHP ~5.6|~7.0

v1.2.1PHP ~5.5|~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e03ba4bbf3e5ce3f404f8a005cd0a194a7d8e98f24b2c9a65e21244d2f3c945?d=identicon)[soulless](/maintainers/soulless)

---

Top Contributors

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

---

Tags

thesoullessreshapetext

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/thesoulless-reshapetext/health.svg)

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

PHPackages © 2026

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