This package can be used to compress text based on prior knowledge of the frequency of letters of texts in the same idiom. Currently there are class versions for the idioms: Arabic, English, French, German, Italian and Spanish. These classes can generate a compressed version of text strings that occupy in average about 70% of the original length. This class is part of Khaled Al-Shamaa project for PHP and Arabic language: http://www.ar-php.org