when attempting to follow the getting-started guide for authentication in a PHP-web project I happened to come across an issue.
When using the jwt-verify builder from okta (https://github.com/okta/okta-jwt-verifier-php) the classDiscovery inside the php-http dependency keeps throwing a “ClassInstantiationFailedException”, some further research has lead to finding that the puli composer plugin hasn’t been installed. However when trying to install this in composer using:
composer require puli/composer-plugin
It returned the following error:
[InvalidArgumentException] Package puli/composer-plugin has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version
Looking further this package has not been updates since 2016.
This issue occurred when attempting to integrate Okta authentication in a laravel 8 project using PHP 7.4.13