mv / number-words-fr-bundle
将任何整数转换为法语单词
1.0.0
2023-08-10 06:25 UTC
Requires
- php: >=7.4.30
- mv/number-words-fr: >=1.0
- symfony/framework-bundle: ^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: >=9.6.10
This package is auto-updated.
Last update: 2024-09-10 08:52:34 UTC
README
此包为Symfony提供了一个将数字转换为法语单词的Twig扩展。请参阅PHP库
构建状态
安装
- 使用Composer安装此包
composer require mv/number-words-fr-bundle composer recipe:install mv/number-words-fr-bundle
配置
将以下内容添加到config/services.yaml文件中
imports: # Your others imports - { resource: '@MvNumberWordsFrBundle/config/autowire.yaml' }
所需配置
- PHP >= 7.4.30
- Symfony >= 5.4
- mv/number-words-fr >= 1.0
使用
安装包后,您可以使用Twig函数number_to_words_fr
将数字转换为单词。
{{ number_to_words_fr(123) }} // affiche cent vingt-trois
作者
此包由Michael VEROUX创建。要了解更多信息,请访问他的GitHub个人资料。
贡献
欢迎任何贡献、建议或错误报告!以下是如何贡献的说明:
- 在仓库中Fork。
- 为您的更改创建分支:
git checkout -b feature/my-feature
。 - 进行更改并提交:
git commit -am 'Added my feature'
。 - 将分支推送到远程:
git push origin feature/my-feature
。 - 向仓库的主分支创建一个pull request。
许可
此项目使用GNU通用公共许可证v3.0许可。有关详细信息,请参阅LICENSE文件。