paragonie / paseto

Platform-Agnostic Security Tokens
https://paseto.io
Other
3.24k stars 108 forks source link

Class \"ParagonIE\\Paseto\\Protocol\\Version4\ Not found #149

Closed GTS-MEGHNI closed 2 years ago

GTS-MEGHNI commented 2 years ago

It seems I can't find the Version4 class in a new installation via composer

paragonie-security commented 2 years ago

That's odd. Did you run the php composer.phar install command first? If so, did it spit out an error message?

GTS-MEGHNI commented 2 years ago

That's odd. Did you run the php composer.phar install command first? If so, did it spit out an error message?

I did install the package through composer require paragonie/paseto. After the installation I checked the path vendor\paragonie\paseto\src\Protocol I found only Version 1 and Version 2 in this directory

paragonie-security commented 2 years ago

Did you install version 1 or version 2 of the library?

GTS-MEGHNI commented 2 years ago

I didn't specify the version in the command line, it should get me latest version no ?

paragonie-security commented 2 years ago

That depends on your configuration. If you don't have ext-gmp installed Composer will decide to get version 1.x instead of 2.x.