{"id":34650327,"url":"https://github.com/roaatech/php-string-numbers","last_synced_at":"2026-05-25T00:36:11.284Z","repository":{"id":56994601,"uuid":"54529938","full_name":"roaatech/php-string-numbers","owner":"roaatech","description":"A conversion class from text to numbers and vice versa","archived":false,"fork":false,"pushed_at":"2016-03-23T10:18:32.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T17:44:01.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/roaatech.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}},"created_at":"2016-03-23T04:05:59.000Z","updated_at":"2016-05-05T02:02:14.000Z","dependencies_parsed_at":"2022-08-21T10:40:45.557Z","dependency_job_id":null,"html_url":"https://github.com/roaatech/php-string-numbers","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/roaatech/php-string-numbers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Fphp-string-numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Fphp-string-numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Fphp-string-numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Fphp-string-numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roaatech","download_url":"https://codeload.github.com/roaatech/php-string-numbers/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roaatech%2Fphp-string-numbers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33456263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-24T19:21:36.376Z","status":"ssl_error","status_checked_at":"2026-05-24T19:21:10.562Z","response_time":57,"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":[],"created_at":"2025-12-24T17:55:30.637Z","updated_at":"2026-05-25T00:36:11.279Z","avatar_url":"https://github.com/roaatech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-string-numbers\nA conversion class from text to numbers and vice versa\n\n# Install\n## Using composer\n`composer require itvisionsy/php-string-numbers`\n## Direct download\nIt is only 1 class! Copy and paste it or download it directly!\n[StringNumbers PHP Class](./src/StringNumbers.php)\n\n# How to use\nThere are two public static methods \n * `::numbersToWords($string)` converts all digits numbers to written numbers.\n * `::wordsToNumbers($string)` converts all written numbers to word numbers.\n## Note\nsome space characters may get added or removed by the conversion method.\nUse with care!\n\n# Examples\n```PHP\nuse ItvisionSy\\StringNumbers\\StringNumbers;\n\necho StringNumbers::wordsToNumbers('one hundred fifty five');\n//155\n\necho StringNumbers::wordsToNumbers('There are two hundred fifty five thousand two hundred twelve leaves on the tree');\n//There are 255212 leaves on the tree\n\necho StringNumbers::wordsToNumbers('Ten men bought 2 hundred devices in less than a week for more than two million dollars');\n//10 men bought 200 devices in less than a week for more than 2000000 dollars\n\necho StringNumbers::numbersToWords('155');\n//one hundred fifty five\n\necho StringNumbers::numbersToWords('There are 366 days in a leap year and 2016 was a leap year');\n//There are three hundred sixty six days in a leap year two thousand sixteen was a leap year\n```\n\n# License\nPHP String Numbers project is under the [MIT License](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaatech%2Fphp-string-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froaatech%2Fphp-string-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froaatech%2Fphp-string-numbers/lists"}