mirazmac/bangla-string

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

1.1.1 2021-10-19 07:26 UTC

This package is auto-updated.

Last update: 2024-11-19 13:57:10 UTC


README

A wannabe all-in-all Bangla String manipulation/transformation library for PHP.

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

AvroToBijoy

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

Usage:

$translator = new \MirazMac\BanglaString\Translator\AvroToBijoy\Translator;
echo $translator->translate('জানার আছে অনেক কিছু');

BijoyToAvro

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

Usage:

$translator = new \MirazMac\BanglaString\Translator\BijoyToAvro\Translator;
echo $translator->translate('Rvbvi Av?Q A?bK wKQz!');