{"id":13462519,"url":"https://github.com/php-decimal/ext-decimal","last_synced_at":"2026-04-11T05:01:20.098Z","repository":{"id":43723671,"uuid":"152887533","full_name":"php-decimal/ext-decimal","owner":"php-decimal","description":"Correctly-rounded, arbitrary precision decimal floating-point arithmetic in PHP","archived":false,"fork":false,"pushed_at":"2026-04-11T01:42:15.000Z","size":368,"stargazers_count":345,"open_issues_count":28,"forks_count":21,"subscribers_count":14,"default_branch":"master","last_synced_at":"2026-04-11T03:25:19.218Z","etag":null,"topics":["arbitrary-precision","decimal","php"],"latest_commit_sha":null,"homepage":"https://php-decimal.github.io/","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/php-decimal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-10-13T15:46:50.000Z","updated_at":"2026-04-11T01:42:21.000Z","dependencies_parsed_at":"2024-01-20T08:28:07.125Z","dependency_job_id":"6553ddbd-b98a-48fd-b951-41f9c6afccec","html_url":"https://github.com/php-decimal/ext-decimal","commit_stats":null,"previous_names":["php-decimal/extension"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/php-decimal/ext-decimal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-decimal%2Fext-decimal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-decimal%2Fext-decimal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-decimal%2Fext-decimal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-decimal%2Fext-decimal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-decimal","download_url":"https://codeload.github.com/php-decimal/ext-decimal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-decimal%2Fext-decimal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["arbitrary-precision","decimal","php"],"created_at":"2024-07-31T12:00:50.671Z","updated_at":"2026-04-11T05:01:20.033Z","avatar_url":"https://github.com/php-decimal.png","language":"PHP","funding_links":[],"categories":["Uncategorized","PHP"],"sub_categories":["Uncategorized"],"readme":"# PHP Decimal Extension\n\n\n[![PECL](https://img.shields.io/static/v1?message=1.4.0\u0026label=PECL\u0026color=blue\u0026style=flat\u0026logo=php)](https://pecl.php.net/package/decimal/1.3.1)\n[![Build Status](https://travis-ci.org/php-decimal/ext-decimal.svg?branch=1.3)](https://travis-ci.org/php-decimal/ext-decimal)\n\n[![PECL](https://img.shields.io/static/v1?message=2.0.0-alpha\u0026label=PECL\u0026color=blue\u0026style=flat\u0026logo=php)](https://pecl.php.net/package/decimal/2.0.0)\n[![Build Status](https://travis-ci.org/php-decimal/ext-decimal.svg?branch=2.0\u0026style=flat)](https://travis-ci.org/php-decimal/ext-decimal)\n[![Build status](https://ci.appveyor.com/api/projects/status/lg5nw5tqgpmv1c33?svg=true)](https://ci.appveyor.com/project/rtheunissen/php-decimal)\n\nCorrectly-rounded, arbitrary-precision decimal arithmetic for PHP\n\n## Documentation\n\nSee [php-decimal.github.io](https://php-decimal.github.io)\n\n## Requirements\n\n- PHP \u003e= 7.2\n- [libmpdec \u003e= 2.4](http://www.bytereef.org/mpdecimal/download.html)\n\n### Installing libmpdec header files\n\nFor Fedora:\n```shell\nsudo dnf install mpdecimal-devel\n```\n\n## Install\n\n```\npecl install decimal\n```\n\n**Alpha**:\n\n```\npecl install decimal-alpha\n```\n\nWindows users can find *.dll* files under [releases](https://github.com/php-decimal/ext-decimal/releases).\n\n## Enable\n\nYou can do this temporarily using `php -dextension=decimal.so` or by adding `extension=decimal.so` to your INI. If you manage PHP with [phpbrew](https://github.com/phpbrew/phpbrew), you can use `phpbrew ext enable decimal`.\n\n## Tests\n\n```\nphp run-tests.php -P -q\n```\n\n## Build from source\n\nBuild a debug build of ``php-src`` with a prefix as follows:\n```shell\n./configure --disable-all --enable-debug --prefix /path/to/custom-php/\n```\n\nWithin the folder of this extension first run ``phpize`` and then\n\n```shell\n./configure --with-php-config=/path/to/custom-php/bin/php-config CFLAGS=\"-Wfatal-errors -Wall -Wpedantic -Wextra -Wno-unused-parameter -Werror\"\n```\n\nAnd finally:\n```shell\nmake -jN\n```\nWhere ``N`` is the number of cores available for compilation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-decimal%2Fext-decimal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-decimal%2Fext-decimal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-decimal%2Fext-decimal/lists"}