PHP code example of vocolboy / laravel-vietnamese-convert

1. Go to this page and download the library: Download vocolboy/laravel-vietnamese-convert library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vocolboy / laravel-vietnamese-convert example snippets


use \Illuminate\Support\Str;

Str::of('ĐẶNG QUỐC HUY')->convertVnToEn(); 

Str::convertVnToEn('ĐẶNG QUỐC HUY');

convert_vn_to_en('ĐẶNG QUỐC HUY');

//DANG QUOC HUY