Composer dependenies Error - require ext-sodium

I am using PHP v8.3 and I don’t want my PHP v8.3 to downgrade.

When I try to generate the project, i got an error as -

Your requirements could not be resolved to an installable set of packages.
Problem 1

  • Root composer.json requires lexik/jwt-authentication-bundle ^3.1.1 → satisfiable by lexik/jwt-authentication-bundle[v3.1.1].
  • lcobucci/jwt 5.0.0 requires php ~8.1.0 || ~8.2.0 → your php version (8.3.6; overridden via config.platform, same as actual) does not satisfy that requirement.
  • lcobucci/jwt[5.1.0, …, 5.6.0] require ext-sodium * → it is missing from your system. Install or enable PHP’s sodium extension.
    Alternatively you can require one of these packages that provide the extension (or parts of it):
    Keep in mind that the suggestions are automated and may not be valid or safe to use
  • paragonie/sodium_compat_ext_sodium
  • juspay/expresscheckout-php-sdk Express Checkout SDK for PHP allows easy integration with Juspay’s EC payments as a service platform
  • vufind/vufind A flexible discovery layer.
  • lexik/jwt-authentication-bundle v3.1.1 requires lcobucci/jwt ^5.0 → satisfiable by lcobucci/jwt[5.0.0, …, 5.6.0].
    To enable extensions, verify that they are enabled in your .ini files:
  • C:\wamp\bin\php\php8.3.6\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.
    Error: Command failed: composer update -n --no-audit --ansi
    at genericNodeError (node:internal/errors:983:15)
    at wrappedFn (node:internal/errors:537:14)
    at checkExecSyncError (node:child_process:916:11)
    at execSync (node:child_process:988:15)
    at global.Exec

require ext-sodium * → it is missing from your system. Install or enable PHP’s sodium extension.

You need to add the PHP “sodium” extension as the error message said. Also read Composer.