To enable extensions, verify that they are enabled in your .ini files:- C:\xampp\php\php.ini
Posted by
Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow
–
Error
Problem 1
- lcobucci/jwt[4.3.0, 5.0.0, ..., 5.1.0] require ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension.
- laravel/passport v11.9.0 requires lcobucci/jwt ^4.3|^5.0 -> satisfiable by lcobucci/jwt[4.3.0, 5.0.0, 5.1.0].
- Root composer.json requires laravel/passport 11.9.0 -> satisfiable by laravel/passport[v11.9.0].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-sodium` to temporarily ignore these required extensions.
Solution:
For me, I just follow this steps.
Step 1:
At first, You need to install/activate sodium goto D:\xampp\php\ and open file php.ini.
Step 2: Now search for sodium
Step 3: You will see ;extension=sodium
Step 4: Remove semi colon ; and save file.
Step 5: Now reload apache, and run the composer again.
Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow
Experienced software developer proficient in HTML, CSS, and Bootstrap for crafting elegant and responsive user interfaces.
Skilled in Laravel and PHP, with a focus on building robust and scalable web applications.
Proficient in JavaScript for both frontend and backend development, leveraging frameworks like React and Vue.js.
Experienced in designing and consuming RESTful APIs to enable seamless communication between client and server.
Expertise in integrating payment gateways such as PayPal, Stripe, and Paytm for secure online transactions.
Familiar with Flutter, enabling the creation of natively compiled applications for mobile, web, and desktop.
Proficient in Android Studio, the primary IDE for developing Android applications.
Knowledgeable in Linux and Docker for efficient server management and application deployment.
Experienced in using Redis as an in-memory data structure store, enhancing application performance.
Passionate about staying updated with the latest technologies and continuously learning to deliver high-quality solutions.