boatrace-sakura / converter
The Boatrace Sakura Converter.
1.1.2
2024-10-26 13:39 UTC
Requires
- php: ^8.0
- boatrace-sakura/trimmer: ^1.0 || ^2.0
- nesbot/carbon: ^2.0 || ^3.0
- php-di/php-di: ^6.0 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^9.0
README
Installation
composer require boatrace-sakura/converter
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use Boatrace\Sakura\Converter; var_dump(Converter::convertToTechniqueId('逃げ')); // int(1) var_dump(Converter::convertToTechniqueId('差し')); // int(2) var_dump(Converter::convertToTechniqueId('まくり')); // int(3) var_dump(Converter::convertToTechniqueId('まくり差し')); // int(4) var_dump(Converter::convertToTechniqueId('抜き')); // int(5) var_dump(Converter::convertToTechniqueId('恵まれ')); // int(6) var_dump(Converter::convertToTechniqueName(1)); // string(6) "逃げ" var_dump(Converter::convertToTechniqueName(2)); // string(6) "差し" var_dump(Converter::convertToTechniqueName(3)); // string(9) "まくり" var_dump(Converter::convertToTechniqueName(4)); // string(15) "まくり差し" var_dump(Converter::convertToTechniqueName(5)); // string(6) "抜き" var_dump(Converter::convertToTechniqueName(6)); // string(9) "恵まれ"
License
The Boatrace Sakura Converter is open source software licensed under the MIT license.