pnlinh / vietnamese-converter
A php class that converts Vietnamese characters into different character set
Installs: 63
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 3
pkg:composer/pnlinh/vietnamese-converter
Requires (Dev)
- phpunit/phpunit: ^8.4@dev
This package is auto-updated.
Last update: 2025-10-09 18:18:07 UTC
README
Installation
Require this package with composer.
composer require pnlinh/vietnamese-converter
Usage
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pnlinh\VietnameseConverter\VietnameseConverter; $output = VietnameseConverter::make() ->convert('Tôi tên là Ngô Chí Dũng. Người đã tạo ra cái phần mềm này.'); echo $output; // Toi ten la Ngo Chi Dung. Nguoi da tao ra cai phan mem nay.
Available Methods
- convert($input) - convert($input, 'unicode', 'virq'); - convert($input, 'unicode', 'vnet'); - convert($input, 'unicode', 'vni'); - convert($input, 'unicode', 'ascii'); - tolower($input) - toupper($input) - ucfirst($input) - ucwords($input) $input is a unicode string
Test
composer test
Credits
License
The MIT License (MIT)