Skip to content

Commit

Permalink
version php82
Browse files Browse the repository at this point in the history
  • Loading branch information
victoriatonhole committed Nov 4, 2023
1 parent abdc0bc commit a1c3535
Show file tree
Hide file tree
Showing 6 changed files with 158 additions and 245 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP Action
uses: shivammathur/setup-php@2.26.0
with:
php-version: 8.2
extensions: dom
coverage: xdebug

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand All @@ -36,4 +43,4 @@ jobs:
- name: export coverage
run: |
export CODECOV_TOKEN="${{ secrets.CODECOV_TOKEN }}"
bash <(curl -s https://codecov.io/bash)
bash <(curl -s https://codecov.io/bash)
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 for search credential in redis with Predis.

### Installation

[Release 6.0.0](https://github.com/not-empty/credential-manager-php-lib/releases/tag/6.0.0) Requires [PHP](https://php.net) 8.2

[Release 5.0.0](https://github.com/not-empty/credential-manager-php-lib/releases/tag/5.0.0) Requires [PHP](https://php.net) 8.1

[Release 4.0.0](https://github.com/not-empty/credential-manager-php-lib/releases/tag/4.0.0) Requires [PHP](https://php.net) 7.4
Expand Down Expand Up @@ -45,12 +47,12 @@ var_dump($getCredential);
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=8.1.4-cli -t not-empty/credential-manager-php-lib:php81 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=8.2-cli -t not-empty/credential-manager-php-lib:php82 -f contrib/Dockerfile .
```

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

Verify if all dependencies is installed
Expand All @@ -76,12 +78,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=8.1.4-cli -t not-empty/credential-manager-php-lib:php81 -f contrib/Dockerfile .
docker build --build-arg PHP_VERSION=8.2-cli -t not-empty/credential-manager-php-lib:php82 -f contrib/Dockerfile .
```

Access the container
```sh
docker run -v ${PWD}/:/var/www/html -it not-empty/credential-manager-php-lib:php81 bash
docker run -v ${PWD}/:/var/www/html -it not-empty/credential-manager-php-lib:php82 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/credential-manager-php-lib",
"description": "PHP library for search credential in redis with Predis",
"version": "5.0.0",
"version": "6.0.0",
"type": "library",
"license": "GPL-3.0-only",
"require": {
"php": "^8.1",
"php": "^8.2",
"predis/predis": "^2.2"
},
"authors": [
Expand Down

0 comments on commit a1c3535

Please sign in to comment.