{"id":18699791,"url":"https://github.com/hctilg/number-to-text","last_synced_at":"2025-04-12T08:18:33.284Z","repository":{"id":193669567,"uuid":"689271671","full_name":"hctilg/number-to-text","owner":"hctilg","description":"converts numbers to persian text.","archived":false,"fork":false,"pushed_at":"2023-09-18T15:55:57.000Z","size":72,"stargazers_count":27,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T08:18:24.500Z","etag":null,"topics":["api","number-to-text","persian-nlp","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/hctilg/number-to-persian-text","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/hctilg.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}},"created_at":"2023-09-09T09:38:59.000Z","updated_at":"2025-01-09T23:01:30.000Z","dependencies_parsed_at":"2023-09-09T11:36:33.887Z","dependency_job_id":null,"html_url":"https://github.com/hctilg/number-to-text","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":0.4,"last_synced_commit":"7b477bd93382df2b5fbfecbf42679ca0e276912d"},"previous_names":["hctilg/number-to-text"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hctilg%2Fnumber-to-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hctilg%2Fnumber-to-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hctilg%2Fnumber-to-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hctilg%2Fnumber-to-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hctilg","download_url":"https://codeload.github.com/hctilg/number-to-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537192,"owners_count":21120711,"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","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":["api","number-to-text","persian-nlp","php"],"created_at":"2024-11-07T11:34:24.061Z","updated_at":"2025-04-12T08:18:33.264Z","avatar_url":"https://github.com/hctilg.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# number-to-text\n\nconverts numbers to persian text.\n\n## Usage\n\n### Library\n\nSimply use:\n\n```php\n// checking the exists Library.\nif (!file_exists(\"number-to-text.php\")) {\n  copy('https://raw.githubusercontent.com/hctilg/number-to-text/main/number-to-text.php', 'number-to-text.php');\n}\n\n// require Library.\nrequire_once('number-to-text.php');\n\n$input = '\u003cYour Number\u003e';\n\n$output = number_to_text($input);\n\necho \"Text: $output\";\n```\n\n### API\n\nSend requests to `/number-to-text.php`.\n\n| Method |  Parameter  |\n|:---------|:---------:|\n| GET/POST | `string` number |\n\n![Preview](images/preview-api.jpg)\n\n### CLI\n\nrun php script:\n\n```bash\nphp number-to-text.php\n```\n\n![Preview](images/preview-cli.jpg)\n\n\u003cbr\u003e\n\n## Test\n\n### Web\n\nGo to the `./number-to-text` folder and run php localhost:\n\n```bash\nphp -S localhost:6040\n```\n\nthen open the following url\n\n```\nhttp://localhost:6040/test.php\n```\n\n![Preview](images/test-web.jpg)\n\n### CLI\n\nrun php script:\n\n```bash\nphp test.php\n```\n\n![Preview](images/test-cli.jpg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhctilg%2Fnumber-to-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhctilg%2Fnumber-to-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhctilg%2Fnumber-to-text/lists"}