Installing php decimal entension for laravel app on DO app platform

I created a package that I use in a laravel application that requires ext-decimal to be installed on the machine.

I have ext-decimal in my composer.json file

  "require": {
      "php": "^8.1",
      "ext-decimal": "*",

I get this error when I deploy it

incloud/decimal v1.0.6 requires ext-decimal * -> could not be found in any version, there may be a typo in the package name.

I’m not using Dockerfile only composer.json

How can I get ext-decimal installed on the app platform?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
September 6, 2023
Accepted Answer

Hi there,

I think that the problem might be that the ext-decimal is only supported for PHP 7, at least according to this open issue on their official repository here:

It looks like the extension has not been updated in a while, the last commits made to that repository were 3-4 years ago.

Is your local development environment using PHP 8.1 together with ext-decimal?

As the extension has not been maintained lately, it might be best to use an alternative extension or a native PHP function in your package as it might become a problem in the future for other platforms as well.



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel