PHP Classes

Bangla String: Manipulate strings in the Bengali language

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 55 All time: 10,593 This week: 455Up
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: 13 packages by
Country: Bangladesh Bangladesh
Age: 29
All time rank: 201429 in Bangladesh Bangladesh
Week rank: 44 Up1 in Bangladesh Bangladesh Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
require 'vendor/autoload.php';

use
MirazMac\BanglaString\BanglaString;

echo
BanglaString::translate('wgqvu n?`?qi PÂjZv e?Ü eªZx n?j Rxeb cwic?Y© n?e bvbv i?Oi dy?j| KyÅwUKv cÖfÄb k¼vi KviY jÊfÊ K?i hvq aivi A½b| w¶ß n?j mv½ n?e weÁR?b e?j kv?? n?j G eªþv?Ê evwÃZdj ?g?j| Avlv?p Ckvb ?Kv?b nVvr So D?V MMb ?g?N?Z Xv?K e?wó bv?g gv?V Elvi AvKv?k bv?g mܨvi Qvqv H ?`?Lv ?_?g ?M?Q cvivcv?i ?Lqv| kir FZy?Z Pvu` Av?jvq Askygvb myL `ytL cvkv cvwk mn Ae¯?vb| ?h R?j?Z Ck¦i Z?òv ?gUvq An english is fine? ?mB R?j?Z RxeKy?j webvk NUvq| ?ivM hw` ?`n ?Q?o g?b wM?q a?i Jl?ai mva¨ wK ev Zv?i my¯? K?i ? Hello Dear!')->toAvro();
?>
<hr>
<?php
echo BanglaString::translate('?????? ??????? ????? ????? ???
???? ???????? ??? ???? ???? ?????
????????? ???????? ?????? ????
???????? ??? ??? ???? ??????
??????? ??? ????? ??? ???????? ???
????? ??? ? ??????????? ????????? ?????
????? ???? ???? ???? ?? ???
??? ?????? ???? ?????? ???? ????
???? ????? ???? ???????? ????
? ???? ???? ???? ???????? ?????
??? ????? ???? ???? ???????
??? ???? ???? ???? ?? ????????
?? ????? ????? ?????? ????? An english is fine?
??? ????? ??????? ????? ?????
??? ??? ??? ???? ??? ???? ???
????? ????? ?? ?? ???? ????? ???!'
)->toBijoy();
?>


Details

BanglaString

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

AvroUnicode

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

Usage:

require 'vendor/autoload.php';

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

BijoyAnsi

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

Usage:

require 'vendor/autoload.php';

use MirazMac\BanglaString\BanglaString;
$wizard = new BanglaString('Rvbvi Av?Q A?bK wKQz!');
echo $wizard->toAvro();

  Files folder image Files (10)  
File Role Description
Files folder imagesrc (2 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (10)  /  src  
File Role Description
Files folder imageTranslator (4 files)
  Accessible without login Plain text file autoload.php Example Example script
  Plain text file BanglaString.php Class Class source

  Files folder image Files (10)  /  src  /  Translator  
File Role Description
  Plain text file AvroUnicode.php Class Class source
  Plain text file BijoyAnsi.php Class Class source
  Plain text file CharacterMap.php Class Class source
  Plain text file TranslatorInterface.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:55
This week:0
All time:10,593
This week:455Up