File tree 5 files changed +538
-693
lines changed 5 files changed +538
-693
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ PHP library using Guzzle base to send request to any services. Good to use in mi
6
6
7
7
### Installation
8
8
9
+ [ Release 2.0.0] ( https://github.com/not-empty/request-service-php-lib/releases/tag/2.0.0 ) Requires [ PHP] ( https://php.net ) 7.2
10
+
9
11
[ Release 1.0.0] ( https://github.com/not-empty/request-service-php-lib/releases/tag/1.0.0 ) Requires [ PHP] ( https://php.net ) 7.1
10
12
11
13
The recommended way to install is through [ Composer] ( https://getcomposer.org/ ) .
@@ -60,12 +62,12 @@ var_dump($response);
60
62
if you want an environment to run or test it, you can build and install dependences like this
61
63
62
64
``` sh
63
- docker build --build-arg PHP_VERSION=7.1 .33-cli -t not-empty/request-service-php-lib:php71 -f contrib/Dockerfile .
65
+ docker build --build-arg PHP_VERSION=7.2 .33-cli -t not-empty/request-service-php-lib:php72 -f contrib/Dockerfile .
64
66
```
65
67
66
68
Access the container
67
69
``` sh
68
- docker run -v ${PWD} /:/var/www/html -it not-empty/request-service-php-lib:php71 bash
70
+ docker run -v ${PWD} /:/var/www/html -it not-empty/request-service-php-lib:php72 bash
69
71
```
70
72
71
73
Verify if all dependencies is installed
@@ -92,12 +94,12 @@ To ensure that the entire project is fine:
92
94
First you need to building a correct environment to install all dependences
93
95
94
96
``` sh
95
- docker build --build-arg PHP_VERSION=7.1 .33-cli -t not-empty/request-service-php-lib:php71 -f contrib/Dockerfile .
97
+ docker build --build-arg PHP_VERSION=7.2 .33-cli -t not-empty/request-service-php-lib:php72 -f contrib/Dockerfile .
96
98
```
97
99
98
100
Access the container
99
101
``` sh
100
- docker run -v ${PWD} /:/var/www/html -it not-empty/request-service-php-lib:php71 bash
102
+ docker run -v ${PWD} /:/var/www/html -it not-empty/request-service-php-lib:php72 bash
101
103
```
102
104
103
105
Install all dependences
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " not-empty/request-service-php-lib" ,
3
3
"description" : " PHP library using Guzzle base to send request to any services. Good to use in microservice architecture" ,
4
- "version" : " 1 .0.0" ,
4
+ "version" : " 2 .0.0" ,
5
5
"type" : " library" ,
6
6
"license" : " GPL-3.0-only" ,
7
7
"require" : {
8
- "php" : " ^7.1" ,
9
- "guzzlehttp/guzzle" : " ^6.5"
10
- },
11
- "require-dev" : {
12
- "phpunit/phpunit" : " ^7.5" ,
13
- "mockery/mockery" : " ^1.3" ,
14
- "squizlabs/php_codesniffer" : " ^3.7" ,
15
- "phpmd/phpmd" : " ^2.14"
8
+ "php" : " ^7.2" ,
9
+ "guzzlehttp/guzzle" : " ^7.8"
16
10
},
17
11
"authors" : [
18
12
{
48
42
"cs" : " vendor/bin/phpcs" ,
49
43
"test" : " phpdbg -qrr vendor/bin/phpunit --configuration phpunit.xml -d memory_limit=1024M" ,
50
44
"ccu" : " php contrib/coverage-checker.php coverage/coverage.xml 100"
45
+ },
46
+ "require-dev" : {
47
+ "phpunit/phpunit" : " ^8.5" ,
48
+ "mockery/mockery" : " ^1.3" ,
49
+ "squizlabs/php_codesniffer" : " ^3.7" ,
50
+ "phpmd/phpmd" : " ^2.14"
51
51
}
52
52
}
You can’t perform that action at this time.
0 commit comments