Skip to content

Commit

Permalink
test travis
Browse files Browse the repository at this point in the history
  • Loading branch information
cdoco committed May 22, 2018
1 parent 1be73c1 commit 19a6626
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ php:
notifications:
email: false

sudo: enabled

#Compile
before_script:
- openssl version -a
- sudo apt-get update libssl-dev
- ./travis/compile.sh

# Run PHPs run-tests.php
Expand Down
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,19 @@ echo $token . PHP_EOL;
//2lFeBTsRegsjXiBCZNkW41KFlsZPSFu7KTsyAM9lUiQ

print_r(jwt_decode($token, $key));
//Array
//(
// [data] => Array
// (
// [name] => ZiHang Gao
// [admin] => 1
// )
//
// [iss] => http://example.org
// [sub] => 1234567890
//)
/**
Array
(
[data] => Array
(
[name] => ZiHang Gao
[admin] => 1
)

[iss] => http://example.org
[sub] => 1234567890
)
*/
```

## [Example](https://github.com/cdoco/php-jwt/tree/master/example)
Expand Down

0 comments on commit 19a6626

Please sign in to comment.