PHPackages                             nguyenhiep/vi\_encoder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. nguyenhiep/vi\_encoder

ActiveLibrary

nguyenhiep/vi\_encoder
======================

Chuyển đổi qua lại giữa một số định dạng bảng mã Việt Nam

v1.2(4y ago)042MITPHP

Since Jul 11Pushed 4y agoCompare

[ Source](https://github.com/nguyenhiepvan/ViEncoder)[ Packagist](https://packagist.org/packages/nguyenhiep/vi_encoder)[ RSS](/packages/nguyenhiep-vi-encoder/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

Cài đặt
-------

[](#cài-đặt)

Composer

```
composer require vuthaihoc/vi_encoder

```

Code supported
--------------

[](#code-supported)

```
private static $codes_supported = [
                                    "VIQR",
                                    "VPS-Win",
                                    "UNICODE",
                                    "TCVN-3"
                                ]

```

Kiểm tra có hỗ trợ hay không

```
Detector::isSupported($sourceEncode);

```

Detect bảng mã của đoạn văn

```
$using_code = Detector::usingCode($string);

```

Chuyển đổi giữa các bảng mã
---------------------------

[](#chuyển-đổi-giữa-các-bảng-mã)

```
$new_string = Converter::changeEncode($string, $targetCode, [$sourceCode = null]);

```

`$targetCode` và `$sourceCode` có thể dùng cont của Code cho chuẩn xác tên bảng mã. `$sourceCode` bỏ trống thì hệ thống sẽ tự động nhận diện bảng mã `$string` đang dùng.

```
const CHARSET_TCVN3 = 'TCVN-3';
const CHARSET_VNI_WIN = 'VNI-WIN';
const CHARSET_VIQR = 'VIQR';
const CHARSET_UNICODE = 'UNICODE';

```

Credit
------

[](#credit)

Tham khảo:

- Chuyển đổi giữa các bảng mã
- Tự động xác định bảng mã đang dùng của đoạn văn [http://e-cadao.com/VietUni\_files/vietuni.htm](http://e-cadao.com/VietUni_files/vietuni.htm)
- Tham chiếu ký tự tiếng Việt trong các bảng mã

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~893 days

Total

3

Last Release

1805d ago

Major Versions

v0.1.1 → v1.22021-06-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ee7ece29e66e7029d6b12d947a7d9714ae36346f21e92d767cfc797b86949d8?d=identicon)[nguyenhiepvan](/maintainers/nguyenhiepvan)

---

Top Contributors

[![vuthaihoc](https://avatars.githubusercontent.com/u/2509658?v=4)](https://github.com/vuthaihoc "vuthaihoc (3 commits)")[![nguyenhiepvan](https://avatars.githubusercontent.com/u/33170716?v=4)](https://github.com/nguyenhiepvan "nguyenhiepvan (2 commits)")

---

Tags

laravelunicodeencodertcvn3viqrvni-windows

### Embed Badge

![Health badge](/badges/nguyenhiep-vi-encoder/health.svg)

```
[![Health](https://phpackages.com/badges/nguyenhiep-vi-encoder/health.svg)](https://phpackages.com/packages/nguyenhiep-vi-encoder)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[unicodeveloper/laravel-emoji

A Laravel 5 Package for Using &amp; Working With Emojis

21024.9k](/packages/unicodeveloper-laravel-emoji)[stidges/laravel-country-flags

A Laravel wrapper for the stidges/country-flags package

28134.6k](/packages/stidges-laravel-country-flags)[base62/base62

base62 encoder and decoder also for big numbers with Laravel integration

169.5k](/packages/base62-base62)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
