pnlinh / vietnamese-converter
一个将越南字符转换为不同字符集的PHP类
v1.2
2019-09-09 04:16 UTC
Requires (Dev)
- phpunit/phpunit: ^8.4@dev
This package is auto-updated.
Last update: 2024-09-09 15:36:40 UTC
README
安装
使用composer安装此包。
composer require pnlinh/vietnamese-converter
使用方法
<?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.
可用方法
- 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
测试
composer test
鸣谢
许可
MIT许可 (MIT)