Skip to content

Commit 251d527

Browse files
committed
Application updated with the latest JWT Framework features
1 parent 1c5a557 commit 251d527

File tree

3 files changed

+45
-33
lines changed

3 files changed

+45
-33
lines changed

app/jose

+12
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ use GuzzleHttp\Psr7\Request;
1717
use GuzzleHttp\Psr7\Response;
1818
use Http\Message\MessageFactory as Psr7MessageFactory;
1919

20+
if (version_compare(PHP_VERSION, '7.1.0', '<')) {
21+
file_put_contents('php://stderr', sprintf(
22+
'This application requires PHP 7.1 version or higher and your system has'.PHP_EOL.
23+
'PHP %s version installed'.PHP_EOL.PHP_EOL.
24+
'To solve this issue, upgrade your PHP installation.'.PHP_EOL,
25+
PHP_VERSION
26+
));
27+
28+
exit(1);
29+
}
30+
2031
/**
2132
* Class MessageFactory.
2233
*/
@@ -54,6 +65,7 @@ $jwkAnalyzerManager
5465

5566
$application = new Application('Jose', '@package_version@');
5667
$application->add(new Console\OctKeyGeneratorCommand($jsonConverter));
68+
$application->add(new Console\PublicKeyCommand($jsonConverter));
5769
$application->add(new Console\RsaKeyGeneratorCommand($jsonConverter));
5870
$application->add(new Console\EcKeyGeneratorCommand($jsonConverter));
5971
$application->add(new Console\OkpKeyGeneratorCommand($jsonConverter));

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
},
2222
"require": {
2323
"php": "^7.1",
24-
"web-token/jwt-console": "^0.0",
24+
"web-token/jwt-console": "^0.1",
2525
"padraic/phar-updater": "^1.0",
2626
"php-http/message-factory": "^1.0",
2727
"php-http/httplug": "^1.1",
2828
"php-http/guzzle6-adapter": "^1.1.1"
2929
},
3030
"extra": {
3131
"branch-alias": {
32-
"dev-master": "0.0.x-dev"
32+
"dev-master": "0.1.x-dev"
3333
}
3434
},
3535
"config": {

composer.lock

+31-31
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)