Skip to content

Commit f9322e5

Browse files
authored
Merge pull request #1 from byu-oit-appdev/non-static
Non static
2 parents 134698f + dd96575 commit f9322e5

File tree

11 files changed

+332
-249
lines changed

11 files changed

+332
-249
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Basic JWT Decoding and Validation for calls from BYU's API repository
44

5+
# Requirements
6+
* PHP 5.4+
7+
* OpenSSL extension
8+
59
## Installing via composer
610

711
Install into your project using [composer](http://getcomposer.org).
@@ -19,7 +23,7 @@ And run `php composer.phar update`
1923
The most common use case is simply decoding a JWT:
2024
```php
2125
try {
22-
$decoded = BYUJWT::decode($jwt);
26+
$decoded = (new BYUJWT)->decode($jwt);
2327
} catch (Exception $e) {
2428
//JWT was not valid, do something
2529
}

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"license": "MIT",
55
"require": {
66
"firebase/php-jwt": "~4.0",
7-
"guzzlehttp/guzzle": "~5.3",
8-
"phpseclib/phpseclib": "~2.0.4"
7+
"guzzlehttp/guzzle": "~5.3"
98
},
109
"require-dev": {
1110
"phpunit/phpunit": "~5.0"

composer.lock

Lines changed: 6 additions & 98 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)