Download the PHP package thesmarter/tafqeet without Composer
On this page you can find all versions of the php package thesmarter/tafqeet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thesmarter/tafqeet
More information about thesmarter/tafqeet
Files in thesmarter/tafqeet
Package tafqeet
Short Description Convert numbers into Arabic words
License MIT
Homepage https://github.com/thesmarter/tafqeet
Informations about the package tafqeet
Tafqeet

Convert numbers into Arabic words – a PHP library for transforming amounts into Arabic text
📖 What Is Tafqeet?
Tafqeet is a PHP library that helps you integrate payments and receipts documents into your project by converting amounts into Arabic words. It makes it easy to add these words anywhere you need.
Example:
🚀 Installation
Via Composer (Recommended)
Manual Installation
- Download the repository or copy the
src/folder into your project -
Add autoloading in
composer.json: - Run:
⚡ Usage
Convert Number to Arabic Words
Using the Object Directly
Handling Errors
📊 Supported Currencies / العملات المدعومة
🌍 Arab Currencies / العملات العربية
| Code | Main | Main Plural | Sub | Sub Plural |
|---|---|---|---|---|
sar |
ريال | ريالاً | هللة | هللات |
sdg |
جنيه | جنيهًا | قرش | قروش |
egp |
جنيه | جنيهًا | قرش | قروش |
syp |
جنيه | جنيهًا | قرش | قروش |
lbp |
جنيه | جنيهًا | قرش | قروش |
iqd |
دينار | دينارًا | درهم | دراهم |
jod |
دينار | دينارًا | درهم | دراهم |
omr |
ريال | ريالًا | درهم | دراهم |
qar |
ريال | ريالًا | درهم | دراهم |
aed |
درهم | درهمًا | فلس | فلوس |
kwd |
دينار | دينارًا | درهم | دراهم |
bhd |
دينار | دينارًا | درهم | دراهم |
🌐 Western Currencies / العملات الغربية
| Code | Main | Main Plural | Sub | Sub Plural |
|---|---|---|---|---|
usd |
دولار | دولاراً | سنت | سنت |
eur |
يورو | يوروًا | سنت | سنت |
gbp |
جنيه إسترليني | جنيه إسترلينيًا | بيني | بنسات |
cad |
دولار | دولارًا | سنت | سنت |
aud |
دولار | دولارًا | سنت | سنت |
jpy |
ين | ينًا | — | — |
chf |
فرنك | فرنكًا | رابم | رابم |
You can easily add new currencies by modifying the CURRENCIES constant inside the class.
🔧 Requirements / المتطلبات
- PHP 8.1 or higher
- Composer (recommended)
📋 Examples / أمثلة إضافية
🏗️ Project Structure / هيكل المشروع
🤍 Contributing / المساهمة
Contributions are welcome! Feel free to open an Issue or Pull Request.
- Fork the project
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License / الرخصة
Licensed under the MIT License. See the LICENSE file for details.
🔗 Useful Links / روابط مفيدة
⚠️ Note / ملاحظة
The library currently works for numbers up to 999999.99.