elota Posted February 8, 2023 Share Posted February 8, 2023 I am trying to use composer.json file. but, when I am trying to run command ' composer require "jaggedsoft/php-binance-api @dev" in my laravel project I am getting an error: - Root composer.json requires PHP extension ext-http * but it is missing from your system. Install or enable PHP's http extension. I already looked for the extension in my php.ini file and removed the semicolon from extension=intll. That was according to the solution i found on stack overflow but its not working for me. I would really appreciate you guys help .Thanks in advance! Quote Link to comment https://forums.phpfreaks.com/topic/315897-how-to-add-extension-in-php/ Share on other sites More sharing options...
Solution gizmola Posted February 8, 2023 Solution Share Posted February 8, 2023 I don't know what you found on SO, but it's unrelated to the intl extension. What operating system are you running? What version of php? How is your development environment configured? Are you using Docker? Note: The library you are trying to use states that it is "depreciated" (sic). It was also forked by the originator to a different repo, with the intention of passing it on to other maintainers. Since you are using Laravel, this one might be a better fit for your project: https://github.com/TechTailor/Laravel-Binance-Api It states it is still in alpha, but depending on what you intend to do it might be a better fit for you. Quote Link to comment https://forums.phpfreaks.com/topic/315897-how-to-add-extension-in-php/#findComment-1605501 Share on other sites More sharing options...
requinix Posted February 8, 2023 Share Posted February 8, 2023 I think ext-http means the pecl_http PECL extension. If so, you get that through installing PECL and then using it to install pecl_http.https://pecl.php.net/package/pecl_http Quote Link to comment https://forums.phpfreaks.com/topic/315897-how-to-add-extension-in-php/#findComment-1605503 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.