Ask Your Question
3

What is the reason for Composer (PHP) permitting me to mention "ext-json" but not other extensions such as "ext-gmp" while using "composer require"?

asked 2022-04-10 11:00:00 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-02-24 15:00:00 +0000

qstack gravatar image

The reason for this is that "ext-json" is a built-in extension in PHP and is available in all PHP installations. On the other hand, "ext-gmp" is not a built-in extension and therefore needs to be installed separately on the server before it can be used. Composer only allows the installation of packages that are available in the PHP installation by default or can be easily installed using Composer itself. If you want to use a non-default extension like "ext-gmp", you need to ensure that it is installed on your server before running the Composer command.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-04-10 11:00:00 +0000

Seen: 16 times

Last updated: Feb 24 '22