kamrandotpk/vowel-counter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-04