PHP code example of sudnonk / furigana-tsukeruyatsu

1. Go to this page and download the library: Download sudnonk/furigana-tsukeruyatsu 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/ */

    

sudnonk / furigana-tsukeruyatsu example snippets


$hoge = Furigana::convert("abAB012");
// えーびーエービーぜろいちに

$hoge2 = Furigana::convert("あいうえ");
// throws InvalidArgumentException.

$hoge2 = Furigana::convert("abc.;あいう,012", true);
// えーびーしー.;あいう,ぜろいちに

$hoge3 = Furigana::convert("abAB012",false, "、");
// えー、びー、エー、ビー、ぜろ、いち、に