Bangla String: Manipulate strings in the Bengali language

Recommend this page to a friend!
  Info   Example   View files (10)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 51 All time: 9,828 This week: 353
Version License PHP version Categories
banglastring 1.0MIT/X Consortium ...5.4Localization, PHP 5, Text processing
Description Author
This package is specific mainly for applications used in Bangladesh Bangladesh .

This package can manipulate strings in the Bengali language.

Currently it can translate Bengali text strings to Avro Unicode from Bijoy ANSI and vice-versa.

Innovation Award
PHP Programming Innovation award nominee
November 2017
Number 7
Text in the Bengali language can be represented using either Avro Unicode from Bijoy ANSI.

This package can convert Bengali text between the two possible representations.

Manuel Lemos
Picture of Miraz Mac
  Performance   Level  
Name: Miraz Mac <contact>
Classes: 10 packages by
Country: Bangladesh Bangladesh
Age: 25
All time rank: 230334 in Bangladesh Bangladesh
Week rank: 84 1 in Bangladesh Bangladesh
Innovation award
Innovation award
Nominee: 4x



A wannabe all-in-all Bangla String Manupulation Library!

Hey there! BanglaString is willing to be the full featured, all in all, "Bengali" text manipulation library, for PHP. Right now, at its core, it supports translating aka converting Bengali text to Avro Unicode from Bijoy ANSI and vice-versa. However, in future, we are planning to add more Translator to its core.

Install via composer

composer require mirazmac/bangla-string

Manual Install

Download the latest release from Releases. Extract and require src/autoload.php in your code. But it's highly recommended to use Composer.

require 'src/autoload.php';

Supported Translators


Takes Bengali strings written in Avro Unicode and translates into Bijoy ANSI


require 'vendor/autoload.php';

use MirazMac\BanglaString\BanglaString;
$wizard = new BanglaString('????? ??? ???? ????!');
echo $wizard->toBijoy();


Takes Bengali strings written in Bijoy ANSI and translates into Avro Unicode


require 'vendor/autoload.php';

use MirazMac\BanglaString\BanglaString;
$wizard = new BanglaString('Rvbvi Av?Q A?bK wKQz!');
echo $wizard->toAvro();
File Role Description
src (2 files, 1 directory)
composer.json Data Auxiliary data
example.php Example Example script
LICENSE Lic. License text Doc. Documentation

  Files  /  src  
File Role Description
Translator (4 files)
   autoload.php Example Example script
   BanglaString.php Class Class source

  Files  /  src  /  Translator  
File Role Description
   AvroUnicode.php Class Class source
   BijoyAnsi.php Class Class source
   CharacterMap.php Class Class source
   TranslatorInterface.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,828
This week:353

For more information send a message to info at phpclasses dot org.