Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.
/ bidi Public archive

Add Support to Arabic language used in php cli and images

Notifications You must be signed in to change notification settings

helturkey/bidi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arbic bidirection php package

Arabic bidirection is the best and most accurate php package handling Arabic texts, now you can write text on images easy.

Installation

Use the php package manager composer to install.

composer req helturkey/bidi

Usage

use Hussein\Bidirection\ArabicUtf8;

# returns 'text'

public static function mb_wordwrap(string $string, int $width = 75, $break = "\n", bool $cut = false): string
{
      ........
}

$wrapped = ArabicUtf8::mb_wordwrap($text, $max_chars);


# convert method accepts array or string to convert and returns array or string as passed.

public static function convert(array|string $text, $forcertl = false): array|string
{
      ........
}

$converted = ArabicUtf8::convert($wrapped);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Add Support to Arabic language used in php cli and images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages