PHP code example of bvp / converter

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

    

bvp / converter example snippets




oatrace\Venture\Project\Converter;

var_dump(Converter::techniqueIdByName('逃げ')); // int(1)
var_dump(Converter::techniqueIdByName('差し')); // int(2)
var_dump(Converter::techniqueIdByName('まくり')); // int(3)
var_dump(Converter::techniqueIdByName('まくり差し')); // int(4)
var_dump(Converter::techniqueIdByName('抜き')); // int(5)
var_dump(Converter::techniqueIdByName('恵まれ')); // int(6)

var_dump(Converter::techniqueNameById(1)); // string(6) "逃げ"
var_dump(Converter::techniqueNameById(2)); // string(6) "差し"
var_dump(Converter::techniqueNameById(3)); // string(9) "まくり"
var_dump(Converter::techniqueNameById(4)); // string(15) "まくり差し"
var_dump(Converter::techniqueNameById(5)); // string(6) "抜き"
var_dump(Converter::techniqueNameById(6)); // string(9) "恵まれ"