Skip to content

Commit d57e82c

Browse files
committed
version php71
1 parent d83dcc6 commit d57e82c

5 files changed

Lines changed: 733 additions & 950 deletions

File tree

.github/workflows/php.yml

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

1414
steps:
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
15+
- uses: actions/checkout@v2
2316

2417
- name: Validate composer.json and composer.lock
2518
run: composer validate
2619

2720
- name: Cache Composer packages
2821
id: composer-cache
29-
uses: actions/cache@v3
22+
uses: actions/cache@v2
3023
with:
3124
path: vendor
3225
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}

README.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
# PHP Database Cache
22

3-
[![Latest Version](https://img.shields.io/github/v/release/not-empty/database-cache-php-lib.svg?style=flat-square)](https://github.com/not-empty/database-cache-php-lib/releases)
4-
[![codecov](https://codecov.io/gh/not-empty/database-cache-php-lib/graph/badge.svg?token=AEMV163UW6)](https://codecov.io/gh/not-empty/database-cache-php-lib)
5-
[![CI Build](https://img.shields.io/github/actions/workflow/status/not-empty/database-cache-php-lib/php.yml)](https://github.com/not-empty/database-cache-php-lib/actions/workflows/php.yml)
6-
[![Downloads Old](https://img.shields.io/packagist/dt/kiwfy/database-cache-php?logo=old&label=downloads%20legacy)](https://packagist.org/packages/kiwfy/database-cache-php)
7-
[![Downloads](https://img.shields.io/packagist/dt/not-empty/database-cache-php-lib?logo=old&label=downloads)](https://packagist.org/packages/not-empty/database-cache-php-lib)
83
[![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/database-cache-php-lib)](https://github.com/not-empty/database-cache-php-lib/blob/master/LICENSE)
104

115
PHP library for put all database result in cache
126

137
### Installation
148

15-
[Release 6.0.0](https://github.com/not-empty/database-cache-php-lib/releases/tag/6.0.0) Requires [PHP](https://php.net) 8.2
16-
17-
[Release 5.0.0](https://github.com/not-empty/database-cache-php-lib/releases/tag/5.0.0) Requires [PHP](https://php.net) 8.1
18-
19-
[Release 4.0.0](https://github.com/not-empty/database-cache-php-lib/releases/tag/4.0.0) Requires [PHP](https://php.net) 7.4
20-
21-
[Release 3.0.0](https://github.com/not-empty/database-cache-php-lib/releases/tag/3.0.0) Requires [PHP](https://php.net) 7.3
22-
23-
[Release 2.0.0](https://github.com/not-empty/database-cache-php-lib/releases/tag/2.0.0) Requires [PHP](https://php.net) 7.2
24-
259
[Release 1.0.0](https://github.com/not-empty/database-cache-php-lib/releases/tag/1.0.0) Requires [PHP](https://php.net) 7.1
2610

2711
The recommended way to install is through [Composer](https://getcomposer.org/).
@@ -56,12 +40,12 @@ var_dump($data);
5640
if you want an environment to run or test it, you can build and install dependences like this
5741

5842
```sh
59-
docker build --build-arg PHP_VERSION=8.2-cli -t not-empty/database-cache-php-lib:php82 -f contrib/Dockerfile .
43+
docker build --build-arg PHP_VERSION=7.1.33-cli -t not-empty/database-cache-php-lib:php71 -f contrib/Dockerfile .
6044
```
6145

6246
Access the container
6347
```sh
64-
docker run -v ${PWD}/:/var/www/html -it not-empty/database-cache-php-lib:php82 bash
48+
docker run -v ${PWD}/:/var/www/html -it not-empty/database-cache-php-lib:php71 bash
6549
```
6650

6751
Verify if all dependencies is installed
@@ -87,12 +71,12 @@ To ensure that the entire project is fine:
8771
First you need to building a correct environment to install all dependences
8872

8973
```sh
90-
docker build --build-arg PHP_VERSION=8.2-cli -t not-empty/database-cache-php-lib:php82 -f contrib/Dockerfile .
74+
docker build --build-arg PHP_VERSION=7.1.33-cli -t not-empty/database-cache-php-lib:php71 -f contrib/Dockerfile .
9175
```
9276

9377
Access the container
9478
```sh
95-
docker run -v ${PWD}/:/var/www/html -it not-empty/database-cache-php-lib:php82 bash
79+
docker run -v ${PWD}/:/var/www/html -it not-empty/database-cache-php-lib:php71 bash
9680
```
9781

9882
Install all dependences

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "not-empty/database-cache-php-lib",
33
"description": "PHP library for put all database result in cache",
4-
"version": "6.0.0",
4+
"version": "1.0.0",
55
"type": "library",
66
"license": "GPL-3.0-only",
77
"require": {
8-
"php": "^8.2",
9-
"predis/predis": "^2.2"
8+
"php": "^7.1",
9+
"predis/predis": "^1.1"
1010
},
1111
"authors": [
1212
{
@@ -44,8 +44,8 @@
4444
"ccu" : "php contrib/coverage-checker.php coverage/coverage.xml 100"
4545
},
4646
"require-dev": {
47-
"phpunit/phpunit": "^9.6",
48-
"mockery/mockery": "^1.6",
47+
"phpunit/phpunit": "^7.5",
48+
"mockery/mockery": "^1.3",
4949
"squizlabs/php_codesniffer": "^3.7",
5050
"phpmd/phpmd": "^2.14"
5151
}

0 commit comments

Comments
 (0)