Skip to content

Commit 7e06209

Browse files
committed
Implement v3
1 parent 9a0ca4d commit 7e06209

File tree

100 files changed

+1442
-753
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+1442
-753
lines changed

.github/FUNDING.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
2-
3-
custom: ["https://miladrahimi.com/pay.html"]
2+
github: miladrahimi
3+
custom: ["https://miladrahimi.com/pay.html", "https://www.paypal.com/paypalme/realmiladrahimi"]

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
run:
5+
strategy:
6+
matrix:
7+
include:
8+
- php: '7.4'
9+
- php: '8.0'
10+
- php: '8.1'
11+
- php: '8.2'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Set up PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: "${{ matrix.php }}"
20+
- name: Install dependencies
21+
run: composer self-update && composer install && composer dump-autoload
22+
- name: Run tests and collect coverage
23+
run: vendor/bin/phpunit --coverage-clover coverage.xml .
24+
- name: Upload coverage to Codecov
25+
uses: codecov/codecov-action@v4-beta
26+
env:
27+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
/.idea
44
/build
55
.DS_Store
6+
.phpunit.result.cache

.travis.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Latest Stable Version](https://poser.pugx.org/miladrahimi/php-jwt/v/stable)](https://packagist.org/packages/miladrahimi/php-jwt)
22
[![Total Downloads](https://poser.pugx.org/miladrahimi/php-jwt/downloads)](https://packagist.org/packages/miladrahimi/php-jwt)
3-
[![Build Status](https://travis-ci.com/miladrahimi/php-jwt.svg?branch=master)](https://travis-ci.com/miladrahimi/php-jwt)
4-
[![Coverage Status](https://coveralls.io/repos/github/miladrahimi/php-jwt/badge.svg?branch=master)](https://coveralls.io/github/miladrahimi/php-jwt?branch=master)
3+
[![Build](https://github.com/miladrahimi/php-jwt/actions/workflows/ci.yml/badge.svg)](https://github.com/miladrahimi/php-jwt/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/miladrahimi/php-jwt/graph/badge.svg?token=KctrYUweFd)](https://codecov.io/gh/miladrahimi/php-jwt)
55
[![License](https://poser.pugx.org/miladrahimi/php-jwt/license)](https://packagist.org/packages/miladrahimi/php-jwt)
66

77
# PHP-JWT
File renamed without changes.

assets/keys/ecdsa256-private.pem

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-----BEGIN EC PRIVATE KEY-----
2+
MHcCAQEEIMawqIkqivftKYtxYdO4Emdek7BW1RjDZp6dd/dbBQxEoAoGCCqGSM49
3+
AwEHoUQDQgAElJTW1s3h6qlnYzw1ReTOMPaJEZeidTonLabzbPQV0WzmrzbaEoxV
4+
V91q2YJJqHLkC9xT+78tZ7F5yGeKYY3Jrw==
5+
-----END EC PRIVATE KEY-----

assets/keys/ecdsa256-public.pem

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAElJTW1s3h6qlnYzw1ReTOMPaJEZei
3+
dTonLabzbPQV0WzmrzbaEoxVV91q2YJJqHLkC9xT+78tZ7F5yGeKYY3Jrw==
4+
-----END PUBLIC KEY-----

assets/keys/ecdsa256k-private.pem

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgC8ouvv1ZOmOjh5Nbwx6i
3+
3b35wWN+OEkW2hzm3BKAQJ2hRANCAAT9nYGLVP6Unm/LXOoyWhsKpalffMSr3EHV
4+
iUE8gVmj2/atnPkblx38Yj6bC3z1urERAB+JqgpWOAKaWcEYCUuO
5+
-----END PRIVATE KEY-----

assets/keys/ecdsa256k-public.pem

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAE/Z2Bi1T+lJ5vy1zqMlobCqWpX3zEq9xB
3+
1YlBPIFZo9v2rZz5G5cd/GI+mwt89bqxEQAfiaoKVjgCmlnBGAlLjg==
4+
-----END PUBLIC KEY-----

0 commit comments

Comments
 (0)