{"id":24764104,"url":"https://github.com/stillat/numeral-statamic","last_synced_at":"2026-07-06T17:31:00.881Z","repository":{"id":77969506,"uuid":"71517184","full_name":"Stillat/numeral-statamic","owner":"Stillat","description":"Fancy number formatter addon for @statamic","archived":false,"fork":false,"pushed_at":"2016-10-21T01:11:31.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-27T21:34:39.064Z","etag":null,"topics":[],"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/Stillat.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":"2016-10-21T01:06:19.000Z","updated_at":"2016-10-21T01:12:00.000Z","dependencies_parsed_at":"2023-03-12T02:43:52.330Z","dependency_job_id":null,"html_url":"https://github.com/Stillat/numeral-statamic","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Stillat/numeral-statamic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fnumeral-statamic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fnumeral-statamic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fnumeral-statamic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fnumeral-statamic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Stillat","download_url":"https://codeload.github.com/Stillat/numeral-statamic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Stillat%2Fnumeral-statamic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35201088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"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":[],"created_at":"2025-01-28T21:32:47.928Z","updated_at":"2026-07-06T17:31:00.862Z","avatar_url":"https://github.com/Stillat.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Numeral for Statamic\n\nNumeral for Statamic is a modifier addon that makes it easy to format numbers in your Statamic sites. It allows you to supply a simple-to-understand format to your numbers.\n\nAs an example, assuming the following data:\n\n```\nfavorite_number: 2300000000\n```\n\nAnd this template:\n\n```html\n\u003ch1\u003eThe favorite number is: {{ favorite_number | numeral:0,0.00 }}\u003c/h1\u003e\n```\n\nThe user would see this on the page:\n\n```\nThe favorite number is: 2,300,000,000.00\n```\n\nPretty cool. But we can do better. Imagine that the favorite number was really the size of a file (like, a really big file), we could even format that! Imagine the following example:\n\n```html\n\u003ch1\u003eThe file size is: {{ favorite_number | numeral:0,0.00 b }}\u003c/h1\u003e\n```\n\nNotice the `b` that was included in the format? The user would now see this on the page:\n\n```\nThe file size is: 2.14 GiB\n```\n\nThere's a lot more that can be done with formats; since Numeral for Statamic is based on https://github.com/Stillat/numeral.php, head over there to learn all about the different formats that are available (do note that verbatim formats won't work in Antlers).\n\n## Installation\n\nCopy the `Numeral` directory into your site's `addons` directory. Simple.\n\nSince this addon requires some additional dependencies, don't forget to issue the `php please addons:refresh` command!\n\n## Configuration\n\nThe formatter uses the `en-US` locale by default. There are many languages supported by Numeral (https://github.com/Stillat/numeral.php/tree/master/src/Languages). To change the locale that is being used, create a `numeral.yaml` file in your site's `settings/addons/` directory. Inside this `numeral.yaml` file, add the following:\n\n```yaml\nlocale: en-US\n```\n\nBe sure to change the `en-US` value to any valid locale code that Numeral supports.\n\n## License\n\nNumeral for Statamic is open-sourced software licensed under the MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillat%2Fnumeral-statamic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstillat%2Fnumeral-statamic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillat%2Fnumeral-statamic/lists"}