Skip to content

Commit

Permalink
Merge pull request #12 from RobDWaller/1.0.1
Browse files Browse the repository at this point in the history
1.0.1
  • Loading branch information
RobDWaller authored Oct 16, 2020
2 parents 09ca492 + d662812 commit a1b4fcd
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 16 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: ci

on: [push, pull_request, release]

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4']
name: PHP ${{ matrix.php-versions }} Test
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
coverage: xdebug

- name: Validate Composer
run: composer validate --strict

- name: Install Composer Dependencies
run: composer install --no-interaction --prefer-source

- name: Run Tests
run: composer pipeline
env:
STRYKER_DASHBOARD_API_KEY: oaOExVMXXbPswvGD2IfSM1t9iVybKhui5C4LyoVwvSoyWmkZU2YmS5Yf7Z2oCjbjzTq6b20iswVjlfakrgd2IzlvpvELu7N/jgPylfKLmG4/mvOxK53FujILsOYd8Np90zlvJb4fRcxYp/iHAmJpJEVz6J7keoRFLR8JVyF7TmbNah40Bog2pG6KaNgQ1xabGTRNDf8Vo6SJtMNrgDxv2LBLBY566QTXH8fuTmijkqsVM/r/N49Pa+2EnE26O4t25HJsBDmEbRWWHAxw7SMxrneLG98dg/GqjroqOJ5h2S2ud3I6l2kI8wtKp0bcosMiijcTZ+z7J9STrrzPIVRLVHYrLQ38+N4FaaS94k87Hk0Ywin4gPqLWU9cTtb/R4/3bE25rGTnxn/Gdm6RtniexcMDcqyjqfv65Iq5RX/mTyIDpFRNUn7M22KitTp/7jULZIVtOgHOxd27TseKgOUcPt8OavPsaakb5voL+aCWZMov1kE6H3p5ZsoDyaMusb4sJHFt63aGegtTrm4cjHKU0qO9L7y/ivI9tK/lVenUbzy+Drt5Jdp40jD5AQ8kxvB96QkxZa6DeFkidl0chwC/GgMSWx9lEMHhO5G0RJAWqWgp+wDBl+u0Wki6NlmPdlk72EbjzSWarK5ddhwElO2QTWGumw+AzfmYUNZiwQr/fJo=

- name: Code Coverage
run: bash <(curl -s https://codecov.io/bash)
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ $builder = $factory->builder();
$token = $builder->setSecret('!secReT$123*')
->setPayloadClaim('uid', 12)
->build();

echo $token->getToken();
```

### Parse and Validate JSON Web Token
Expand All @@ -103,7 +105,9 @@ $parser = $factory->parse('token', 'secret');

$parser->validate();

$parser->parse();
$parsed = $parser->parse();

var_dump($parsed->getPayload());
```

For more information on creating, parsing and validating tokens please read the [ReallySimpleJWT](https://github.com/RobDWaller/ReallySimpleJWT/blob/master/readme.md) documentation.
Expand Down

0 comments on commit a1b4fcd

Please sign in to comment.