kamrandotpk/vowel-counter
Composer 安装命令:
composer require kamrandotpk/vowel-counter
包简介
A composer package that counts the number of vowels in a given file or string
README 文档
README
This package allows you to count the vowels in a file or a string.
Installation:
composer require kamrandotpk/vowel-counter
Example usage:
<?php require_once 'vendor/autoload.php'; $vowelCounter = new \VowelCounter\VowelCounter(); $text = "There are 11 vowels in this sentence."; // count vowels in a file $file = new \SplTempFileObject(); $file->fwrite($text); echo $vowelCounter->countVowelsInFile($file); // outputs 11 // counts vowels in a string echo $vowelCounter->countVowelsInAString($text); // outputs 11
Please see the included Unit Tests for more example usage.
Composer Package URL: https://packagist.org/packages/kamrandotpk/vowel-counter
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-04