Skip to content

Commit

Permalink
version php72
Browse files Browse the repository at this point in the history
  • Loading branch information
leodisarli committed Nov 3, 2023
1 parent eacfa86 commit 8b234eb
Show file tree
Hide file tree
Showing 4 changed files with 404 additions and 440 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 2.0.0](https://github.com/not-empty/jwt-manager-php-lib/releases/tag/2.0.0) Requires [PHP](https://php.net) 7.2

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

The recommended way to install is through [Composer](https://getcomposer.org/).
Expand Down Expand Up @@ -72,12 +74,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.1.33-cli -t not-empty/jwt-manager-php-lib:php71 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=7.2.33-cli -t not-empty/jwt-manager-php-lib:php72 -f contrib/Dockerfile .
```

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

Verify if all dependencies is installed
Expand All @@ -103,12 +105,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.1.33-cli -t not-empty/jwt-manager-php-lib:php71 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=7.2.33-cli -t not-empty/jwt-manager-php-lib:php72 -f contrib/Dockerfile .
```

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

Install all dependences
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "not-empty/jwt-manager-php-lib",
"description": "PHP library to manage JWT authentication",
"version": "1.0.0",
"version": "2.0.0",
"type": "library",
"license": "GPL-3.0-only",
"require": {
"php": "^7.1"
"php": "^7.2"
},
"require-dev": {
"phpunit/phpunit": "^7.5",
"phpunit/phpunit": "^8.5",
"mockery/mockery": "^1.3",
"squizlabs/php_codesniffer": "^3.7",
"phpmd/phpmd": "^2.14"
Expand Down

0 comments on commit 8b234eb

Please sign in to comment.