Skip to content

Commit

Permalink
version php74
Browse files Browse the repository at this point in the history
  • Loading branch information
leodisarli committed Nov 3, 2023
1 parent d2c4996 commit 4fd4a89
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PHP library to manage JWT authentication

### Installation

[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

[Release 3.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/3.0.0) Requires [PHP](https://php.net) 7.3

[Release 2.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/2.0.0) Requires [PHP](https://php.net) 7.2
Expand Down Expand Up @@ -76,12 +78,12 @@ var_dump($result);
if you want an environment to run or test it, you can build and install dependences like this

```sh
docker build --build-arg PHP_VERSION=7.3.33-cli -t not-empty/jwt-manager-php-lib:php73 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=7.4.33-cli -t not-empty/jwt-manager-php-lib:php74 -f contrib/Dockerfile .
```

Access the container
```sh
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php73 bash
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php74 bash
```

Verify if all dependencies is installed
Expand All @@ -107,12 +109,12 @@ To ensure that the entire project is fine:
First you need to building a correct environment to install all dependences

```sh
docker build --build-arg PHP_VERSION=7.3.33-cli -t not-empty/jwt-manager-php-lib:php73 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=7.4.33-cli -t not-empty/jwt-manager-php-lib:php74 -f contrib/Dockerfile .
```

Access the container
```sh
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php73 bash
docker run -v ${PWD}/:/var/www/html -it not-empty/jwt-manager-php-lib:php74 bash
```

Install all dependences
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "not-empty/jwt-manager-php-lib",
"description": "PHP library to manage JWT authentication",
"version": "3.0.0",
"version": "4.0.0",
"type": "library",
"license": "GPL-3.0-only",
"require": {
"php": "^7.3"
"php": "^7.4"
},
"require-dev": {
"phpunit/phpunit": "^9.6",
Expand Down
34 changes: 17 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion contrib/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PHP_VERSION=7.3.33-cli
ARG PHP_VERSION=7.4.33-cli

FROM php:${PHP_VERSION}

Expand Down

0 comments on commit 4fd4a89

Please sign in to comment.