# FriBiDi Functions

## Introduction

FriBiDi is a free implementation of the » Unicode Bidirectional Algorithm.

## Requirements

You must download and install the » FriBiDi package.

## Installation

This » PECL extension is not bundled with PHP. Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions. Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: » http://pecl.php.net/package/fribidi.

In order to use these functions you must compile PHP with Fribidi support by using the --with-fribidi[=DIR] configure option.

Windows users will enable php_fribidi.dll inside of php.ini in order to use these functions. The DLL for this PECL extension may be downloaded from either the » PHP Downloads page or from » http://pecl4win.php.net/

## Runtime Configuration

## Resource Types

This extension has no resource types defined.

## Predefined Constants

The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.

`FRIBIDI_CHARSET_UTF8` (integer)
  Unicode
`FRIBIDI_CHARSET_8859_6` (integer)
  Arabic
`FRIBIDI_CHARSET_8859_8` (integer)
  Hebrew
`FRIBIDI_CHARSET_CP1255` (integer)
  Hebrew/Yiddish
`FRIBIDI_CHARSET_CP1256` (integer)
  Arabic
`FRIBIDI_CHARSET_ISIRI_3342` (integer)
  Persian
`FRIBIDI_CHARSET_CAP_RTL` (integer)
  Used for test purposes, will treat CAPS as non-English letters
`FRIBIDI_RTL` (integer)
  Right to left
`FRIBIDI_LTR` (integer)
  Left to right
`FRIBIDI_AUTO` (integer)
  Autodetect the base direction