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
The recommended way to install the library is through [Composer](http://getcomposer.org):
26
+
```
27
+
$ composer require tarantool/mapper
16
28
```
17
29
18
-
# Instantiate mapper
30
+
##Instantiate mapper
19
31
Usually, you manage dependencies in your service provider.
20
32
To get started you should instantiate connection, packer, client and mapper itself.
21
33
In this example we use PurePacker and StreamConnection. It means you don't need any pecl extensions. To see other implementations please check [client documentation](https://github.com/tarantool-php/client#usage)
@@ -31,7 +43,7 @@ $client = new Client($connection, new PurePacker());
31
43
$mapper = new Mapper($client);
32
44
```
33
45
34
-
# Logging
46
+
##Logging
35
47
By default, client does not logs tarantool requests, you can use mapper\client that supports logging.
36
48
```php
37
49
use Tarantool\Client\Connection\StreamConnection;
@@ -48,7 +60,7 @@ $result = $client->ping();
48
60
$log = $client->getLog();
49
61
```
50
62
51
-
# Existing types
63
+
##Existing types
52
64
You can start with your current configuration.
53
65
Please, note - all instances are mapped to key-value objects.
54
66
```php
@@ -66,7 +78,7 @@ echo $guest->type; // user
66
78
67
79
```
68
80
69
-
# Describe entities
81
+
##Describe entities
70
82
To get started you should describe your types and fields using meta object.
0 commit comments