Skip to content

Commit c3cadc7

Browse files
authored
Merge pull request #11 from laudis-technologies/debug
Debug
2 parents 540eede + 1a86c06 commit c3cadc7

File tree

4 files changed

+613
-310
lines changed

4 files changed

+613
-310
lines changed

Jenkinsfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ pipeline {
1313
}
1414
stage('Build') {
1515
steps {
16-
sh 'docker build -t php-neo4j:static-analysis .'
16+
sh 'docker build -t php-neo4j:static-analysis-$BRANCH_NAME .'
1717
sh 'docker-compose -p $BRANCH_NAME -f docker/docker-compose.yml build --parallel'
1818
sh 'docker-compose -p $BRANCH_NAME build'
19-
sh 'docker build -t php-neo4j:static-analysis .'
2019
}
2120
}
2221
stage('Static Analysis') {
2322
steps {
24-
sh 'docker run php-neo4j:static-analysis tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run'
25-
sh 'docker run php-neo4j:static-analysis tools/psalm/vendor/bin/psalm --show-info=true'
23+
sh 'docker run php-neo4j:static-analysis-$BRANCH_NAME tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run'
24+
sh 'docker run php-neo4j:static-analysis-$BRANCH_NAME tools/psalm/vendor/bin/psalm --show-info=true'
2625
}
2726
}
2827
stage('Test') {

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ composer require laudis/neo4j-php-client
1515
The HTTP protocol requires [psr-7](https://www.php-fig.org/psr/psr-7/), [psr-17](https://www.php-fig.org/psr/psr-17/) and [psr-18](https://www.php-fig.org/psr/psr-18/) implementations. If there are not any available, composer can install them.
1616

1717
```bash
18-
composer require guzzlehttp/guzzle guzzlehttp/psr7 http-interop/http-factory-guzzle
18+
composer require nyholm/psr7 nyholm/psr7-server kriswallsmith/buzz
1919
```
2020

2121
## General usage
@@ -66,6 +66,10 @@ will echo `123456789`.
6666

6767
The Map representing the Record can only contain null, scalar or array values. Each array can then only contain null, scalar or array values, ad infinitum.
6868

69+
## Example project
70+
71+
An example project exists on the [neo4j github](https://github.com/neo4j-examples/movies-neo4j-php-client). It uses Slim and neo4j-php-client to build an api for the classic movies example of neo4j.
72+
6973
## Diving Deeper
7074

7175
### Running multiple queries at once

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
},
4040
"require-dev": {
4141
"phpunit/phpunit": "^9.0",
42-
"guzzlehttp/guzzle": "7.*",
43-
"guzzlehttp/psr7": "1.*",
44-
"http-interop/http-factory-guzzle": "*"
42+
"nyholm/psr7": "^1.3",
43+
"nyholm/psr7-server": "^1.0",
44+
"kriswallsmith/buzz": "^1.2"
4545
},
4646
"autoload": {
4747
"psr-4": {

0 commit comments

Comments
 (0)