Question

How do I add bcmath to the apps that I deployed to the Apps Platform?

agm   | 12:26:51 Reusing cached node_modules
agm   | 12:27:00 -----> Bootstrapping...
agm   | 12:27:11 -----> Installing platform packages...
agm   | 12:27:14        - php (7.4.12)
agm   | 12:27:25        - ext-gd (bundled with php)
agm   | 12:27:25        - ext-mbstring (bundled with php)
agm   | 12:27:25        - apache (2.4.46)
agm   | 12:27:32        - nginx (1.18.0)
agm   | 12:27:36 -----> Installing dependencies...
agm   | 12:27:36        Composer version 1.10.10 2020-08-03 11:35:19
agm   | 12:27:38        Loading composer repositories with package information
agm   | 12:27:38        Installing dependencies from lock file
agm   | 12:27:38        Package operations: 81 installs, 0 updates, 0 removals

From the log above, ext-bcmath is not installed. Can I add something on the App Spec to include bcmath?

Subscribe
Share

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

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.

I’m using hashids as well, works with ext-bcmath in composer.json as mentioned above

You can just add ext-bcmath to composer.json and it will be included on build

composer require ext-bcmath