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
115PHP 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
2711The recommended way to install is through [ Composer] ( https://getcomposer.org/ ) .
@@ -56,12 +40,12 @@ var_dump($data);
5640if 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
6246Access 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
6751Verify if all dependencies is installed
@@ -87,12 +71,12 @@ To ensure that the entire project is fine:
8771First 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
9377Access 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
9882Install all dependences
0 commit comments