Skip to content

Commit d559a23

Browse files
committed
version php82
1 parent dea2da5 commit d559a23

File tree

5 files changed

+27
-12
lines changed

5 files changed

+27
-12
lines changed

.github/workflows/php.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
16+
17+
- name: Setup PHP Action
18+
uses: shivammathur/setup-php@2.26.0
19+
with:
20+
php-version: 8.2
21+
extensions: dom
22+
coverage: xdebug
1623

1724
- name: Validate composer.json and composer.lock
1825
run: composer validate
1926

2027
- name: Cache Composer packages
2128
id: composer-cache
22-
uses: actions/cache@v2
29+
uses: actions/cache@v3
2330
with:
2431
path: vendor
2532
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -36,4 +43,4 @@ jobs:
3643
- name: export coverage
3744
run: |
3845
export CODECOV_TOKEN="${{ secrets.CODECOV_TOKEN }}"
39-
bash <(curl -s https://codecov.io/bash)
46+
bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
# JWT Manager PHP
22

3+
[![Latest Version](https://img.shields.io/github/v/release/not-empty/jwt-manager-php-lib.svg?style=flat-square)](https://github.com/not-empty/jwt-manager-php-lib/releases)
4+
[![codecov](https://codecov.io/gh/not-empty/jwt-manager-php-lib/graph/badge.svg?token=AEMV163UW6)](https://codecov.io/gh/not-empty/jwt-manager-php-lib)
5+
[![CI Build](https://img.shields.io/github/actions/workflow/status/not-empty/jwt-manager-php-lib/php.yml)](https://github.com/not-empty/jwt-manager-php-lib/actions/workflows/php.yml)
6+
[![Downloads Old](https://img.shields.io/packagist/dt/kiwfy/jwt-manager-php?logo=old&label=downloads%20legacy)](https://packagist.org/packages/kiwfy/jwt-manager-php)
7+
[![Downloads](https://img.shields.io/packagist/dt/not-empty/jwt-manager-php-lib?logo=old&label=downloads)](https://packagist.org/packages/not-empty/jwt-manager-php-lib)
38
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
9+
[![Packagist License (custom server)](https://img.shields.io/packagist/l/not-empty/jwt-manager-php-lib)](https://github.com/not-empty/jwt-manager-php-lib/blob/master/LICENSE)
410

511
PHP library to manage JWT authentication
612

713
### Installation
814

15+
[Release 6.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/6.0.0) Requires [PHP](https://php.net) 8.2
16+
917
[Release 5.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/5.0.0) Requires [PHP](https://php.net) 8.1
1018

1119
[Release 4.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/4.0.0) Requires [PHP](https://php.net) 7.4
@@ -80,12 +88,12 @@ var_dump($result);
8088
if you want an environment to run or test it, you can build and install dependences like this
8189

8290
```sh
83-
docker build --build-arg PHP_VERSION=8.1.4-cli -t not-empty/jwt-manager-php-lib:php81 -f contrib/Dockerfile .
91+
docker build --build-arg PHP_VERSION=8.2-cli -t not-empty/jwt-manager-php-lib:php82 -f contrib/Dockerfile .
8492
```
8593

8694
Access the container
8795
```sh
88-
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php81 bash
96+
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php82 bash
8997
```
9098

9199
Verify if all dependencies is installed
@@ -111,12 +119,12 @@ To ensure that the entire project is fine:
111119
First you need to building a correct environment to install all dependences
112120

113121
```sh
114-
docker build --build-arg PHP_VERSION=8.1.4-cli -t not-empty/jwt-manager-php-lib:php81 -f contrib/Dockerfile .
122+
docker build --build-arg PHP_VERSION=8.2-cli -t not-empty/jwt-manager-php-lib:php82 -f contrib/Dockerfile .
115123
```
116124

117125
Access the container
118126
```sh
119-
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php81 bash
127+
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php82 bash
120128
```
121129

122130
Install all dependences

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "not-empty/jwt-manager-php-lib",
33
"description": "PHP library to manage JWT authentication",
4-
"version": "5.0.0",
4+
"version": "6.0.0",
55
"type": "library",
66
"license": "GPL-3.0-only",
77
"require": {
8-
"php": "^8.1"
8+
"php": "^8.2"
99
},
1010
"require-dev": {
1111
"phpunit/phpunit": "^9.6",

composer.lock

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

contrib/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PHP_VERSION=8.1.4-cli
1+
ARG PHP_VERSION=8.2-cli
22

33
FROM php:${PHP_VERSION}
44

0 commit comments

Comments
 (0)