定制 mv/number-words-fr 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mv/number-words-fr

最新稳定版本:1.0.1

Composer 安装命令:

composer require mv/number-words-fr

包简介

Convert to words any integer in french

README 文档

README

Converts numbers into words in French (FR_fr) up to 999,999,999,999,999,999.

Build Status

License Build Status Latest Stable Version PHP Version Require Test Coverage Maintainability

Installation

To install this library, you can add it as a dependency to your project using Composer:

composer require mv/number-words-fr-converter

Usage

To use the library, create an instance of IntToWordsFrConverter and call the convert method:

use Mv\NumberWordsFr\Converter\IntToWordsFrConverter;

$converter = new IntToWordsFrConverter();
$result = $converter->convert(12345);

echo $result; // "douze mille trois cent quarante-cinq"

Other locales

use Mv\NumberWordsFr\Converter\IntToWordsFrBeConverter;
use Mv\NumberWordsFr\Converter\IntToWordsFrCaConverter;

$converter = new IntToWordsFrBeConverter();
$resultBe = $converter->convert(72);
$converter = new IntToWordsFrCaConverter();
$resultCa = $converter->convert(72);

echo $resultBe; // "Septante-deux"
echo $resultCa; // "Soixante-douze"

Exists with Fr, FrBe, FrCh, FrCa, FrLu, FrMa, FrTn

Methods

convert(int $int): string

Converts an integer into words.

  • $int: The integer to convert into words.

Contributing

Any contributions, suggestions, or bug reports are welcome! Here's how you can contribute:

  1. Fork the repository.
  2. Create a branch for your changes: git checkout -b feature/my-feature.
  3. Make your changes and commit: git commit -am 'Added my feature'.
  4. Push to the branch: git push origin feature/my-feature.
  5. Create a pull request to the concerned branch of the repository.

License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

统计信息

  • 总下载量: 89
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2023-08-09