mamyraoby/phanisana
Composer 安装命令:
composer require mamyraoby/phanisana
包简介
Phanisana is a powerful PHP library that transforms numbers, dates, and times into their full-text equivalents in the Malagasy 🇲🇬 language.
README 文档
README
Phanisana is a powerful PHP library that transforms numbers, dates, and times into their full-text equivalents in the Malagasy 🇲🇬 language. Whether you're localizing applications, building educational tools, or creating systems with Malagasy users in mind, Phanisana offers a reliable and intuitive solution.
The name Phanisana is a blend of PHP and the Malagasy word fanisana, meaning "counting" or "calculation"—perfectly reflecting the library’s purpose and roots.
📚 Documentation
Full documentation is available at 👉 phanisana.readthedocs.io
📦 Installation
Install the package via Composer:
composer require mamyraoby/phanisana
🚀 Quick Start
First, make sure Composer’s autoloader is included (optional if already loaded by your framework):
// Include Composer's autoloader if it hasn't been loaded elsewhere require 'vendor/autoload.php'; use MamyRaoby\Phanisana\Converter\NumberConverter; $converter = new NumberConverter(); echo $converter->toWords(7); // fito echo $converter->toWords(69); // sivy amby enimpolo echo $converter->toWords(2025); // dimy amby roapolo sy roa arivo
Or use the global helper function for shorter syntax:
echo phanisana_convert_number(7); // fito echo phanisana_convert_number(2025); // dimy amby roapolo sy roa arivo
More usage examples and details are available in the Usage Guide.
✅ Features
- Converts integers into accurate Malagasy number words.
- Supports numbers from
0up toPHP_INT_MAX(usually 9,223,372,036,854,775,807 on 64-bit systems). - Handles large numeric scales such as:
- Millions (tapitrisa)
- Billions (lavitrisa)
- Trillions (arivo lavitrisa) and beyond
- Clean, extensible library
- Lightweight and framework-agnostic
🛠️ Contributing
Contributions are very welcome! Feel free to fork the repo, open issues, or submit pull requests. Bug reports, improvements, and suggestions are encouraged and appreciated.
📄 License
This project is open-source and licensed under the GNU GPL 3.0 License.
mamyraoby/phanisana 适用场景与选型建议
mamyraoby/phanisana 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20 次下载、GitHub Stars 达 12, 最近一次更新时间为 2025 年 04 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 mamyraoby/phanisana 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mamyraoby/phanisana 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 20
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2025-04-13