Aug 10, 2018
0 0

Auto Language Direction Detector – PHP Class

Written by



The Auto Language Direction Detector is one smart PHP class that can be used in multiple language sites to detect optimal text direction / adjustment of any language (or mixed language) in the world – right to left (RTL as Arabic, Hebrew, Persian, etc.) or left to right (LTR) to get the text of the website to look in the right direction / alignment. It even supports RTL numbers (Indian and Arabic) and all characters in the world, and it's smart as Facebook text direction and alignment.

Why use this script?

On many websites, the text looks ugly because they support multilingual text, and they do not provide more text directions especially when the sentence ends with a punctuation mark (see the example of the demo page), which looks ugly in this way.

When making a multilingual text in the HTML address of your site, use the text to be elegant and the direction / customization should be dynamic. The RTL language should appear automatically in RTL / Text-align style, and the LTR language should be displayed automatically in LTR direction / text style within the same page.


  • Smart direction detection of any text (LTR or RTL)

  • So easy to use

  • Smart algorithm to detect the direction of a mixed language text

  • Supports all world languages

  • Very fast execution

  • Complete PDF documentation

Help and Support

We will be very happy to provide you with the necessary help / support. Our response is very fast. If you need any customization, never hesitate to contact us.

Demo URL


Article Tags:
Article Categories:
Php Scripts
ThemeForest best selling themes

Jaeho Park completed a Master in Fine Arts at the Hongik University in 1999, followed by a Master in Photographic Studies at the University of Westminster in 2012. After working for many years as a university professor, designer and curator in South Korea.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.