imliam/php-indefinite-article
Composer 安装命令:
composer require imliam/php-indefinite-article
包简介
Determine the indefinite article of an English term
README 文档
README
Determine the indefinite article of an English term.
An indefinite article is the word that comes before nouns or noun equivalents in English, such as "a" or "an". If the word starts with a consonant sound, the article used should be "a" — for example "banana" becomes "a banana". If the word starts with a vowel sound, the article used should be "an" — for example "apple" becomes "an apple".
This is not as simple as checking whether the first character of the word is a vowel or consonant as that does not determine the sound pronounced when speaking the word.
This is a port of Eamon Nerbonne's original solution for the problem.
💾 Installation
You can install the package with Composer using the following command:
composer require imliam/php-indefinite-article:^1.0.0
📝 Usage
$word = new ImLiam\IndefiniteArticle\IndefiniteArticle('apple'); echo $word->parse(); // "an apple" echo $word->article(); // "an"
✅ Testing
composer test
🔖 Changelog
Please see the changelog file for more information on what has changed recently.
⬆️ Upgrading
Please see the upgrading file for details on upgrading from previous versions.
🎉 Contributing
Please see the contributing file and code of conduct for details on contributing to the project.
🔒 Security
If you discover any security related issues, please email liam@liamhammett.com instead of using the issue tracker.
👷 Credits
- Liam Hammett
- Eamon Nerbonne for the original solution
- All Contributors
♻️ License
The MIT License (MIT). Please see the license file for more information.
imliam/php-indefinite-article 适用场景与选型建议
imliam/php-indefinite-article 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 138.33k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「imliam」 「php-indefinite-article」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 imliam/php-indefinite-article 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 imliam/php-indefinite-article 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 imliam/php-indefinite-article 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An easier way to define custom Blade directives.
Utility class to validate, format and generate NHS numbers.
Utility class to validate, format and generate NHS numbers.
Ensure that a Gmail address is unique
Set a .env file variable from the command line
Present names for English-language applications.
统计信息
- 总下载量: 138.33k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-12