{"id":17717908,"url":"https://github.com/ohmydevops/chalqoz","last_synced_at":"2025-07-29T02:04:48.200Z","repository":{"id":46301495,"uuid":"314990451","full_name":"ohmydevops/chalqoz","owner":"ohmydevops","description":"تبدیل کاراکتر اعداد فارسی به انگلیسی داخل جملات و بالعکس در پی‌اچ‌پی","archived":false,"fork":false,"pushed_at":"2023-09-04T19:32:51.000Z","size":29,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T14:13:16.606Z","etag":null,"topics":["php"],"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/ohmydevops.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":"2020-11-22T08:18:54.000Z","updated_at":"2023-09-14T21:35:03.000Z","dependencies_parsed_at":"2024-10-25T17:35:44.922Z","dependency_job_id":"5efd252e-84a1-42c8-a4f8-50e4efb80d95","html_url":"https://github.com/ohmydevops/chalqoz","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":"0.26315789473684215","last_synced_commit":"d3443e7f23f285b6cb12b5ec4729a1801c61b506"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ohmydevops/chalqoz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmydevops%2Fchalqoz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmydevops%2Fchalqoz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmydevops%2Fchalqoz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmydevops%2Fchalqoz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ohmydevops","download_url":"https://codeload.github.com/ohmydevops/chalqoz/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ohmydevops%2Fchalqoz/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267617643,"owners_count":24116208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["php"],"created_at":"2024-10-25T14:32:40.536Z","updated_at":"2025-07-29T02:04:48.175Z","avatar_url":"https://github.com/ohmydevops.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![unit-tests](https://github.com/ohmydevops/chalqoz/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/ohmydevops/chalqoz/actions/workflows/test.yml) [![StyleCI](https://github.styleci.io/repos/314990451/shield?branch=main)](https://github.styleci.io/repos/314990451?branch=main) [![Latest Stable Version](https://poser.pugx.org/amirbagh75/chalqoz/v)](//packagist.org/packages/amirbagh75/chalqoz) [![Total Downloads](https://poser.pugx.org/amirbagh75/chalqoz/downloads)](//packagist.org/packages/amirbagh75/chalqoz) [![License](https://poser.pugx.org/amirbagh75/chalqoz/license)](//packagist.org/packages/amirbagh75/chalqoz)\n\n## Chalqoz (چلغوز)\n\nThis package only converts Persian and English number characters to each other.\n\n\u003cdiv dir='rtl'\u003e\n    \nمواقع زیادی پیش میومد که نیاز داشتم کاراکترهای عددی رو به هم‌دیگه تبدیل کنم، مثلا  در بخش ورود شماره همراه کاربران، نمیخواستیم کاربر رو مجبور کنیم که کیبوردش حتما به زبان خاصی باشه، در نتیجه باید در سمت سرور این نرمالایز شدن به یک زبان خاص (مثلا کاراکترهای انگلیسی) صورت میگرفت. به‌خاطر همین استفاده‌های متوالی **چلغوز** رو درست کردم.\n    \n\u003c/div\u003e\n\n### How to install:\n```\ncomposer require amirbagh75/chalqoz\n```\n\n### Example\n```php\n\u003c?php\n\nrequire_once __DIR__ . '/../vendor/autoload.php';\n\nuse Amirbagh75\\Chalqoz\\Chalqoz;\n\n$newText = Chalqoz::convertEnglishNumbersToPersian('123456789');\necho($newText.\"\\n\"); // ۱۲۳۴۵۶۷۸۹\n\n$newText = Chalqoz::convertPersianNumbersToEnglish('۱۲۳۴۵۶۷۸۹');\necho($newText.\"\\n\"); // 123456789\n\n$newText = Chalqoz::convertPersianNumbersToEnglish('امیرحسین بقایی ۲۴ سال دارد.');\necho($newText.\"\\n\"); // امیرحسین بقایی 24 سال دارد\n\n$newText = Chalqoz::convertEnglishNumbersToPersian('امیرحسین بقایی 24 سال دارد.');\necho($newText.\"\\n\"); // امیرحسین بقایی ۲۴ سال دارد\n\n```\n\n### Methods:\n\n```php\nconvertEnglishNumbersToPersian(string $text): string\nconvertPersianNumbersToEnglish(string $text): string\n\n// Shortened version of functions names:\n\nenNumsToFa(string $text): string\nfaNumsToEn(string $text): string\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmydevops%2Fchalqoz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fohmydevops%2Fchalqoz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fohmydevops%2Fchalqoz/lists"}