Download the PHP package nedka/vietnamese without Composer
On this page you can find all versions of the php package nedka/vietnamese. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nedka/vietnamese
More information about nedka/vietnamese
Files in nedka/vietnamese
Package vietnamese
Short Description The Vietnamese toolkit for PHP.
License MIT
Informations about the package vietnamese
🇻🇳 Vietnamese
The Vietnamese toolkit for PHP.
Requirements
- PHP 8.0+.
Installation
Require this package in your composer.json:
Import the package:
Usage
Format names:
Result: Việt Nam
Remove all accents:
Result: Viet Nam
Convert into NCR Decimal:
Result: Việt Nam
Run all available methods for correcting spelling errors:
Result: Thi tuổi Kỷ Tỵ
Correct wrong accent placements:
Result: Việt Nam
Correct wrong cases between "i" and "y":
Result: Thi tuổi Kỷ Tỵ
Sorting words:
Sorting by values in a string with delimiter:
Result: A, Á, À, Ă, Â
Sorting by values in a simple array:
Result: ['A', 'Á', 'À', 'Ă', 'Â']
Sorting a two-dimensional array by multiple keys in order:
Result:
Sorting people names:
Sorting by values in a string with delimiter:
Result: Nguyễn Anh Đang, Nguyễn Văn Đang, Nguyễn Văn Đàn, Nguyễn Văn Đàng, Nguyễn Văn Đảnh
Sorting by values in a simple array:
Result: ['Nguyễn Anh Đang', 'Nguyễn Văn Đang', 'Nguyễn Văn Đàn', 'Nguyễn Văn Đàng', 'Nguyễn Văn Đảnh']
Sorting a two-dimensional array by multiple keys in order:
Result:
Check a character in the Vietnamese alphabet:
Result: false
Scan and detect incorrect words in Vietnamese:
Result: ['Wales']
Otherwise, get correct words:
Result: ['Xứ', 'thắng', 'Nga', 'đứng', 'nhất', 'bảng', 'B']
Print the way to speak a Vietnamese text string:
Result: i ê tờ iêt, vờ iêt viêt nặng /việt/; a mờ am, nờ am /nam/; /việt nam/
Convert number to text:
Result: một triệu bốn trăm năm mươi hai nghìn ba trăm sáu mươi chín
License
Copyright (c) NEDKA. All rights reserved.
Licensed under the MIT License.
All versions of vietnamese with dependencies
ext-mbstring Version *