File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ PHP library for put all database result in cache
66
77### Installation
88
9+ [ 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
10+
911[ 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
1012
1113The recommended way to install is through [ Composer] ( https://getcomposer.org/ ) .
@@ -40,12 +42,12 @@ var_dump($data);
4042if you want an environment to run or test it, you can build and install dependences like this
4143
4244``` sh
43- docker build --build-arg PHP_VERSION=7.1 .33-cli -t not-empty/database-cache-php-lib:php71 -f contrib/Dockerfile .
45+ docker build --build-arg PHP_VERSION=7.2 .33-cli -t not-empty/database-cache-php-lib:php72 -f contrib/Dockerfile .
4446```
4547
4648Access the container
4749``` sh
48- docker run -v ${PWD} /:/var/www/html -it not-empty/database-cache-php-lib:php71 bash
50+ docker run -v ${PWD} /:/var/www/html -it not-empty/database-cache-php-lib:php72 bash
4951```
5052
5153Verify if all dependencies is installed
@@ -71,12 +73,12 @@ To ensure that the entire project is fine:
7173First you need to building a correct environment to install all dependences
7274
7375``` sh
74- docker build --build-arg PHP_VERSION=7.1 .33-cli -t not-empty/database-cache-php-lib:php71 -f contrib/Dockerfile .
76+ docker build --build-arg PHP_VERSION=7.2 .33-cli -t not-empty/database-cache-php-lib:php72 -f contrib/Dockerfile .
7577```
7678
7779Access the container
7880``` sh
79- docker run -v ${PWD} /:/var/www/html -it not-empty/database-cache-php-lib:php71 bash
81+ docker run -v ${PWD} /:/var/www/html -it not-empty/database-cache-php-lib:php72 bash
8082```
8183
8284Install all dependences
Original file line number Diff line number Diff line change 11{
22 "name" : " not-empty/database-cache-php-lib" ,
33 "description" : " PHP library for put all database result in cache" ,
4- "version" : " 1 .0.0" ,
4+ "version" : " 2 .0.0" ,
55 "type" : " library" ,
66 "license" : " GPL-3.0-only" ,
77 "require" : {
8- "php" : " ^7.1 " ,
9- "predis/predis" : " ^1.1 "
8+ "php" : " ^7.2 " ,
9+ "predis/predis" : " ^2.2 "
1010 },
1111 "authors" : [
1212 {
Original file line number Diff line number Diff line change 1- ARG PHP_VERSION=7.1 .33-cli
1+ ARG PHP_VERSION=7.2 .33-cli
22
33FROM php:${PHP_VERSION}
44
You can’t perform that action at this time.
0 commit comments