{"id":23505347,"url":"https://github.com/nabeghe/shortnum-php","last_synced_at":"2026-01-28T21:31:41.378Z","repository":{"id":264379509,"uuid":"877309482","full_name":"nabeghe/shortnum-php","owner":"nabeghe","description":"Shortening numbers and using abbreviated letters in PHP.","archived":false,"fork":false,"pushed_at":"2025-07-03T14:12:29.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-06T21:42:31.032Z","etag":null,"topics":["number","php","php-lib","php-libraries","php-library","short-numbers","shortnum","shortnumber"],"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/nabeghe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-10-23T12:50:30.000Z","updated_at":"2025-07-03T14:12:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c2897ce9-af0b-4ecc-a5a2-7c5df8ee47f6","html_url":"https://github.com/nabeghe/shortnum-php","commit_stats":null,"previous_names":["nabeghe/shortnum-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/nabeghe/shortnum-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Fshortnum-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Fshortnum-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Fshortnum-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Fshortnum-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nabeghe","download_url":"https://codeload.github.com/nabeghe/shortnum-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nabeghe%2Fshortnum-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28852748,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: 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":["number","php","php-lib","php-libraries","php-library","short-numbers","shortnum","shortnumber"],"created_at":"2024-12-25T09:32:24.659Z","updated_at":"2026-01-28T21:31:41.366Z","avatar_url":"https://github.com/nabeghe.png","language":"PHP","readme":"# Shortnum for PHP ≥ 5.6\n\n\u003e Shortening numbers and using abbreviated letters in PHP.\n\nWith Shortnum, you can easily display numbers like 1000 as 1K.\nShortnum supports the following units:\n\n`'K', 'M', 'B', 'T', 'Qa', 'Qi', 'Sx', 'Sp', 'Oc', 'No', 'Dc', 'Ud', 'Dd', 'Td', 'Qa', 'Qi', 'Sx', 'Sp',\n'Oc', 'No'`\n\n## 🫡 Usage\n\n### 🚀 Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require nabeghe/colory\n```\n\n#### Example:\n\n```php\nuse Nabeghe\\Shortnum\\Shortnum;\n\necho \"1000 =\u003e \".Shortnum::short(1000).\"\\n\"; // 1K\necho \"1010 =\u003e \".Shortnum::short(1010).\"\\n\"; // 1.01K\necho \"1049 =\u003e \".Shortnum::short(1049).\"\\n\"; // 1.05K\necho \"1050 =\u003e \".Shortnum::short(1050).\"\\n\"; // 1.05K\necho \"1099 =\u003e \".Shortnum::short(1099).\"\\n\"; // 1.1K\necho \"1100 =\u003e \".Shortnum::short(1100).\"\\n\"; // 1.1K\necho \"10000 =\u003e \".Shortnum::short(10000).\"\\n\"; // 10K\necho \"10500 =\u003e \".Shortnum::short(10500).\"\\n\"; // 10.5K\necho \"15000 =\u003e \".Shortnum::short(15000).\"\\n\"; // 15K\necho \"100000 =\u003e \".Shortnum::short(100000).\"\\n\"; // 100K\necho \"1000000 =\u003e \".Shortnum::short(1000000).\"\\n\"; // 1M\necho \"1000000000 =\u003e \".Shortnum::short(1000000000).\"\\n\"; // 1B\necho \"1000000000 =\u003e \".Shortnum::short(1000000000).\"\\n\"; // 1B\necho \"1000000000000 =\u003e \".Shortnum::short(1000000000000).\"\\n\"; // 1T\necho \"1000000000000000 =\u003e \".Shortnum::short(1000000000000000).\"\\n\"; // 1Qa\necho \"1000000000000000000 =\u003e \".Shortnum::short(1000000000000000000).\"\\n\"; // 1Qi\necho \"1000000000000000000000 =\u003e \".Shortnum::short(1000000000000000000000).\"\\n\"; // 1Sx\necho \"1000000000000000000000000 =\u003e \".Shortnum::short(1000000000000000000000000).\"\\n\"; // 1Sp\necho \"1000000000000000000000000000 =\u003e \".Shortnum::short(1000000000000000000000000000).\"\\n\"; // 1Oc\necho \"1000000000000000000000000000000 =\u003e \".Shortnum::short(1000000000000000000000000000000).\"\\n\"; // 1No\n```\n\n## 📖 License\n\nLicensed under the MIT license, see [LICENSE.md](LICENSE.md) for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeghe%2Fshortnum-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnabeghe%2Fshortnum-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnabeghe%2Fshortnum-php/lists"}