You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-41Lines changed: 13 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
- Designed, built and tested under close supervision with the official neo4j driver team
15
15
- Validated with [testkit](https://github.com/neo4j-drivers/testkit)
16
16
- Fully typed with [psalm](https://psalm.dev/)
17
-
- Bolt, HTTP and auto routed drivers available
17
+
- Boltand Neo4j (auto-routed) drivers available
18
18
19
19
## See the driver in action
20
20
@@ -48,13 +48,14 @@ use Laudis\Neo4j\ClientBuilder;
48
48
49
49
$client = ClientBuilder::create()
50
50
->withDriver('bolt', 'bolt+s://user:password@localhost') // creates a bolt driver
51
-
->withDriver('https', 'https://test.com', Authenticate::basic('user', 'password')) // creates an http driver
52
51
->withDriver('neo4j', 'neo4j://neo4j.test.com?database=my-database', Authenticate::oidc('token')) // creates an auto routed driver with an OpenID Connect token
53
52
->withDefaultDriver('bolt')
54
53
->build();
55
54
```
56
55
57
-
You have now created a client with **bolt, HTTPS and neo4j drivers**. The default driver that the client will use is **bolt**.
56
+
You have now created a client with **bolt and neo4j drivers**. The default driver that the client will use is **bolt**.
57
+
58
+
> **Note:** The HTTP/HTTPS drivers were [removed in version 3.3.0](https://github.com/neo4j-php/neo4j-php-client/releases). Use **Bolt** (`bolt://`, `bolt+s://`, …) or **Neo4j** (`neo4j://`, …) URIs only.
58
59
59
60
Read more about the URLs and how to use them to configure drivers [here](#in-depth-configuration).
The `runStatements` method will run all the statements at once. This method is an essential tool to reduce the number of database calls, especially when using the HTTP protocol.
108
-
109
-
```php
110
-
use Laudis\Neo4j\Databags\Statement;
111
-
112
-
$results = $client->runStatements([
113
-
Statement::create('MATCH (x) RETURN x LIMIT 100'),
Transaction functions are the **de facto** standard when using the driver. It is the most portable as it is resistant to a lot of the pitfalls when first developing with high availability solutions such as [Neo4j aura](https://neo4j.com/blog/neo4j-aura-enterprise-ga-release/) or a [cluster](https://neo4j.com/docs/operations-manual/current/clustering/).
@@ -280,7 +268,6 @@ $client->run('MATCH (x) WHERE x.slug in $listOrMap RETURN x', ['listOrMap' => []
280
268
|----------------------|----------------|
281
269
| Authentication | Yes |
282
270
| Transactions | Yes |
283
-
| Http Protocol | Yes |
284
271
| Bolt Protocol | Yes |
285
272
| Cluster | Yes |
286
273
| Aura | Yes |
@@ -291,26 +278,13 @@ $client->run('MATCH (x) WHERE x.slug in $listOrMap RETURN x', ['listOrMap' => []
291
278
292
279
* PHP >= 7.4
293
280
* A Neo4j database (minimum version 3.5)
294
-
* ext-bcmath *
295
-
* ext-json **
296
-
* ext-sockets ***
297
-
298
-
(*) Needed to implement the bolt protocol
299
-
300
-
(**) Needed to implement the http protocol
301
-
302
-
(***) Can be installed for optimal bolt protocol performance
303
-
304
-
305
-
If you plan on using the HTTP drivers, make sure you have [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 included into the project. If you don't have any, you can install them via composer:
In order to make the results of the bolt protocol and the http uniform, the driver provides and summarizes the results.
287
+
In order to make the results of the Bolt protocol uniform, the driver provides and summarizes the results.
314
288
315
289
The default formatter is the `\Laudis\Neo4j\Formatters\SummarizedResultFormatter`, which is explained extensively in [the result format section](#accessing-the-results).
0 commit comments