{"id":13615008,"url":"https://github.com/mul14/terbilang-php","last_synced_at":"2025-05-11T18:14:53.506Z","repository":{"id":23068085,"uuid":"26421625","full_name":"mul14/terbilang-php","owner":"mul14","description":"Convert numbers into words in Indonesian language","archived":false,"fork":false,"pushed_at":"2022-03-25T11:45:10.000Z","size":18,"stargazers_count":65,"open_issues_count":1,"forks_count":18,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-10T17:11:37.693Z","etag":null,"topics":["convert-numbers","indonesian-language","php","terbilang"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/nasution/terbilang","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mul14.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":"2014-11-10T04:57:40.000Z","updated_at":"2024-05-07T05:41:32.000Z","dependencies_parsed_at":"2022-07-31T06:38:01.863Z","dependency_job_id":null,"html_url":"https://github.com/mul14/terbilang-php","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mul14%2Fterbilang-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mul14%2Fterbilang-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mul14%2Fterbilang-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mul14%2Fterbilang-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mul14","download_url":"https://codeload.github.com/mul14/terbilang-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253450233,"owners_count":21910514,"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":["convert-numbers","indonesian-language","php","terbilang"],"created_at":"2024-08-01T20:01:08.100Z","updated_at":"2025-05-10T17:11:43.468Z","avatar_url":"https://github.com/mul14.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# Terbilang\n\n[![Build Status](https://github.com/mul14/terbilang-php/workflows/build/badge.svg)](https://github.com/mul14/terbilang-php/actions/workflows/build.yml)\n[![Latest Stable Version](https://poser.pugx.org/nasution/terbilang/v/stable.svg)](https://packagist.org/packages/nasution/terbilang)\n[![Total Downloads](https://poser.pugx.org/nasution/terbilang/downloads.svg)](https://packagist.org/packages/nasution/terbilang)\n[![Latest Unstable Version](https://poser.pugx.org/nasution/terbilang/v/unstable.svg)](https://packagist.org/packages/nasution/terbilang)\n[![License](https://poser.pugx.org/nasution/terbilang/license.svg)](https://github.com/mul14/terbilang-php/blob/master/LICENSE)\n\nConvert numbers into words (and vice-versa) in Indonesian language.\n\n## Installation\n\nRun [composer](http://getcomposer.org) command\n\n```bash\ncomposer require nasution/terbilang\n```\n\n## Usage\n\nUsing the  `terbilang()` and `tersebut()` helper:\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\necho terbilang(421); // empat ratus dua puluh satu (string)\necho tersebut('empat ratus dua puluh satu'); // 421.0 (float)\n```\n\nOld examples:\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\necho \\Nasution\\Terbilang::convert(42); // empat puluh dua\necho \\Nasution\\Terbilang::revert('empat puluh dua');  // 42.0 (float)\n```\n\nYou can also import the class to make it more convenient to use:\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse Nasution\\Terbilang;\n\necho Terbilang::convert('123304'); // seratus dua puluh tiga ribu tiga ratus empat\necho Terbilang::revert('seratus dua puluh tiga ribu tiga ratus empat'); // 123304.0 (float)\n```\n\nAnother examples:\n\n```php\necho Terbilang::convert('1000000');          // satu juta\necho Terbilang::convert('1000000000');       // satu milyar\necho Terbilang::convert('1000000000000');    // satu triliun\necho Terbilang::convert('1000000000000000'); // satu kuadriliun\n\n\necho Terbilang::revert('satu juta');       // 1000000\necho Terbilang::revert('satu milyar');     // 1000000000\necho Terbilang::revert('satu triliun');    // 1000000000000\necho Terbilang::revert('satu kuadriliun'); // 1000000000000000\necho Terbilang::revert('seratus milyar tiga puluh juta dua puluh ribu sepuluh'); // 100030020010.0\n```\n\nYou can also use dot notation on `Terbilang::convert()` to separate the numbers:\n\n```php\necho Terbilang::convert('1.300.000');       // satu juta tiga ratus ribu\necho Terbilang::convert('100.030.020.010'); // seratus milyar tiga puluh juta dua puluh ribu sepuluh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmul14%2Fterbilang-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmul14%2Fterbilang-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmul14%2Fterbilang-php/lists"}