{"id":25531933,"url":"https://github.com/m-ah07/tafqit-php","last_synced_at":"2026-02-10T20:07:06.490Z","repository":{"id":265799406,"uuid":"896660455","full_name":"m-ah07/tafqit-php","owner":"m-ah07","description":"A PHP-based service for converting numbers into text, supporting Arabic and English.","archived":false,"fork":false,"pushed_at":"2024-12-24T05:32:53.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-22T11:36:06.140Z","etag":null,"topics":["codefordevelopers","numbertowords","opensource","opensourcecommunity","php","phpdevelopment","phpprojects","programming","tafqit"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/m-ah07.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-01T00:34:25.000Z","updated_at":"2024-12-24T05:32:56.000Z","dependencies_parsed_at":"2025-02-12T17:02:52.202Z","dependency_job_id":null,"html_url":"https://github.com/m-ah07/tafqit-php","commit_stats":null,"previous_names":["marwan-ahmed-23/tafqit-php","m-ah07/tafqit-php"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/m-ah07/tafqit-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Ftafqit-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Ftafqit-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Ftafqit-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Ftafqit-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/m-ah07","download_url":"https://codeload.github.com/m-ah07/tafqit-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/m-ah07%2Ftafqit-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29314704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T17:48:59.043Z","status":"ssl_error","status_checked_at":"2026-02-10T17:45:37.240Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codefordevelopers","numbertowords","opensource","opensourcecommunity","php","phpdevelopment","phpprojects","programming","tafqit"],"created_at":"2025-02-20T01:42:21.169Z","updated_at":"2026-02-10T20:07:06.466Z","avatar_url":"https://github.com/m-ah07.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tafqit (PHP): Number to Text Conversion for Multiple Languages\n\nTafqit-PHP is a PHP-based service designed to convert numerical values into readable text. Supporting both Arabic and English, this lightweight and modular solution can be easily extended to accommodate additional languages.\n\n---\n\n## 🚀 Features\n\n- Converts numbers into text in Arabic and English.\n- Handles large numbers with precision.\n- Supports customization for currency and subunit formatting.\n- Lightweight and easy to integrate into any PHP project.\n\n## Requirements\n\n- PHP 7.0 or higher.\n- Multibyte string extension (enabled by default in PHP).\n\n## 🔧 Installation\n\n1. Clone or download the repository.\n2. Include the `src/Tafqit.php` file in your project:\n  \n    ```bash\n    require_once 'path-to-src/Tafqit.php';\n    ```\n\n## 📖 Usage\n\nHere's an example of how to use `Tafqit-PHP` to convert numbers to text:\n\n```bash\n\u003c?php\nrequire_once 'src/Tafqit.php';\n\n$tafqit = new Tafqit();\necho $tafqit-\u003enumberToText(\"٢٣٤٥\", 'ar'); // Outputs: ألفان وثلاثمائة وخمسة وأربعون\n```\n\n### Usage with English Numbers\n\n```bash\n\u003c?php\nrequire_once 'src/Tafqit.php';\n\n$tafqit = new Tafqit();\necho $tafqit-\u003enumberToText(\"2345\", 'en'); // Outputs: Two thousand three hundred forty-five\n```\n\n## Currency Example\n\nYou can customize it to include currency and subunit formatting for specific languages.\n\n## 📂 Folder Structure\n```plaintext\ntafqit-php/\n├── src/\n│   └── Tafqit.php\n├── examples/\n│   └── example.php\n├── tests/\n│   └── TafqitTest.php\n├── LICENSE\n├── .gitignore\n└── README.md\n```\n\n## Tests\n\nRun the tests using PHPUnit:\n\n```bash\nphpunit tests/TafqitTest.php\n```\n\n## 🛠️ Contributing\n\nWe welcome contributions! Follow these steps to contribute:\n\n1. Fork the repository.\n2. Create a new branch:\n  \n    ```bash\n    git checkout -b feature-branch\n    ```\n    \n3. Make your changes and commit them:\n  \n    ```bash\n    git commit -m \"Add new feature\"\n    ```\n\n4. Push to your branch:\n\n    ```bash\n    git push origin feature-branch\n    ```\n\n5. Open a Pull Request.\n\n## 🌟 Show Your Support\nIf you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ah07%2Ftafqit-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fm-ah07%2Ftafqit-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fm-ah07%2Ftafqit-php/lists"}