You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by is...@apache.org on 2020/11/19 17:47:34 UTC

[ignite-php-thin-client] 01/05: IGNITE-7783: PHP thin client

This is an automated email from the ASF dual-hosted git repository.

isapego pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-php-thin-client.git

commit 0af441f3de6eb5afbd7ca6c0d129a93a854774a6
Author: Igor Sapego <is...@apache.org>
AuthorDate: Tue Oct 9 16:57:05 2018 +0300

    IGNITE-7783: PHP thin client
    
    This closes #4649
---
 .gitignore                                         |    2 +
 README.md                                          |   37 +
 api_docs/Doxyfile                                  | 2472 ++++++++++++++++++++
 composer.json                                      |   27 +
 examples/AuthTlsExample.php                        |  129 +
 examples/CachePutGetExample.php                    |  184 ++
 examples/FailoverExample.php                       |   67 +
 examples/SqlExample.php                            |  237 ++
 examples/SqlQueryEntriesExample.php                |  127 +
 examples/certs/ca.pem                              |   32 +
 examples/certs/client.pem                          |   81 +
 examples/certs/keystore.jks                        |  Bin 0 -> 3828 bytes
 examples/certs/truststore.jks                      |  Bin 0 -> 1477 bytes
 src/Apache/Ignite/Cache/CacheConfiguration.php     | 1011 ++++++++
 src/Apache/Ignite/Cache/CacheEntry.php             |   60 +
 src/Apache/Ignite/Cache/CacheInterface.php         |  379 +++
 src/Apache/Ignite/Cache/CacheKeyConfiguration.php  |  107 +
 src/Apache/Ignite/Cache/QueryEntity.php            |  315 +++
 src/Apache/Ignite/Cache/QueryField.php             |  279 +++
 src/Apache/Ignite/Cache/QueryIndex.php             |  191 ++
 src/Apache/Ignite/Client.php                       |  243 ++
 src/Apache/Ignite/ClientConfiguration.php          |  294 +++
 src/Apache/Ignite/Data/BinaryObject.php            |  469 ++++
 src/Apache/Ignite/Data/Date.php                    |   84 +
 src/Apache/Ignite/Data/EnumItem.php                |  155 ++
 src/Apache/Ignite/Data/Time.php                    |   58 +
 src/Apache/Ignite/Data/Timestamp.php               |   64 +
 src/Apache/Ignite/Exception/ClientException.php    |   35 +
 .../Ignite/Exception/NoConnectionException.php     |   35 +
 src/Apache/Ignite/Exception/OperationException.php |   35 +
 .../Exception/OperationStatusUnknownException.php  |   35 +
 .../Ignite/Internal/Binary/BinaryCommunicator.php  |  490 ++++
 src/Apache/Ignite/Internal/Binary/BinaryField.php  |   78 +
 .../Ignite/Internal/Binary/BinaryObjectField.php   |  113 +
 src/Apache/Ignite/Internal/Binary/BinarySchema.php |  145 ++
 src/Apache/Ignite/Internal/Binary/BinaryType.php   |  233 ++
 .../Ignite/Internal/Binary/BinaryTypeBuilder.php   |  207 ++
 .../Ignite/Internal/Binary/BinaryTypeStorage.php   |  123 +
 src/Apache/Ignite/Internal/Binary/BinaryUtils.php  |  438 ++++
 .../Ignite/Internal/Binary/ClientOperation.php     |   64 +
 .../Ignite/Internal/Binary/MessageBuffer.php       |  307 +++
 src/Apache/Ignite/Internal/Binary/Request.php      |   85 +
 src/Apache/Ignite/Internal/Binary/TypeInfo.php     |  312 +++
 src/Apache/Ignite/Internal/Cache.php               |  387 +++
 .../Internal/Connection/ClientFailoverSocket.php   |  134 ++
 .../Ignite/Internal/Connection/ClientSocket.php    |  247 ++
 .../Ignite/Internal/Connection/ProtocolVersion.php |   82 +
 src/Apache/Ignite/Internal/Query/Cursor.php        |  166 ++
 .../Ignite/Internal/Query/SqlFieldsCursor.php      |   75 +
 .../Ignite/Internal/Utils/ArgumentChecker.php      |   87 +
 src/Apache/Ignite/Internal/Utils/Logger.php        |   62 +
 src/Apache/Ignite/Query/CursorInterface.php        |   56 +
 src/Apache/Ignite/Query/Query.php                  |   70 +
 src/Apache/Ignite/Query/ScanQuery.php              |   88 +
 .../Ignite/Query/SqlFieldsCursorInterface.php      |   82 +
 src/Apache/Ignite/Query/SqlFieldsQuery.php         |  206 ++
 src/Apache/Ignite/Query/SqlQuery.php               |  225 ++
 src/Apache/Ignite/Type/CollectionObjectType.php    |  142 ++
 src/Apache/Ignite/Type/ComplexObjectType.php       |  165 ++
 src/Apache/Ignite/Type/MapObjectType.php           |  123 +
 src/Apache/Ignite/Type/ObjectArrayType.php         |   68 +
 src/Apache/Ignite/Type/ObjectType.php              |  442 ++++
 tests/BinaryObjectTest.php                         |  196 ++
 tests/CacheKeyValueOpsTest.php                     |  763 ++++++
 tests/CachePutGetTest.php                          |  646 +++++
 tests/CacheTest.php                                |  240 ++
 tests/ComplexObjectTest.php                        |  428 ++++
 tests/ScanQueryTest.php                            |  167 ++
 tests/SqlFieldsQueryTest.php                       |  200 ++
 tests/SqlQueryTest.php                             |  204 ++
 tests/TestConfig.php                               |   37 +
 tests/TestingHelper.php                            |  363 +++
 tests/examples/ExecuteAuthTlsExample.php           |   36 +
 tests/examples/ExecuteExamples.php                 |   61 +
 74 files changed, 16087 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4f4acd3
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+vendor/
+composer.lock
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d6cd51d
--- /dev/null
+++ b/README.md
@@ -0,0 +1,37 @@
+# PHP Thin Client #
+
+## Installation ##
+
+The client requires PHP version 7.2 or higher (http://php.net/manual/en/install.php) and Composer Dependency Manager (https://getcomposer.org/download/).
+
+The client additionally requires PHP Multibyte String extension. Depending on you PHP configuration you may need to additionally install/configure it (http://php.net/manual/en/mbstring.installation.php)
+
+### Installation from the PHP Package Repository ###
+
+Run from your application root
+```
+composer require apache/apache-ignite-client
+```
+
+To use the client in your application, include `vendor/autoload.php` file, generated by Composer, to your source code, eg.
+```
+require_once __DIR__ . '/vendor/autoload.php';
+```
+
+### Installation from Sources ###
+
+1. Download Ignite sources to `local_ignite_path`
+2. Go to `local_ignite_path/modules/platforms/php` folder
+3. Execute `composer install --no-dev` command
+
+```bash
+cd local_ignite_path/modules/platforms/php
+composer install --no-dev
+```
+
+To use the client in your application, include `vendor/autoload.php` file, generated by Composer, to your source code, eg.
+```
+require_once "<local_ignite_path>/vendor/autoload.php";
+```
+
+For more information, see [Apache Ignite PHP Thin Client documentation](https://apacheignite.readme.io/docs/php-thin-client).
diff --git a/api_docs/Doxyfile b/api_docs/Doxyfile
new file mode 100644
index 0000000..f0a37a3
--- /dev/null
+++ b/api_docs/Doxyfile
@@ -0,0 +1,2472 @@
+# Doxyfile 1.8.14
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project.
+#
+# All text after a double hash (##) is considered a comment and is placed in
+# front of the TAG it is preceding.
+#
+# All text after a single hash (#) is considered a comment and will be ignored.
+# The format is:
+# TAG = value [value, ...]
+# For lists, items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (\" \").
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all text
+# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
+# built into libc) for the transcoding. See
+# https://www.gnu.org/software/libiconv/ for the list of possible encodings.
+# The default value is: UTF-8.
+
+DOXYFILE_ENCODING      = UTF-8
+
+# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
+# double-quotes, unless you are using Doxywizard) that should identify the
+# project for which the documentation is generated. This name is used in the
+# title of most generated pages and in a few other places.
+# The default value is: My Project.
+
+PROJECT_NAME           = "PHP Client for Apache Ignite"
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
+# could be handy for archiving the generated documentation or if some version
+# control system is used.
+
+PROJECT_NUMBER         =
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer a
+# quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF          =
+
+# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
+# in the documentation. The maximum height of the logo should not exceed 55
+# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
+# the logo to the output directory.
+
+PROJECT_LOGO           =
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
+# into which the generated documentation will be written. If a relative path is
+# entered, it will be relative to the location where doxygen was started. If
+# left blank the current directory will be used.
+
+OUTPUT_DIRECTORY       = api_docs
+
+# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
+# directories (in 2 levels) under the output directory of each output format and
+# will distribute the generated files over these directories. Enabling this
+# option can be useful when feeding doxygen a huge amount of source files, where
+# putting all generated files in the same directory would otherwise causes
+# performance problems for the file system.
+# The default value is: NO.
+
+CREATE_SUBDIRS         = NO
+
+# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
+# characters to appear in the names of generated files. If set to NO, non-ASCII
+# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
+# U+3044.
+# The default value is: NO.
+
+ALLOW_UNICODE_NAMES    = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
+# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
+# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
+# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
+# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
+# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
+# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
+# Ukrainian and Vietnamese.
+# The default value is: English.
+
+OUTPUT_LANGUAGE        = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
+# descriptions after the members that are listed in the file and class
+# documentation (similar to Javadoc). Set to NO to disable this.
+# The default value is: YES.
+
+BRIEF_MEMBER_DESC      = YES
+
+# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
+# description of a member or function before the detailed description
+#
+# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+# The default value is: YES.
+
+REPEAT_BRIEF           = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator that is
+# used to form the text in various listings. Each string in this list, if found
+# as the leading text of the brief description, will be stripped from the text
+# and the result, after processing the whole list, is used as the annotated
+# text. Otherwise, the brief description is used as-is. If left blank, the
+# following values are used ($name is automatically replaced with the name of
+# the entity):The $name class, The $name widget, The $name file, is, provides,
+# specifies, contains, represents, a, an and the.
+
+ABBREVIATE_BRIEF       = "The $name class" \
+                         "The $name widget" \
+                         "The $name file" \
+                         is \
+                         provides \
+                         specifies \
+                         contains \
+                         represents \
+                         a \
+                         an \
+                         the
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# doxygen will generate a detailed section even if there is only a brief
+# description.
+# The default value is: NO.
+
+ALWAYS_DETAILED_SEC    = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+# The default value is: NO.
+
+INLINE_INHERITED_MEMB  = NO
+
+# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
+# before files name in the file list and in the header files. If set to NO the
+# shortest path that makes the file name unique will be used
+# The default value is: YES.
+
+FULL_PATH_NAMES        = YES
+
+# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
+# Stripping is only done if one of the specified strings matches the left-hand
+# part of the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the path to
+# strip.
+#
+# Note that you can specify absolute paths here, but also relative paths, which
+# will be relative from the directory where doxygen is started.
+# This tag requires that the tag FULL_PATH_NAMES is set to YES.
+
+STRIP_FROM_PATH        =
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
+# path mentioned in the documentation of a class, which tells the reader which
+# header file to include in order to use a class. If left blank only the name of
+# the header file containing the class definition is used. Otherwise one should
+# specify the list of include paths that are normally passed to the compiler
+# using the -I flag.
+
+STRIP_FROM_INC_PATH    =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
+# less readable) file names. This can be useful is your file systems doesn't
+# support long names like on DOS, Mac, or CD-ROM.
+# The default value is: NO.
+
+SHORT_NAMES            = NO
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
+# first line (until the first dot) of a Javadoc-style comment as the brief
+# description. If set to NO, the Javadoc-style will behave just like regular Qt-
+# style comments (thus requiring an explicit @brief command for a brief
+# description.)
+# The default value is: NO.
+
+JAVADOC_AUTOBRIEF      = NO
+
+# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
+# line (until the first dot) of a Qt-style comment as the brief description. If
+# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
+# requiring an explicit \brief command for a brief description.)
+# The default value is: NO.
+
+QT_AUTOBRIEF           = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
+# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
+# a brief description. This used to be the default behavior. The new default is
+# to treat a multi-line C++ comment block as a detailed description. Set this
+# tag to YES if you prefer the old behavior instead.
+#
+# Note that setting this tag to YES also means that rational rose comments are
+# not recognized any more.
+# The default value is: NO.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
+# documentation from any documented member that it re-implements.
+# The default value is: YES.
+
+INHERIT_DOCS           = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
+# page for each member. If set to NO, the documentation of a member will be part
+# of the file/class/namespace that contains it.
+# The default value is: NO.
+
+SEPARATE_MEMBER_PAGES  = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
+# uses this value to replace tabs by spaces in code fragments.
+# Minimum value: 1, maximum value: 16, default value: 4.
+
+TAB_SIZE               = 4
+
+# This tag can be used to specify a number of aliases that act as commands in
+# the documentation. An alias has the form:
+# name=value
+# For example adding
+# "sideeffect=@par Side Effects:\n"
+# will allow you to put the command \sideeffect (or @sideeffect) in the
+# documentation, which will result in a user-defined paragraph with heading
+# "Side Effects:". You can put \n's in the value part of an alias to insert
+# newlines (in the resulting output). You can put ^^ in the value part of an
+# alias to insert a newline as if a physical newline was in the original file.
+
+ALIASES                =
+
+# This tag can be used to specify a number of word-keyword mappings (TCL only).
+# A mapping has the form "name=value". For example adding "class=itcl::class"
+# will allow you to use the command class in the itcl::class meaning.
+
+TCL_SUBST              =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
+# only. Doxygen will then generate output that is more tailored for C. For
+# instance, some of the names that are used will be different. The list of all
+# members will be omitted, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_FOR_C  = NO
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
+# Python sources only. Doxygen will then generate output that is more tailored
+# for that language. For instance, namespaces will be presented as packages,
+# qualified scopes will look different, etc.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_JAVA   = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources. Doxygen will then generate output that is tailored for Fortran.
+# The default value is: NO.
+
+OPTIMIZE_FOR_FORTRAN   = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for VHDL.
+# The default value is: NO.
+
+OPTIMIZE_OUTPUT_VHDL   = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given
+# extension. Doxygen has a built-in mapping, but you can override or extend it
+# using this tag. The format is ext=language, where ext is a file extension, and
+# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
+# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
+# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:
+# Fortran. In the later case the parser tries to guess whether the code is fixed
+# or free formatted code, this is the default for Fortran type files), VHDL. For
+# instance to make doxygen treat .inc files as Fortran files (default is PHP),
+# and .f files as C (default is Fortran), use: inc=Fortran f=C.
+#
+# Note: For files without extension you can use no_extension as a placeholder.
+#
+# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
+# the files are not read by doxygen.
+
+EXTENSION_MAPPING      =
+
+# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
+# according to the Markdown format, which allows for more readable
+# documentation. See http://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you can
+# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
+# case of backward compatibilities issues.
+# The default value is: YES.
+
+MARKDOWN_SUPPORT       = YES
+
+# When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up
+# to that level are automatically included in the table of contents, even if
+# they do not have an id attribute.
+# Note: This feature currently applies only to Markdown headings.
+# Minimum value: 0, maximum value: 99, default value: 0.
+# This tag requires that the tag MARKDOWN_SUPPORT is set to YES.
+
+TOC_INCLUDE_HEADINGS   = 0
+
+# When enabled doxygen tries to link words that correspond to documented
+# classes, or namespaces to their corresponding documentation. Such a link can
+# be prevented in individual cases by putting a % sign in front of the word or
+# globally by setting AUTOLINK_SUPPORT to NO.
+# The default value is: YES.
+
+AUTOLINK_SUPPORT       = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should set this
+# tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string);
+# versus func(std::string) {}). This also make the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+# The default value is: NO.
+
+BUILTIN_STL_SUPPORT    = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+# The default value is: NO.
+
+CPP_CLI_SUPPORT        = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
+# https://www.riverbankcomputing.com/software/sip/intro) sources only. Doxygen
+# will parse them like normal C++ but will assume all classes use public instead
+# of private inheritance when no explicit protection keyword is present.
+# The default value is: NO.
+
+SIP_SUPPORT            = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate
+# getter and setter methods for a property. Setting this option to YES will make
+# doxygen to replace the get and set methods by a property in the documentation.
+# This will only work if the methods are indeed getting or setting a simple
+# type. If this is not the case, or you want to show the methods anyway, you
+# should set this option to NO.
+# The default value is: YES.
+
+IDL_PROPERTY_SUPPORT   = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+# The default value is: NO.
+
+DISTRIBUTE_GROUP_DOC   = NO
+
+# If one adds a struct or class to a group and this option is enabled, then also
+# any nested class or struct is added to the same group. By default this option
+# is disabled and one has to add nested compounds explicitly via \ingroup.
+# The default value is: NO.
+
+GROUP_NESTED_COMPOUNDS = NO
+
+# Set the SUBGROUPING tag to YES to allow class member groups of the same type
+# (for instance a group of public functions) to be put as a subgroup of that
+# type (e.g. under the Public Functions section). Set it to NO to prevent
+# subgrouping. Alternatively, this can be done per class using the
+# \nosubgrouping command.
+# The default value is: YES.
+
+SUBGROUPING            = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
+# are shown inside the group in which they are included (e.g. using \ingroup)
+# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
+# and RTF).
+#
+# Note that this feature does not work in combination with
+# SEPARATE_MEMBER_PAGES.
+# The default value is: NO.
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
+# with only public data fields or simple typedef fields will be shown inline in
+# the documentation of the scope in which they are defined (i.e. file,
+# namespace, or group documentation), provided this scope is documented. If set
+# to NO, structs, classes, and unions are shown on a separate page (for HTML and
+# Man pages) or section (for LaTeX and RTF).
+# The default value is: NO.
+
+INLINE_SIMPLE_STRUCTS  = NO
+
+# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
+# enum is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically be
+# useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+# The default value is: NO.
+
+TYPEDEF_HIDES_STRUCT   = NO
+
+# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
+# cache is used to resolve symbols given their name and scope. Since this can be
+# an expensive process and often the same symbol appears multiple times in the
+# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
+# doxygen will become slower. If the cache is too large, memory is wasted. The
+# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
+# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
+# symbols. At the end of a run doxygen will report the cache usage and suggest
+# the optimal cache size from a speed point of view.
+# Minimum value: 0, maximum value: 9, default value: 0.
+
+LOOKUP_CACHE_SIZE      = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
+# documentation are documented, even if no documentation was available. Private
+# class members and static file members will be hidden unless the
+# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
+# Note: This will also disable the warnings about undocumented members that are
+# normally produced when WARNINGS is set to YES.
+# The default value is: NO.
+
+EXTRACT_ALL            = NO
+
+# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
+# be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PRIVATE        = NO
+
+# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
+# scope will be included in the documentation.
+# The default value is: NO.
+
+EXTRACT_PACKAGE        = NO
+
+# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
+# included in the documentation.
+# The default value is: NO.
+
+EXTRACT_STATIC         = NO
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
+# locally in source files will be included in the documentation. If set to NO,
+# only classes defined in header files are included. Does not have any effect
+# for Java sources.
+# The default value is: YES.
+
+EXTRACT_LOCAL_CLASSES  = YES
+
+# This flag is only useful for Objective-C code. If set to YES, local methods,
+# which are defined in the implementation section but not in the interface are
+# included in the documentation. If set to NO, only methods in the interface are
+# included.
+# The default value is: NO.
+
+EXTRACT_LOCAL_METHODS  = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base name of
+# the file that contains the anonymous namespace. By default anonymous namespace
+# are hidden.
+# The default value is: NO.
+
+EXTRACT_ANON_NSPACES   = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
+# undocumented members inside documented classes or files. If set to NO these
+# members will be included in the various overviews, but no documentation
+# section is generated. This option has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_MEMBERS     = YES
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy. If set
+# to NO, these classes will be included in the various overviews. This option
+# has no effect if EXTRACT_ALL is enabled.
+# The default value is: NO.
+
+HIDE_UNDOC_CLASSES     = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
+# (class|struct|union) declarations. If set to NO, these declarations will be
+# included in the documentation.
+# The default value is: NO.
+
+HIDE_FRIEND_COMPOUNDS  = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
+# documentation blocks found inside the body of a function. If set to NO, these
+# blocks will be appended to the function's detailed documentation block.
+# The default value is: NO.
+
+HIDE_IN_BODY_DOCS      = NO
+
+# The INTERNAL_DOCS tag determines if documentation that is typed after a
+# \internal command is included. If the tag is set to NO then the documentation
+# will be excluded. Set it to YES to include the internal documentation.
+# The default value is: NO.
+
+INTERNAL_DOCS          = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
+# names in lower-case letters. If set to YES, upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+# The default value is: system dependent.
+
+CASE_SENSE_NAMES       = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
+# their full class and namespace scopes in the documentation. If set to YES, the
+# scope will be hidden.
+# The default value is: NO.
+
+HIDE_SCOPE_NAMES       = NO
+
+# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
+# append additional text to a page's title, such as Class Reference. If set to
+# YES the compound reference will be hidden.
+# The default value is: NO.
+
+HIDE_COMPOUND_REFERENCE= NO
+
+# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
+# the files that are included by a file in the documentation of that file.
+# The default value is: YES.
+
+SHOW_INCLUDE_FILES     = YES
+
+# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
+# grouped member an include statement to the documentation, telling the reader
+# which file to include in order to use the member.
+# The default value is: NO.
+
+SHOW_GROUPED_MEMB_INC  = NO
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
+# files with double quotes in the documentation rather than with sharp brackets.
+# The default value is: NO.
+
+FORCE_LOCAL_INCLUDES   = NO
+
+# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
+# documentation for inline members.
+# The default value is: YES.
+
+INLINE_INFO            = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
+# (detailed) documentation of file and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order.
+# The default value is: YES.
+
+SORT_MEMBER_DOCS       = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
+# descriptions of file, namespace and class members alphabetically by member
+# name. If set to NO, the members will appear in declaration order. Note that
+# this will also influence the order of the classes in the class list.
+# The default value is: NO.
+
+SORT_BRIEF_DOCS        = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
+# (brief and detailed) documentation of class members so that constructors and
+# destructors are listed first. If set to NO the constructors will appear in the
+# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
+# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
+# member documentation.
+# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
+# detailed member documentation.
+# The default value is: NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
+# of group names into alphabetical order. If set to NO the group names will
+# appear in their defined order.
+# The default value is: NO.
+
+SORT_GROUP_NAMES       = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
+# fully-qualified names, including namespaces. If set to NO, the class list will
+# be sorted only by class name, not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the alphabetical
+# list.
+# The default value is: NO.
+
+SORT_BY_SCOPE_NAME     = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
+# type resolution of all parameters of a function it will reject a match between
+# the prototype and the implementation of a member function even if there is
+# only one candidate or it is obvious which candidate to choose by doing a
+# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
+# accept a match between prototype and implementation in such cases.
+# The default value is: NO.
+
+STRICT_PROTO_MATCHING  = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
+# list. This list is created by putting \todo commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TODOLIST      = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
+# list. This list is created by putting \test commands in the documentation.
+# The default value is: YES.
+
+GENERATE_TESTLIST      = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
+# list. This list is created by putting \bug commands in the documentation.
+# The default value is: YES.
+
+GENERATE_BUGLIST       = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
+# the deprecated list. This list is created by putting \deprecated commands in
+# the documentation.
+# The default value is: YES.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional documentation
+# sections, marked by \if <section_label> ... \endif and \cond <section_label>
+# ... \endcond blocks.
+
+ENABLED_SECTIONS       =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
+# initial value of a variable or macro / define can have for it to appear in the
+# documentation. If the initializer consists of more lines than specified here
+# it will be hidden. Use a value of 0 to hide initializers completely. The
+# appearance of the value of individual variables and macros / defines can be
+# controlled using \showinitializer or \hideinitializer command in the
+# documentation regardless of this setting.
+# Minimum value: 0, maximum value: 10000, default value: 30.
+
+MAX_INITIALIZER_LINES  = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
+# the bottom of the documentation of classes and structs. If set to YES, the
+# list will mention the files that were used to generate the documentation.
+# The default value is: YES.
+
+SHOW_USED_FILES        = YES
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
+# will remove the Files entry from the Quick Index and from the Folder Tree View
+# (if specified).
+# The default value is: YES.
+
+SHOW_FILES             = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
+# page. This will remove the Namespaces entry from the Quick Index and from the
+# Folder Tree View (if specified).
+# The default value is: YES.
+
+SHOW_NAMESPACES        = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command command input-file, where command is the value of the
+# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
+# by doxygen. Whatever the program writes to standard output is used as the file
+# version. For an example see the documentation.
+
+FILE_VERSION_FILTER    =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. To create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option. You can
+# optionally specify a file name after the option, if omitted DoxygenLayout.xml
+# will be used as the name of the layout file.
+#
+# Note that if you run doxygen from a directory containing a file called
+# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
+# tag is left empty.
+
+LAYOUT_FILE            =
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
+# the reference definitions. This must be a list of .bib files. The .bib
+# extension is automatically appended if omitted. This requires the bibtex tool
+# to be installed. See also https://en.wikipedia.org/wiki/BibTeX for more info.
+# For LaTeX the style of the bibliography can be controlled using
+# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
+# search path. See also \cite for info how to create references.
+
+CITE_BIB_FILES         =
+
+#---------------------------------------------------------------------------
+# Configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated to
+# standard output by doxygen. If QUIET is set to YES this implies that the
+# messages are off.
+# The default value is: NO.
+
+QUIET                  = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
+# this implies that the warnings are on.
+#
+# Tip: Turn warnings on while writing the documentation.
+# The default value is: YES.
+
+WARNINGS               = YES
+
+# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
+# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
+# will automatically be disabled.
+# The default value is: YES.
+
+WARN_IF_UNDOCUMENTED   = YES
+
+# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some parameters
+# in a documented function, or documenting parameters that don't exist or using
+# markup commands wrongly.
+# The default value is: YES.
+
+WARN_IF_DOC_ERROR      = YES
+
+# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
+# are documented, but have no documentation for their parameters or return
+# value. If set to NO, doxygen will only warn about wrong or incomplete
+# parameter documentation, but not about the absence of documentation.
+# The default value is: NO.
+
+WARN_NO_PARAMDOC       = NO
+
+# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
+# a warning is encountered.
+# The default value is: NO.
+
+WARN_AS_ERROR          = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that doxygen
+# can produce. The string should contain the $file, $line, and $text tags, which
+# will be replaced by the file and line number from which the warning originated
+# and the warning text. Optionally the format may contain $version, which will
+# be replaced by the version of the file (if it could be obtained via
+# FILE_VERSION_FILTER)
+# The default value is: $file:$line: $text.
+
+WARN_FORMAT            = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning and error
+# messages should be written. If left blank the output is written to standard
+# error (stderr).
+
+WARN_LOGFILE           =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag is used to specify the files and/or directories that contain
+# documented source files. You may enter file names like myfile.cpp or
+# directories like /usr/src/myproject. Separate the files or directories with
+# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
+# Note: If this tag is empty the current directory is searched.
+
+INPUT                  = src
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
+# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
+# documentation (see: https://www.gnu.org/software/libiconv/) for the list of
+# possible encodings.
+# The default value is: UTF-8.
+
+INPUT_ENCODING         = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
+# *.h) to filter out the source-files in the directories.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# read by doxygen.
+#
+# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
+# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
+# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
+# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08,
+# *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf and *.qsf.
+
+FILE_PATTERNS          = *.php \
+                         *.php4 \
+                         *.php5 \
+                         *.phtml
+
+# The RECURSIVE tag can be used to specify whether or not subdirectories should
+# be searched for input files as well.
+# The default value is: NO.
+
+RECURSIVE              = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should be
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+#
+# Note that relative paths are relative to the directory from which doxygen is
+# run.
+
+EXCLUDE                = src/Apache/Ignite/Internal
+
+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
+# directories that are symbolic links (a Unix file system feature) are excluded
+# from the input.
+# The default value is: NO.
+
+EXCLUDE_SYMLINKS       = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories.
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories for example use the pattern */test/*
+
+EXCLUDE_PATTERNS       =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+#
+# Note that the wildcards are matched against the file with absolute path, so to
+# exclude all test directories use the pattern */test/*
+
+EXCLUDE_SYMBOLS        =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or directories
+# that contain example code fragments that are included (see the \include
+# command).
+
+EXAMPLE_PATH           =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
+# *.h) to filter out the source-files in the directories. If left blank all
+# files are included.
+
+EXAMPLE_PATTERNS       = *
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude commands
+# irrespective of the value of the RECURSIVE tag.
+# The default value is: NO.
+
+EXAMPLE_RECURSIVE      = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or directories
+# that contain images that are to be included in the documentation (see the
+# \image command).
+
+IMAGE_PATH             =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command:
+#
+# <filter> <input-file>
+#
+# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
+# name of an input file. Doxygen will then use the output that the filter
+# program writes to standard output. If FILTER_PATTERNS is specified, this tag
+# will be ignored.
+#
+# Note that the filter must not add or remove lines; it is applied before the
+# code is scanned, but not when the output code is generated. If lines are added
+# or removed, the anchors will not be placed correctly.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# properly processed by doxygen.
+
+INPUT_FILTER           =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form: pattern=filter
+# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
+# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
+# patterns match the file name, INPUT_FILTER is applied.
+#
+# Note that for custom extensions or not directly supported extensions you also
+# need to set EXTENSION_MAPPING for the extension otherwise the files are not
+# properly processed by doxygen.
+
+FILTER_PATTERNS        =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will also be used to filter the input files that are used for
+# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
+# The default value is: NO.
+
+FILTER_SOURCE_FILES    = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
+# it is also possible to disable source filtering for a specific pattern using
+# *.ext= (so without naming a filter).
+# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
+
+FILTER_SOURCE_PATTERNS =
+
+# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
+# is part of the input, its contents will be placed on the main page
+# (index.html). This can be useful if you have a project on for instance GitHub
+# and want to reuse the introduction page also for the doxygen output.
+
+USE_MDFILE_AS_MAINPAGE =
+
+#---------------------------------------------------------------------------
+# Configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
+# generated. Documented entities will be cross-referenced with these sources.
+#
+# Note: To get rid of all source code in the generated output, make sure that
+# also VERBATIM_HEADERS is set to NO.
+# The default value is: NO.
+
+SOURCE_BROWSER         = NO
+
+# Setting the INLINE_SOURCES tag to YES will include the body of functions,
+# classes and enums directly into the documentation.
+# The default value is: NO.
+
+INLINE_SOURCES         = NO
+
+# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
+# special comment blocks from generated source code fragments. Normal C, C++ and
+# Fortran comments will always remain visible.
+# The default value is: YES.
+
+STRIP_CODE_COMMENTS    = YES
+
+# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
+# function all documented functions referencing it will be listed.
+# The default value is: NO.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES then for each documented function
+# all documented entities called/used by that function will be listed.
+# The default value is: NO.
+
+REFERENCES_RELATION    = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
+# to YES then the hyperlinks from functions in REFERENCES_RELATION and
+# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
+# link to the documentation.
+# The default value is: YES.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
+# source code will show a tooltip with additional information such as prototype,
+# brief description and links to the definition and documentation. Since this
+# will make the HTML file larger and loading of large files a bit slower, you
+# can opt to disable this feature.
+# The default value is: YES.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+SOURCE_TOOLTIPS        = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code will
+# point to the HTML generated by the htags(1) tool instead of doxygen built-in
+# source browser. The htags tool is part of GNU's global source tagging system
+# (see https://www.gnu.org/software/global/global.html). You will need version
+# 4.8.6 or higher.
+#
+# To use it do the following:
+# - Install the latest version of global
+# - Enable SOURCE_BROWSER and USE_HTAGS in the config file
+# - Make sure the INPUT points to the root of the source tree
+# - Run doxygen as normal
+#
+# Doxygen will invoke htags (and that will in turn invoke gtags), so these
+# tools must be available from the command line (i.e. in the search path).
+#
+# The result: instead of the source browser generated by doxygen, the links to
+# source code will now point to the output of htags.
+# The default value is: NO.
+# This tag requires that the tag SOURCE_BROWSER is set to YES.
+
+USE_HTAGS              = NO
+
+# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
+# verbatim copy of the header file for each class for which an include is
+# specified. Set to NO to disable this.
+# See also: Section \class.
+# The default value is: YES.
+
+VERBATIM_HEADERS       = YES
+
+# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the
+# clang parser (see: http://clang.llvm.org/) for more accurate parsing at the
+# cost of reduced performance. This can be particularly helpful with template
+# rich C++ code for which doxygen's built-in parser lacks the necessary type
+# information.
+# Note: The availability of this option depends on whether or not doxygen was
+# generated with the -Duse-libclang=ON option for CMake.
+# The default value is: NO.
+
+CLANG_ASSISTED_PARSING = NO
+
+# If clang assisted parsing is enabled you can provide the compiler with command
+# line options that you would normally use when invoking the compiler. Note that
+# the include paths will already be set by doxygen for the files and directories
+# specified with INPUT and INCLUDE_PATH.
+# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES.
+
+CLANG_OPTIONS          =
+
+# If clang assisted parsing is enabled you can provide the clang parser with the
+# path to the compilation database (see:
+# http://clang.llvm.org/docs/HowToSetupToolingForLLVM.html) used when the files
+# were built. This is equivalent to specifying the "-p" option to a clang tool,
+# such as clang-check. These options will then be passed to the parser.
+# Note: The availability of this option depends on whether or not doxygen was
+# generated with the -Duse-libclang=ON option for CMake.
+# The default value is: 0.
+
+CLANG_COMPILATION_DATABASE_PATH                                        = 0
+
+#---------------------------------------------------------------------------
+# Configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
+# compounds will be generated. Enable this if the project contains a lot of
+# classes, structs, unions or interfaces.
+# The default value is: YES.
+
+ALPHABETICAL_INDEX     = YES
+
+# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
+# which the alphabetical index list will be split.
+# Minimum value: 1, maximum value: 20, default value: 5.
+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
+
+COLS_IN_ALPHA_INDEX    = 5
+
+# In case all classes in a project start with a common prefix, all classes will
+# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
+# can be used to specify a prefix (or a list of prefixes) that should be ignored
+# while generating the index headers.
+# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
+
+IGNORE_PREFIX          =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
+# The default value is: YES.
+
+GENERATE_HTML          = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_OUTPUT            = html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
+# generated HTML page (for example: .htm, .php, .asp).
+# The default value is: .html.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FILE_EXTENSION    = .html
+
+# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
+# each generated HTML page. If the tag is left blank doxygen will generate a
+# standard header.
+#
+# To get valid HTML the header file that includes any scripts and style sheets
+# that doxygen needs, which is dependent on the configuration options used (e.g.
+# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
+# default header using
+# doxygen -w html new_header.html new_footer.html new_stylesheet.css
+# YourConfigFile
+# and then modify the file new_header.html. See also section "Doxygen usage"
+# for information on how to generate the default header that doxygen normally
+# uses.
+# Note: The header is subject to change so you typically have to regenerate the
+# default header when upgrading to a newer version of doxygen. For a description
+# of the possible markers and block names see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_HEADER            =
+
+# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
+# generated HTML page. If the tag is left blank doxygen will generate a standard
+# footer. See HTML_HEADER for more information on how to generate a default
+# footer and what special commands can be used inside the footer. See also
+# section "Doxygen usage" for information on how to generate the default footer
+# that doxygen normally uses.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_FOOTER            =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
+# sheet that is used by each HTML page. It can be used to fine-tune the look of
+# the HTML output. If left blank doxygen will generate a default style sheet.
+# See also section "Doxygen usage" for information on how to generate the style
+# sheet that doxygen normally uses.
+# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
+# it is more robust and this tag (HTML_STYLESHEET) will in the future become
+# obsolete.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_STYLESHEET        =
+
+# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
+# cascading style sheets that are included after the standard style sheets
+# created by doxygen. Using this option one can overrule certain style aspects.
+# This is preferred over using HTML_STYLESHEET since it does not replace the
+# standard style sheet and is therefore more robust against future updates.
+# Doxygen will copy the style sheet files to the output directory.
+# Note: The order of the extra style sheet files is of importance (e.g. the last
+# style sheet in the list overrules the setting of the previous ones in the
+# list). For an example see the documentation.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_STYLESHEET  =
+
+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the HTML output directory. Note
+# that these files will be copied to the base HTML output directory. Use the
+# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
+# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
+# files will be copied as-is; there are no commands or markers available.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_EXTRA_FILES       =
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
+# will adjust the colors in the style sheet and background images according to
+# this color. Hue is specified as an angle on a colorwheel, see
+# https://en.wikipedia.org/wiki/Hue for more information. For instance the value
+# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
+# purple, and 360 is red again.
+# Minimum value: 0, maximum value: 359, default value: 220.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_HUE    = 220
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
+# in the HTML output. For a value of 0 the output will use grayscales only. A
+# value of 255 will produce the most vivid colors.
+# Minimum value: 0, maximum value: 255, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_SAT    = 100
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
+# luminance component of the colors in the HTML output. Values below 100
+# gradually make the output lighter, whereas values above 100 make the output
+# darker. The value divided by 100 is the actual gamma applied, so 80 represents
+# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
+# change the gamma.
+# Minimum value: 40, maximum value: 240, default value: 80.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_COLORSTYLE_GAMMA  = 80
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting this
+# to YES can help to show when doxygen was last run and thus if the
+# documentation is up to date.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_TIMESTAMP         = NO
+
+# If the HTML_DYNAMIC_MENUS tag is set to YES then the generated HTML
+# documentation will contain a main index with vertical navigation menus that
+# are dynamically created via Javascript. If disabled, the navigation index will
+# consists of multiple levels of tabs that are statically embedded in every HTML
+# page. Disable this option to support browsers that do not have Javascript,
+# like the Qt help browser.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_DYNAMIC_MENUS     = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_DYNAMIC_SECTIONS  = NO
+
+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
+# shown in the various tree structured indices initially; the user can expand
+# and collapse entries dynamically later on. Doxygen will expand the tree to
+# such a level that at most the specified number of entries are visible (unless
+# a fully collapsed tree already exceeds this amount). So setting the number of
+# entries 1 will produce a full collapsed tree by default. 0 is a special value
+# representing an infinite number of entries and will result in a full expanded
+# tree by default.
+# Minimum value: 0, maximum value: 9999, default value: 100.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+HTML_INDEX_NUM_ENTRIES = 100
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files will be
+# generated that can be used as input for Apple's Xcode 3 integrated development
+# environment (see: https://developer.apple.com/tools/xcode/), introduced with
+# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
+# Makefile in the HTML output directory. Running make will produce the docset in
+# that directory and running make install will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
+# startup. See https://developer.apple.com/tools/creatingdocsetswithdoxygen.html
+# for more information.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_DOCSET        = NO
+
+# This tag determines the name of the docset feed. A documentation feed provides
+# an umbrella under which multiple documentation sets from a single provider
+# (such as a company or product suite) can be grouped.
+# The default value is: Doxygen generated docs.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_FEEDNAME        = "Doxygen generated docs"
+
+# This tag specifies a string that should uniquely identify the documentation
+# set bundle. This should be a reverse domain-name style string, e.g.
+# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_BUNDLE_ID       = org.doxygen.Project
+
+# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
+# the documentation publisher. This should be a reverse domain-name style
+# string, e.g. com.mycompany.MyDocSet.documentation.
+# The default value is: org.doxygen.Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_ID    = org.doxygen.Publisher
+
+# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
+# The default value is: Publisher.
+# This tag requires that the tag GENERATE_DOCSET is set to YES.
+
+DOCSET_PUBLISHER_NAME  = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
+# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
+# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
+# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
+# Windows.
+#
+# The HTML Help Workshop contains a compiler that can convert all HTML output
+# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
+# files are now used as the Windows 98 help format, and will replace the old
+# Windows help format (.hlp) on all Windows platforms in the future. Compressed
+# HTML files also contain an index, a table of contents, and you can search for
+# words in the documentation. The HTML workshop also contains a viewer for
+# compressed HTML files.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_HTMLHELP      = NO
+
+# The CHM_FILE tag can be used to specify the file name of the resulting .chm
+# file. You can add a path in front of the file if the result should not be
+# written to the html output directory.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_FILE               =
+
+# The HHC_LOCATION tag can be used to specify the location (absolute path
+# including file name) of the HTML help compiler (hhc.exe). If non-empty,
+# doxygen will try to run the HTML help compiler on the generated index.hhp.
+# The file has to be specified with full path.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+HHC_LOCATION           =
+
+# The GENERATE_CHI flag controls if a separate .chi index file is generated
+# (YES) or that it should be included in the master .chm file (NO).
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+GENERATE_CHI           = NO
+
+# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
+# and project file content.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+CHM_INDEX_ENCODING     =
+
+# The BINARY_TOC flag controls whether a binary table of contents is generated
+# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
+# enables the Previous and Next buttons.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+BINARY_TOC             = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members to
+# the table of contents of the HTML help documentation and to the tree view.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
+
+TOC_EXPAND             = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
+# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
+# (.qch) of the generated HTML documentation.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_QHP           = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
+# the file name of the resulting .qch file. The path specified is relative to
+# the HTML output folder.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QCH_FILE               =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
+# Project output. For more information please see Qt Help Project / Namespace
+# (see: http://doc.qt.io/qt-4.8/qthelpproject.html#namespace).
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_NAMESPACE          = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
+# Help Project output. For more information please see Qt Help Project / Virtual
+# Folders (see: http://doc.qt.io/qt-4.8/qthelpproject.html#virtual-folders).
+# The default value is: doc.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_VIRTUAL_FOLDER     = doc
+
+# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
+# filter to add. For more information please see Qt Help Project / Custom
+# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_NAME   =
+
+# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
+# custom filter to add. For more information please see Qt Help Project / Custom
+# Filters (see: http://doc.qt.io/qt-4.8/qthelpproject.html#custom-filters).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_CUST_FILTER_ATTRS  =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
+# project's filter section matches. Qt Help Project / Filter Attributes (see:
+# http://doc.qt.io/qt-4.8/qthelpproject.html#filter-attributes).
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHP_SECT_FILTER_ATTRS  =
+
+# The QHG_LOCATION tag can be used to specify the location of Qt's
+# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
+# generated .qhp file.
+# This tag requires that the tag GENERATE_QHP is set to YES.
+
+QHG_LOCATION           =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
+# generated, together with the HTML files, they form an Eclipse help plugin. To
+# install this plugin and make it available under the help contents menu in
+# Eclipse, the contents of the directory containing the HTML and XML files needs
+# to be copied into the plugins directory of eclipse. The name of the directory
+# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
+# After copying Eclipse needs to be restarted before the help appears.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_ECLIPSEHELP   = NO
+
+# A unique identifier for the Eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have this
+# name. Each documentation set should have its own identifier.
+# The default value is: org.doxygen.Project.
+# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
+
+ECLIPSE_DOC_ID         = org.doxygen.Project
+
+# If you want full control over the layout of the generated HTML pages it might
+# be necessary to disable the index and replace it with your own. The
+# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
+# of each HTML page. A value of NO enables the index and the value YES disables
+# it. Since the tabs in the index contain the same information as the navigation
+# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+DISABLE_INDEX          = NO
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information. If the tag
+# value is set to YES, a side panel will be generated containing a tree-like
+# index structure (just like the one that is generated for HTML Help). For this
+# to work a browser that supports JavaScript, DHTML, CSS and frames is required
+# (i.e. any modern browser). Windows users are probably better off using the
+# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
+# further fine-tune the look of the index. As an example, the default style
+# sheet generated by doxygen has an example that shows how to put an image at
+# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
+# the same information as the tab index, you could consider setting
+# DISABLE_INDEX to YES when enabling this option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+GENERATE_TREEVIEW      = NO
+
+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
+# doxygen will group on one line in the generated HTML documentation.
+#
+# Note that a value of 0 will completely suppress the enum values from appearing
+# in the overview section.
+# Minimum value: 0, maximum value: 20, default value: 4.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+ENUM_VALUES_PER_LINE   = 4
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
+# to set the initial width (in pixels) of the frame in which the tree is shown.
+# Minimum value: 0, maximum value: 1500, default value: 250.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+TREEVIEW_WIDTH         = 250
+
+# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
+# external symbols imported via tag files in a separate window.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+EXT_LINKS_IN_WINDOW    = NO
+
+# Use this tag to change the font size of LaTeX formulas included as images in
+# the HTML documentation. When you change the font size after a successful
+# doxygen run you need to manually remove any form_*.png images from the HTML
+# output directory to force them to be regenerated.
+# Minimum value: 8, maximum value: 50, default value: 10.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_FONTSIZE       = 10
+
+# Use the FORMULA_TRANSPARENT tag to determine whether or not the images
+# generated for formulas are transparent PNGs. Transparent PNGs are not
+# supported properly for IE 6.0, but are supported on all modern browsers.
+#
+# Note that when changing this option you need to delete any form_*.png files in
+# the HTML output directory before the changes have effect.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+FORMULA_TRANSPARENT    = YES
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
+# https://www.mathjax.org) which uses client side Javascript for the rendering
+# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
+# installed or if you want to formulas look prettier in the HTML output. When
+# enabled you may also need to install MathJax separately and configure the path
+# to it using the MATHJAX_RELPATH option.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+USE_MATHJAX            = NO
+
+# When MathJax is enabled you can set the default output format to be used for
+# the MathJax output. See the MathJax site (see:
+# http://docs.mathjax.org/en/latest/output.html) for more details.
+# Possible values are: HTML-CSS (which is slower, but has the best
+# compatibility), NativeMML (i.e. MathML) and SVG.
+# The default value is: HTML-CSS.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_FORMAT         = HTML-CSS
+
+# When MathJax is enabled you need to specify the location relative to the HTML
+# output directory using the MATHJAX_RELPATH option. The destination directory
+# should contain the MathJax.js script. For instance, if the mathjax directory
+# is located at the same level as the HTML output directory, then
+# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
+# Content Delivery Network so you can quickly see the result without installing
+# MathJax. However, it is strongly recommended to install a local copy of
+# MathJax from https://www.mathjax.org before deployment.
+# The default value is: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_RELPATH        = https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/
+
+# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
+# extension names that should be enabled during MathJax rendering. For example
+# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_EXTENSIONS     =
+
+# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
+# of code that will be used on startup of the MathJax code. See the MathJax site
+# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
+# example see the documentation.
+# This tag requires that the tag USE_MATHJAX is set to YES.
+
+MATHJAX_CODEFILE       =
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
+# the HTML output. The underlying search engine uses javascript and DHTML and
+# should work on any modern browser. Note that when using HTML help
+# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
+# there is already a search function so this one should typically be disabled.
+# For large projects the javascript based search engine can be slow, then
+# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
+# search using the keyboard; to jump to the search box use <access key> + S
+# (what the <access key> is depends on the OS and browser, but it is typically
+# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down
+# key> to jump into the search results window, the results can be navigated
+# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel
+# the search. The filter options can be selected when the cursor is inside the
+# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>
+# to select a filter and <Enter> or <escape> to activate or cancel the filter
+# option.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_HTML is set to YES.
+
+SEARCHENGINE           = YES
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a web server instead of a web client using Javascript. There
+# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
+# setting. When disabled, doxygen will generate a PHP script for searching and
+# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
+# and searching needs to be provided by external tools. See the section
+# "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SERVER_BASED_SEARCH    = NO
+
+# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
+# script for searching. Instead the search results are written to an XML file
+# which needs to be processed by an external indexer. Doxygen will invoke an
+# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
+# search results.
+#
+# Doxygen ships with an example indexer (doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see: https://xapian.org/).
+#
+# See the section "External Indexing and Searching" for details.
+# The default value is: NO.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH        = NO
+
+# The SEARCHENGINE_URL should point to a search engine hosted by a web server
+# which will return the search results when EXTERNAL_SEARCH is enabled.
+#
+# Doxygen ships with an example indexer (doxyindexer) and search engine
+# (doxysearch.cgi) which are based on the open source search engine library
+# Xapian (see: https://xapian.org/). See the section "External Indexing and
+# Searching" for details.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHENGINE_URL       =
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
+# search data is written to a file for indexing by an external tool. With the
+# SEARCHDATA_FILE tag the name of this file can be specified.
+# The default file is: searchdata.xml.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+SEARCHDATA_FILE        = searchdata.xml
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
+# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
+# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
+# projects and redirect the results back to the right project.
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTERNAL_SEARCH_ID     =
+
+# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
+# projects other than the one defined by this configuration file, but that are
+# all added to the same external search index. Each project needs to have a
+# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
+# to a relative location where the documentation can be found. The format is:
+# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
+# This tag requires that the tag SEARCHENGINE is set to YES.
+
+EXTRA_SEARCH_MAPPINGS  =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
+# The default value is: YES.
+
+GENERATE_LATEX         = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: latex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_OUTPUT           = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked.
+#
+# Note that when enabling USE_PDFLATEX this option is only used for generating
+# bitmaps for formulas in the HTML output, but not in the Makefile that is
+# written to the output directory.
+# The default file is: latex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_CMD_NAME         = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
+# index for LaTeX.
+# The default file is: makeindex.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+MAKEINDEX_CMD_NAME     = makeindex
+
+# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+COMPACT_LATEX          = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used by the
+# printer.
+# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
+# 14 inches) and executive (7.25 x 10.5 inches).
+# The default value is: a4.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PAPER_TYPE             = a4
+
+# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
+# that should be included in the LaTeX output. The package can be specified just
+# by its name or with the correct syntax as to be used with the LaTeX
+# \usepackage command. To get the times font for instance you can specify :
+# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
+# To use the option intlimits with the amsmath package you can specify:
+# EXTRA_PACKAGES=[intlimits]{amsmath}
+# If left blank no extra packages will be included.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+EXTRA_PACKAGES         =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
+# generated LaTeX document. The header should contain everything until the first
+# chapter. If it is left blank doxygen will generate a standard header. See
+# section "Doxygen usage" for information on how to let doxygen write the
+# default header to a separate file.
+#
+# Note: Only use a user-defined header if you know what you are doing! The
+# following commands have a special meaning inside the header: $title,
+# $datetime, $date, $doxygenversion, $projectname, $projectnumber,
+# $projectbrief, $projectlogo. Doxygen will replace $title with the empty
+# string, for the replacement values of the other commands the user is referred
+# to HTML_HEADER.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HEADER           =
+
+# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
+# generated LaTeX document. The footer should contain everything after the last
+# chapter. If it is left blank doxygen will generate a standard footer. See
+# LATEX_HEADER for more information on how to generate a default footer and what
+# special commands can be used inside the footer.
+#
+# Note: Only use a user-defined footer if you know what you are doing!
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_FOOTER           =
+
+# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
+# LaTeX style sheets that are included after the standard style sheets created
+# by doxygen. Using this option one can overrule certain style aspects. Doxygen
+# will copy the style sheet files to the output directory.
+# Note: The order of the extra style sheet files is of importance (e.g. the last
+# style sheet in the list overrules the setting of the previous ones in the
+# list).
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EXTRA_STYLESHEET =
+
+# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the LATEX_OUTPUT output
+# directory. Note that the files will be copied as-is; there are no commands or
+# markers available.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_EXTRA_FILES      =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
+# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
+# contain links (just like the HTML output) instead of page references. This
+# makes the output suitable for online browsing using a PDF viewer.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+PDF_HYPERLINKS         = YES
+
+# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
+# the PDF file directly from the LaTeX files. Set this option to YES, to get a
+# higher quality PDF documentation.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+USE_PDFLATEX           = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
+# command to the generated LaTeX files. This will instruct LaTeX to keep running
+# if errors occur, instead of asking the user for help. This option is also used
+# when generating formulas in HTML.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BATCHMODE        = NO
+
+# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
+# index chapters (such as File Index, Compound Index, etc.) in the output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_HIDE_INDICES     = NO
+
+# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
+# code with syntax highlighting in the LaTeX output.
+#
+# Note that which sources are shown also depends on other settings such as
+# SOURCE_BROWSER.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_SOURCE_CODE      = NO
+
+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
+# bibliography, e.g. plainnat, or ieeetr. See
+# https://en.wikipedia.org/wiki/BibTeX and \cite for more info.
+# The default value is: plain.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_BIB_STYLE        = plain
+
+# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated
+# page will contain the date and time when the page was generated. Setting this
+# to NO can help when comparing the output of multiple runs.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_LATEX is set to YES.
+
+LATEX_TIMESTAMP        = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
+# RTF output is optimized for Word 97 and may not look too pretty with other RTF
+# readers/editors.
+# The default value is: NO.
+
+GENERATE_RTF           = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: rtf.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_OUTPUT             = rtf
+
+# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
+# documents. This may be useful for small projects and may help to save some
+# trees in general.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+COMPACT_RTF            = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
+# contain hyperlink fields. The RTF file will contain links (just like the HTML
+# output) instead of page references. This makes the output suitable for online
+# browsing using Word or some other Word compatible readers that support those
+# fields.
+#
+# Note: WordPad (write) and others do not support links.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_HYPERLINKS         = NO
+
+# Load stylesheet definitions from file. Syntax is similar to doxygen's config
+# file, i.e. a series of assignments. You only have to provide replacements,
+# missing definitions are set to their default value.
+#
+# See also section "Doxygen usage" for information on how to generate the
+# default style sheet that doxygen normally uses.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_STYLESHEET_FILE    =
+
+# Set optional variables used in the generation of an RTF document. Syntax is
+# similar to doxygen's config file. A template extensions file can be generated
+# using doxygen -e rtf extensionFile.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_EXTENSIONS_FILE    =
+
+# If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code
+# with syntax highlighting in the RTF output.
+#
+# Note that which sources are shown also depends on other settings such as
+# SOURCE_BROWSER.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_RTF is set to YES.
+
+RTF_SOURCE_CODE        = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
+# classes and files.
+# The default value is: NO.
+
+GENERATE_MAN           = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it. A directory man3 will be created inside the directory specified by
+# MAN_OUTPUT.
+# The default directory is: man.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_OUTPUT             = man
+
+# The MAN_EXTENSION tag determines the extension that is added to the generated
+# man pages. In case the manual section does not start with a number, the number
+# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
+# optional.
+# The default value is: .3.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_EXTENSION          = .3
+
+# The MAN_SUBDIR tag determines the name of the directory created within
+# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
+# MAN_EXTENSION with the initial . removed.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_SUBDIR             =
+
+# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
+# will generate one additional man file for each entity documented in the real
+# man page(s). These additional files only source the real man page, but without
+# them the man command would be unable to find the correct page.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_MAN is set to YES.
+
+MAN_LINKS              = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
+# captures the structure of the code including all documentation.
+# The default value is: NO.
+
+GENERATE_XML           = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
+# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
+# it.
+# The default directory is: xml.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_OUTPUT             = xml
+
+# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
+# listings (including syntax highlighting and cross-referencing information) to
+# the XML output. Note that enabling this will significantly increase the size
+# of the XML output.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_XML is set to YES.
+
+XML_PROGRAMLISTING     = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to the DOCBOOK output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
+# that can be used to generate PDF.
+# The default value is: NO.
+
+GENERATE_DOCBOOK       = NO
+
+# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
+# front of it.
+# The default directory is: docbook.
+# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
+
+DOCBOOK_OUTPUT         = docbook
+
+# If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the
+# program listings (including syntax highlighting and cross-referencing
+# information) to the DOCBOOK output. Note that enabling this will significantly
+# increase the size of the DOCBOOK output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
+
+DOCBOOK_PROGRAMLISTING = NO
+
+#---------------------------------------------------------------------------
+# Configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
+# AutoGen Definitions (see http://autogen.sourceforge.net/) file that captures
+# the structure of the code including all documentation. Note that this feature
+# is still experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_AUTOGEN_DEF   = NO
+
+#---------------------------------------------------------------------------
+# Configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
+# file that captures the structure of the code including all documentation.
+#
+# Note that this feature is still experimental and incomplete at the moment.
+# The default value is: NO.
+
+GENERATE_PERLMOD       = NO
+
+# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
+# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
+# output from the Perl module output.
+# The default value is: NO.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_LATEX          = NO
+
+# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
+# formatted so it can be parsed by a human reader. This is useful if you want to
+# understand what is going on. On the other hand, if this tag is set to NO, the
+# size of the Perl module output will be much smaller and Perl will parse it
+# just the same.
+# The default value is: YES.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_PRETTY         = YES
+
+# The names of the make variables in the generated doxyrules.make file are
+# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
+# so different doxyrules.make files included by the same Makefile don't
+# overwrite each other's variables.
+# This tag requires that the tag GENERATE_PERLMOD is set to YES.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
+# C-preprocessor directives found in the sources and include files.
+# The default value is: YES.
+
+ENABLE_PREPROCESSING   = YES
+
+# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
+# in the source code. If set to NO, only conditional compilation will be
+# performed. Macro expansion can be done in a controlled way by setting
+# EXPAND_ONLY_PREDEF to YES.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+MACRO_EXPANSION        = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
+# the macro expansion is limited to the macros specified with the PREDEFINED and
+# EXPAND_AS_DEFINED tags.
+# The default value is: NO.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_ONLY_PREDEF     = NO
+
+# If the SEARCH_INCLUDES tag is set to YES, the include files in the
+# INCLUDE_PATH will be searched if a #include is found.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SEARCH_INCLUDES        = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by the
+# preprocessor.
+# This tag requires that the tag SEARCH_INCLUDES is set to YES.
+
+INCLUDE_PATH           =
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will be
+# used.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+INCLUDE_FILE_PATTERNS  =
+
+# The PREDEFINED tag can be used to specify one or more macro names that are
+# defined before the preprocessor is started (similar to the -D option of e.g.
+# gcc). The argument of the tag is a list of macros of the form: name or
+# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
+# is assumed. To prevent a macro definition from being undefined via #undef or
+# recursively expanded use the := operator instead of the = operator.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+PREDEFINED             =
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
+# tag can be used to specify a list of macro names that should be expanded. The
+# macro definition that is found in the sources will be used. Use the PREDEFINED
+# tag if you want to use a different macro definition that overrules the
+# definition found in the source code.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+EXPAND_AS_DEFINED      =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
+# remove all references to function-like macros that are alone on a line, have
+# an all uppercase name, and do not end with a semicolon. Such function macros
+# are typically used for boiler-plate code, and will confuse the parser if not
+# removed.
+# The default value is: YES.
+# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
+
+SKIP_FUNCTION_MACROS   = YES
+
+#---------------------------------------------------------------------------
+# Configuration options related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES tag can be used to specify one or more tag files. For each tag
+# file the location of the external documentation should be added. The format of
+# a tag file without this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where loc1 and loc2 can be relative or absolute paths or URLs. See the
+# section "Linking to external documentation" for more information about the use
+# of tag files.
+# Note: Each tag file must have a unique name (where the name does NOT include
+# the path). If a tag file is not located in the directory in which doxygen is
+# run, you must also specify the path to the tagfile here.
+
+TAGFILES               =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
+# tag file that is based on the input files it reads. See section "Linking to
+# external documentation" for more information about the usage of tag files.
+
+GENERATE_TAGFILE       =
+
+# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
+# the class index. If set to NO, only the inherited external classes will be
+# listed.
+# The default value is: NO.
+
+ALLEXTERNALS           = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will be
+# listed.
+# The default value is: YES.
+
+EXTERNAL_GROUPS        = YES
+
+# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
+# the related pages index. If set to NO, only the current project's pages will
+# be listed.
+# The default value is: YES.
+
+EXTERNAL_PAGES         = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of 'which perl').
+# The default file (with absolute path) is: /usr/bin/perl.
+
+PERL_PATH              = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
+# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
+# NO turns the diagrams off. Note that this option also works with HAVE_DOT
+# disabled, but it is recommended to install and use dot, since it yields more
+# powerful graphs.
+# The default value is: YES.
+
+CLASS_DIAGRAMS         = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see:
+# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH            =
+
+# You can include diagrams made with dia in doxygen documentation. Doxygen will
+# then run dia to produce the diagram and insert it in the documentation. The
+# DIA_PATH tag allows you to specify the directory where the dia binary resides.
+# If left empty dia is assumed to be found in the default search path.
+
+DIA_PATH               =
+
+# If set to YES the inheritance and collaboration graphs will hide inheritance
+# and usage relations if the target is undocumented or is not a class.
+# The default value is: YES.
+
+HIDE_UNDOC_RELATIONS   = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz (see:
+# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
+# Bell Labs. The other options in this section have no effect if this option is
+# set to NO
+# The default value is: NO.
+
+HAVE_DOT               = NO
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
+# to run in parallel. When set to 0 doxygen will base this on the number of
+# processors available in the system. You can set it explicitly to a value
+# larger than 0 to get control over the balance between CPU load and processing
+# speed.
+# Minimum value: 0, maximum value: 32, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_NUM_THREADS        = 0
+
+# When you want a differently looking font in the dot files that doxygen
+# generates you can specify the font name using DOT_FONTNAME. You need to make
+# sure dot is able to find the font, which can be done by putting it in a
+# standard location or by setting the DOTFONTPATH environment variable or by
+# setting DOT_FONTPATH to the directory containing the font.
+# The default value is: Helvetica.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTNAME           = Helvetica
+
+# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
+# dot graphs.
+# Minimum value: 4, maximum value: 24, default value: 10.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTSIZE           = 10
+
+# By default doxygen will tell dot to use the default font as specified with
+# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
+# the path where dot can find it using this tag.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_FONTPATH           =
+
+# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
+# each documented class showing the direct and indirect inheritance relations.
+# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CLASS_GRAPH            = YES
+
+# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
+# graph for each documented class showing the direct and indirect implementation
+# dependencies (inheritance, containment, and class references variables) of the
+# class with other documented classes.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+COLLABORATION_GRAPH    = YES
+
+# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
+# groups, showing the direct groups dependencies.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GROUP_GRAPHS           = YES
+
+# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+UML_LOOK               = NO
+
+# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
+# class node. If there are many fields or methods and many nodes the graph may
+# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
+# number of items for each type to make the size more manageable. Set this to 0
+# for no limit. Note that the threshold may be exceeded by 50% before the limit
+# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
+# but if the number exceeds 15, the total amount of fields shown is limited to
+# 10.
+# Minimum value: 0, maximum value: 100, default value: 10.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+UML_LIMIT_NUM_FIELDS   = 10
+
+# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
+# collaboration graphs will show the relations between templates and their
+# instances.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+TEMPLATE_RELATIONS     = NO
+
+# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
+# YES then doxygen will generate a graph for each documented file showing the
+# direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDE_GRAPH          = YES
+
+# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
+# set to YES then doxygen will generate a graph for each documented file showing
+# the direct and indirect include dependencies of the file with other documented
+# files.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INCLUDED_BY_GRAPH      = YES
+
+# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable call graphs for selected
+# functions only using the \callgraph command. Disabling a call graph can be
+# accomplished by means of the command \hidecallgraph.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALL_GRAPH             = NO
+
+# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
+# dependency graph for every global function or class method.
+#
+# Note that enabling this option will significantly increase the time of a run.
+# So in most cases it will be better to enable caller graphs for selected
+# functions only using the \callergraph command. Disabling a caller graph can be
+# accomplished by means of the command \hidecallergraph.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+CALLER_GRAPH           = NO
+
+# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
+# hierarchy of all classes instead of a textual one.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GRAPHICAL_HIERARCHY    = YES
+
+# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
+# dependencies a directory has on other directories in a graphical way. The
+# dependency relations are determined by the #include relations between the
+# files in the directories.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DIRECTORY_GRAPH        = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. For an explanation of the image formats see the section
+# output formats in the documentation of the dot tool (Graphviz (see:
+# http://www.graphviz.org/)).
+# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
+# to make the SVG files visible in IE 9+ (other browsers do not have this
+# requirement).
+# Possible values are: png, jpg, gif, svg, png:gd, png:gd:gd, png:cairo,
+# png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
+# png:gdiplus:gdiplus.
+# The default value is: png.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_IMAGE_FORMAT       = png
+
+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
+# enable generation of interactive SVG images that allow zooming and panning.
+#
+# Note that this requires a modern browser other than Internet Explorer. Tested
+# and working are Firefox, Chrome, Safari, and Opera.
+# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
+# the SVG files visible. Older versions of IE do not have SVG support.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+INTERACTIVE_SVG        = NO
+
+# The DOT_PATH tag can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_PATH               =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the \dotfile
+# command).
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOTFILE_DIRS           =
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that
+# contain msc files that are included in the documentation (see the \mscfile
+# command).
+
+MSCFILE_DIRS           =
+
+# The DIAFILE_DIRS tag can be used to specify one or more directories that
+# contain dia files that are included in the documentation (see the \diafile
+# command).
+
+DIAFILE_DIRS           =
+
+# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
+# path where java can find the plantuml.jar file. If left blank, it is assumed
+# PlantUML is not used or called during a preprocessing step. Doxygen will
+# generate a warning when it encounters a \startuml command in this case and
+# will not generate output for the diagram.
+
+PLANTUML_JAR_PATH      =
+
+# When using plantuml, the PLANTUML_CFG_FILE tag can be used to specify a
+# configuration file for plantuml.
+
+PLANTUML_CFG_FILE      =
+
+# When using plantuml, the specified paths are searched for files specified by
+# the !include statement in a plantuml block.
+
+PLANTUML_INCLUDE_PATH  =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
+# that will be shown in the graph. If the number of nodes in a graph becomes
+# larger than this value, doxygen will truncate the graph, which is visualized
+# by representing a node as a red box. Note that doxygen if the number of direct
+# children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
+# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+# Minimum value: 0, maximum value: 10000, default value: 50.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_GRAPH_MAX_NODES    = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
+# generated by dot. A depth value of 3 means that only nodes reachable from the
+# root by following a path via at most 3 edges will be shown. Nodes that lay
+# further from the root node will be omitted. Note that setting this option to 1
+# or 2 may greatly reduce the computation time needed for large code bases. Also
+# note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+# Minimum value: 0, maximum value: 1000, default value: 0.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+MAX_DOT_GRAPH_DEPTH    = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not seem
+# to support this out of the box.
+#
+# Warning: Depending on the platform used, enabling this option may lead to
+# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
+# read).
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_TRANSPARENT        = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10) support
+# this, this feature is disabled by default.
+# The default value is: NO.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_MULTI_TARGETS      = NO
+
+# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
+# explaining the meaning of the various boxes and arrows in the dot generated
+# graphs.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+GENERATE_LEGEND        = YES
+
+# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot
+# files that are used to generate the various graphs.
+# The default value is: YES.
+# This tag requires that the tag HAVE_DOT is set to YES.
+
+DOT_CLEANUP            = YES
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..b07c058
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,27 @@
+{
+    "name": "apache/apache-ignite-client",
+    "type": "library",
+    "description": "PHP Client for Apache Ignite",
+    "keywords": ["apache", "ignite", "client"],
+    "homepage": "https://github.com/apache/ignite",
+    "license": "Apache-2.0",
+    "authors": [
+    ],
+    "require": {
+        "php": ">=7.2.0",
+        "ext-mbstring": "*",
+        "php-ds/php-ds": "^1.2",
+        "brick/math": "^0.7"
+    },
+    "require-dev": {
+        "phpunit/phpunit": "^7.3.1"
+    },
+    "suggest": {
+    },
+    "autoload": {
+        "psr-4": {"Apache\\Ignite\\": "src/Apache/Ignite"}
+    },
+    "autoload-dev": {
+        "psr-4": { "Apache\\Ignite\\Tests\\": "tests/" }
+    }
+}
diff --git a/examples/AuthTlsExample.php b/examples/AuthTlsExample.php
new file mode 100644
index 0000000..6f5fffc
--- /dev/null
+++ b/examples/AuthTlsExample.php
@@ -0,0 +1,129 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+require_once __DIR__ . '/../vendor/autoload.php';
+
+use Apache\Ignite\Client;
+use Apache\Ignite\ClientConfiguration;
+use Apache\Ignite\Cache\CacheInterface;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Type\ObjectType;
+
+// This example demonstrates how to establish a secure connection to an Ignite node and use username/password authentication,
+// as well as basic Key-Value Queries operations for primitive types:
+// - connects to a node using TLS and providing username/password
+// - creates a cache, if it doesn't exist
+//   - specifies key and value type of the cache
+// - put data of primitive types into the cache
+// - get data from the cache
+// - destroys the cache
+class AuthTlsExample
+{
+    const ENDPOINT = 'localhost:10800';
+    const USER_NAME = 'ignite';
+    const PASSWORD = 'ignite';
+
+    const TLS_CLIENT_CERT_FILE_NAME = __DIR__ . '/certs/client.pem';
+    const TLS_CA_FILE_NAME = __DIR__ . '/certs/ca.pem';
+
+    const CACHE_NAME = 'AuthTlsExample_cache';
+
+    public function start(): void
+    {
+        $client = new Client();
+        try {
+            $tlsOptions = [
+                'local_cert' => AuthTlsExample::TLS_CLIENT_CERT_FILE_NAME,
+                'cafile' => AuthTlsExample::TLS_CA_FILE_NAME
+            ];
+            
+            $config = (new ClientConfiguration(AuthTlsExample::ENDPOINT))->
+                setUserName(AuthTlsExample::USER_NAME)->
+                setPassword(AuthTlsExample::PASSWORD)->
+                setTLSOptions($tlsOptions);
+                    
+            $client->connect($config);
+
+            echo("Client connected successfully (with TLS and authentication enabled)" . PHP_EOL);
+
+            $cache = $client->getOrCreateCache(AuthTlsExample::CACHE_NAME)->
+                setKeyType(ObjectType::BYTE)->
+                setValueType(ObjectType::SHORT_ARRAY);
+
+            $this->putGetData($cache);
+            $client->destroyCache(AuthTlsExample::CACHE_NAME);
+        } catch (ClientException $e) {
+            echo('ERROR: ' . $e->getMessage() . PHP_EOL);
+        } finally {
+            $client->disconnect();
+        }
+    }
+
+    private function putGetData(CacheInterface $cache): void
+    {
+        $values = [
+            1 => $this->generateValue(1),
+            2 => $this->generateValue(2),
+            3 => $this->generateValue(3)
+        ];
+
+        // put values
+        foreach ($values as $key => $value) {
+            $cache->put($key, $value);
+        }
+        echo('Cache values put successfully:' . PHP_EOL);
+        foreach ($values as $key => $value) {
+            $this->printValue($key, $value);
+        }
+
+        // get and compare values
+        echo('Cache values get:' . PHP_EOL);
+        foreach ($values as $key => $value) {
+            $cacheValue = $cache->get($key);
+            $this->printValue($key, $cacheValue);
+            if (!$this->compareValues($value, $cacheValue)) {
+                echo('Unexpected cache value!' . PHP_EOL);
+                return;
+            }
+        }
+        echo('Cache values compared successfully' . PHP_EOL);
+    }
+
+    private function compareValues(array $array1, array $array2): bool
+    {
+        return count(array_diff($array1, $array2)) === 0;
+    }
+
+    private function generateValue(int $key): array
+    {
+        $length = $key + 2;
+        $result = [];
+        for ($i = 0; $i < $length; $i++) {
+            array_push($result, $key * 10 + $i);
+        }
+        return $result;
+    }
+
+    private function printValue($key, $value): void
+    {
+        echo(sprintf('  %d => [%s]%s', $key, implode(', ', $value), PHP_EOL));
+    }
+}
+
+$authTlsExample = new AuthTlsExample();
+$authTlsExample->start();
diff --git a/examples/CachePutGetExample.php b/examples/CachePutGetExample.php
new file mode 100644
index 0000000..4d9db53
--- /dev/null
+++ b/examples/CachePutGetExample.php
@@ -0,0 +1,184 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+require_once __DIR__ . '/../vendor/autoload.php';
+
+use Apache\Ignite\Client;
+use Apache\Ignite\ClientConfiguration;
+use Apache\Ignite\Cache\CacheEntry;
+use Apache\Ignite\Query\ScanQuery;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Data\BinaryObject;
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Type\ComplexObjectType;
+
+class Person
+{
+    private static $personId = 0;
+    
+    public $id;
+    public $firstName;
+    public $lastName;
+    public $salary;
+            
+    public function __construct(string $firstName = null, string $lastName = null, float $salary = 0)
+    {
+        $this->id = Person::generateId();
+        $this->firstName = $firstName;
+        $this->lastName = $lastName;
+        $this->salary = $salary;
+    }
+
+    public function printObject(): void
+    {
+        echo(sprintf('  %s%s', Person::class, PHP_EOL));
+        Person::printField('id', $this->id);
+        Person::printField('firstName', $this->firstName);
+        Person::printField('lastName', $this->lastName);
+        Person::printField('salary', $this->salary);
+    }
+
+    public static function generateId(): int
+    {
+        $id = Person::$personId;
+        Person::$personId++;
+        return $id;
+    }
+    
+    public static function printField(string $fieldName, $fieldValue): void
+    {
+        echo(sprintf('      %s : %s%s', $fieldName, $fieldValue, PHP_EOL));
+    }
+}
+
+// This example demonstrates basic Cache, Key-Value Queries and Scan Query operations:
+// - connects to a node
+// - creates a cache, if it doesn't exist
+//   - specifies key type as Integer
+// - executes different cache operations with Complex Objects and Binary Objects
+//   - put several objects
+//   - putAll
+//   - get
+//   - getAll
+//   - ScanQuery
+// - destroys the cache
+class CachePutGetExample
+{
+    const ENDPOINT = '127.0.0.1:10800';
+    const CACHE_NAME = 'CachePutGetExample_person';
+    
+    private $personCache;
+    private $binaryObjectCache; 
+    private $personObjectType;
+    
+    public function start(): void
+    {
+        $client = new Client();
+        try {
+            $client->connect(new ClientConfiguration(CachePutGetExample::ENDPOINT));
+
+            $this->personObjectType = (new ComplexObjectType())->
+                setFieldType('id', ObjectType::INTEGER);
+
+            $this->personCache = $client->getOrCreateCache(CachePutGetExample::CACHE_NAME)->
+                setKeyType(ObjectType::INTEGER)->
+                setValueType($this->personObjectType);
+
+            $this->binaryObjectCache = $client->getCache(CachePutGetExample::CACHE_NAME)->
+                setKeyType(ObjectType::INTEGER);
+
+            $this->putComplexObjects();
+            $this->putAllBinaryObjects();
+
+            $this->getAllComplexObjects();
+            $this->getBinaryObjects();
+
+            $this->scanQuery();
+
+            $client->destroyCache(CachePutGetExample::CACHE_NAME);
+        } catch (ClientException $e) {
+            echo('ERROR: ' . $e->getMessage() . PHP_EOL);
+        } finally {
+            $client->disconnect();
+        }
+    }
+    
+    private function putComplexObjects(): void
+    {
+        $person1 = new Person('John', 'Doe', 1000);
+        $person2 = new Person('Jane', 'Roe', 2000);
+
+        $this->personCache->put($person1->id, $person1);
+        $this->personCache->put($person2->id, $person2);
+
+        echo('Complex Objects put successfully' . PHP_EOL);
+    }
+    
+    private function putAllBinaryObjects(): void
+    {
+        // create binary object from scratch
+        $personBinaryObject1 = (new BinaryObject(Person::class))->
+            setField('id', Person::generateId(), ObjectType::INTEGER)->
+            setField('firstName', 'Mary')->
+            setField('lastName', 'Major')->
+            setField('salary', 1500, ObjectType::DOUBLE);
+
+        // create binary object from complex object
+        $personBinaryObject2 = BinaryObject::fromObject(
+            new Person('Richard', 'Miles', 800), $this->personObjectType);
+
+        $this->binaryObjectCache->putAll([
+            new CacheEntry($personBinaryObject1->getField('id'), $personBinaryObject1),
+            new CacheEntry($personBinaryObject2->getField('id'), $personBinaryObject2)
+        ]);
+        
+        echo('Binary Objects put successfully using putAll()' . PHP_EOL);
+    }
+
+    private function getAllComplexObjects(): void
+    {
+        $persons = $this->personCache->getAll([0, 1]);
+        echo('Complex Objects getAll:' . PHP_EOL);
+        foreach ($persons as $person) {
+            $person->getValue()->printObject();
+        }
+    }
+    
+    private function getBinaryObjects(): void
+    {
+        $personBinaryObject = $this->binaryObjectCache->get(2);
+        echo('Binary Object get:' . PHP_EOL);
+        echo(sprintf("  %s%s", $personBinaryObject->getTypeName(), PHP_EOL));
+        foreach ($personBinaryObject->getFieldNames() as $fieldName) {
+            $fieldValue = $personBinaryObject->getField($fieldName);
+            Person::printField($fieldName, $fieldValue); 
+        }
+    }
+
+    private function scanQuery(): void
+    {
+        $cursor = $this->personCache->query(new ScanQuery());
+        echo('Scan query results:' . PHP_EOL);
+        foreach ($cursor as $cacheEntry) {
+            $cacheEntry->getValue()->printObject();
+        }
+    }
+}
+
+$cachePutGetExample = new CachePutGetExample();
+$cachePutGetExample->start();
diff --git a/examples/FailoverExample.php b/examples/FailoverExample.php
new file mode 100644
index 0000000..7598511
--- /dev/null
+++ b/examples/FailoverExample.php
@@ -0,0 +1,67 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+require_once __DIR__ . '/../vendor/autoload.php';
+
+use Apache\Ignite\Client;
+use Apache\Ignite\ClientConfiguration;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Exception\NoConnectionException;
+use Apache\Ignite\Exception\OperationStatusUnknownException;
+
+const ENDPOINT1 = 'localhost:10800';
+const ENDPOINT2 = 'localhost:10801';
+const ENDPOINT3 = 'localhost:10802';
+
+const CACHE_NAME = 'test_cache';
+
+// This example demonstrates failover behavior of the client
+// - configures the client to connect to a set of nodes
+// - connects to a node
+// - executes an operation with Ignite server in a cycle (10 operations with 5 seconds pause) and finishes
+// - if connection is broken, the client automatically tries to reconnect to another node
+// - if not possible to connect to any nodes, the example finishes
+function connectClient() {
+    $client = new Client();
+    $client->setDebug(true);
+    try {
+        $clientConfiguration = new ClientConfiguration(ENDPOINT1, ENDPOINT2, ENDPOINT3);
+        // connect to Ignite node
+        $client->connect($clientConfiguration);
+        echo("Client connected successfully" . PHP_EOL);
+        for ($i = 0; $i < 10; $i++) {
+            try {
+                $client->getOrCreateCache(CACHE_NAME);
+                sleep(5);
+            } catch (OperationStatusUnknownException $e) {
+                // Status of the operation is unknown,
+                // a real application may repeat the operation if necessary
+            }
+        }
+    } catch (NoConnectionException $e) {
+        // The client is disconnected, all further operation with Ignite server fail till the client is connected again.
+        // A real application may recall $client->connect() with the same or different list of Ignite nodes.
+        echo('ERROR: ' . $e->getMessage() . PHP_EOL);
+    } catch (ClientException $e) {
+        echo('ERROR: ' . $e->getMessage() . PHP_EOL);
+    } finally {
+        $client->disconnect();
+    }
+}
+
+connectClient();
diff --git a/examples/SqlExample.php b/examples/SqlExample.php
new file mode 100644
index 0000000..db0baf6
--- /dev/null
+++ b/examples/SqlExample.php
@@ -0,0 +1,237 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+require_once __DIR__ . '/../vendor/autoload.php';
+
+use Apache\Ignite\Client;
+use Apache\Ignite\ClientConfiguration;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Cache\CacheInterface;
+use Apache\Ignite\Cache\CacheConfiguration;
+use Apache\Ignite\Query\SqlFieldsQuery;
+
+// This example shows primary APIs to use with Ignite as with an SQL database:
+// - connects to a node
+// - creates a cache, if it doesn't exist
+// - creates tables (CREATE TABLE)
+// - creates indices (CREATE INDEX)
+// - writes data of primitive types into the tables (INSERT INTO table)
+// - reads data from the tables (SELECT ...)
+// - deletes tables (DROP TABLE)
+// - destroys the cache
+class SqlExample {
+    const ENDPOINT = '127.0.0.1:10800';
+
+    const COUNTRY_CACHE_NAME = 'Country';
+    const CITY_CACHE_NAME = 'City';
+    const COUNTRY_LANGUAGE_CACHE_NAME = 'CountryLng';
+    const DUMMY_CACHE_NAME = 'SqlExample_Dummy';
+
+    public function start(): void
+    {
+        $client = new Client();
+        try {
+            $client->connect(new ClientConfiguration(SqlExample::ENDPOINT));
+
+            $cache = $client->getOrCreateCache(
+                SqlExample::DUMMY_CACHE_NAME,
+                (new CacheConfiguration())->setSqlSchema('PUBLIC'));
+
+            $this->createDatabaseObjects($cache);
+            $this->insertData($cache);
+
+            $countryCache = $client->getCache(SqlExample::COUNTRY_CACHE_NAME);
+            $cityCache = $client->getCache(SqlExample::CITY_CACHE_NAME);
+
+            $this->getMostPopulatedCities($countryCache);
+            $this->getTopCitiesInThreeCountries($cityCache);
+            $this->getCityDetails($cityCache, 5);
+
+            $this->deleteDatabaseObjects($cache);
+            $client->destroyCache(SqlExample::DUMMY_CACHE_NAME);
+        } catch (ClientException $e) {
+            echo('ERROR: ' . $e->getMessage() . PHP_EOL);
+        } finally {
+            $client->disconnect();
+        }
+    }
+
+    public function createDatabaseObjects(CacheInterface $cache): void
+    {
+        $createCountryTable = 'CREATE TABLE Country (' .
+            'Code CHAR(3) PRIMARY KEY,' .
+            'Name CHAR(52),' .
+            'Continent CHAR(50),' .
+            'Region CHAR(26),' .
+            'SurfaceArea DECIMAL(10,2),' .
+            'IndepYear SMALLINT(6),' .
+            'Population INT(11),' .
+            'LifeExpectancy DECIMAL(3,1),' .
+            'GNP DECIMAL(10,2),' .
+            'GNPOld DECIMAL(10,2),' .
+            'LocalName CHAR(45),' .
+            'GovernmentForm CHAR(45),' .
+            'HeadOfState CHAR(60),' .
+            'Capital INT(11),' .
+            'Code2 CHAR(2)' .
+        ') WITH "template=partitioned, backups=1, CACHE_NAME=' . SqlExample::COUNTRY_CACHE_NAME . '"';
+
+        $createCityTable = 'CREATE TABLE City (' .
+            'ID INT(11),' .
+            'Name CHAR(35),' .
+            'CountryCode CHAR(3),' .
+            'District CHAR(20),' .
+            'Population INT(11),' .
+            'PRIMARY KEY (ID, CountryCode)' .
+        ') WITH "template=partitioned, backups=1, affinityKey=CountryCode, CACHE_NAME=' . SqlExample::CITY_CACHE_NAME . '"';
+
+        $createCountryLanguageTable = 'CREATE TABLE CountryLanguage (' .
+            'CountryCode CHAR(3),' .
+            'Language CHAR(30),' .
+            'IsOfficial CHAR(2),' .
+            'Percentage DECIMAL(4,1),' .
+            'PRIMARY KEY (CountryCode, Language)' .
+        ') WITH "template=partitioned, backups=1, affinityKey=CountryCode, CACHE_NAME=' . SqlExample::COUNTRY_LANGUAGE_CACHE_NAME . '"';
+
+        // create tables
+        $cache->query(new SqlFieldsQuery($createCountryTable))->getAll();
+        $cache->query(new SqlFieldsQuery($createCityTable))->getAll();
+        $cache->query(new SqlFieldsQuery($createCountryLanguageTable))->getAll();
+
+        // create indices
+        $cache->query(new SqlFieldsQuery(
+            'CREATE INDEX idx_country_code ON city (CountryCode)'))->getAll();
+        $cache->query(new SqlFieldsQuery(
+            'CREATE INDEX idx_lang_country_code ON CountryLanguage (CountryCode)'))->getAll();
+
+        echo('Database objects created' . PHP_EOL);
+    }
+
+    private function insertData(CacheInterface $cache): void
+    {
+        $cities = [
+            ['New York', 'USA', 'New York', 8008278],
+            ['Los Angeles', 'USA', 'California', 3694820],
+            ['Chicago', 'USA', 'Illinois', 2896016],
+            ['Houston', 'USA', 'Texas', 1953631],
+            ['Philadelphia', 'USA', 'Pennsylvania', 1517550],
+            ['Moscow', 'RUS', 'Moscow (City)', 8389200],
+            ['St Petersburg', 'RUS', 'Pietari', 4694000],
+            ['Novosibirsk', 'RUS', 'Novosibirsk', 1398800],
+            ['Nizni Novgorod', 'RUS', 'Nizni Novgorod', 1357000],
+            ['Jekaterinburg', 'RUS', 'Sverdlovsk', 1266300],
+            ['Shanghai', 'CHN', 'Shanghai', 9696300],
+            ['Peking', 'CHN', 'Peking', 7472000],
+            ['Chongqing', 'CHN', 'Chongqing', 6351600],
+            ['Tianjin', 'CHN', 'Tianjin', 5286800],
+            ['Wuhan', 'CHN', 'Hubei', 4344600]
+        ];
+
+        $cityQuery = new SqlFieldsQuery(
+            'INSERT INTO City(ID, Name, CountryCode, District, Population) VALUES (?, ?, ?, ?, ?)');
+
+        for ($i = 0; $i < count($cities); $i++) {
+            $cache->query($cityQuery->setArgs($i, ...$cities[$i]))->getAll();
+        }
+
+        $countries = [
+            ['USA', 'United States', 'North America', 'North America',
+                9363520.00, 1776, 278357000, 77.1, 8510700.00, 8110900.00,
+                'United States', 'Federal Republic', 'George W. Bush', 3813, 'US'],
+            ['RUS', 'Russian Federation', 'Europe', 'Eastern Europe',
+                17075400.00, 1991, 146934000, 67.2, 276608.00, 442989.00,
+                'Rossija', 'Federal Republic', 'Vladimir Putin', 3580, 'RU'],
+            ['CHN', 'China', 'Asia', 'Eastern Asia',
+                9572900.00, -1523, 1277558000, 71.4, 982268.00, 917719.00,
+                'Zhongquo', 'PeoplesRepublic', 'Jiang Zemin', 1891, 'CN']
+        ];
+
+        $countryQuery = new SqlFieldsQuery('INSERT INTO Country(' .
+            'Code, Name, Continent, Region, SurfaceArea,' .
+            'IndepYear, Population, LifeExpectancy, GNP, GNPOld,' .
+            'LocalName, GovernmentForm, HeadOfState, Capital, Code2)' .
+            'VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)');
+
+        foreach ($countries as $country) {
+            $cache->query($countryQuery->setArgs(...$country))->getAll();
+        }
+
+        echo('Data are inserted' . PHP_EOL);
+    }
+
+    private function getMostPopulatedCities(CacheInterface $countryCache): void
+    {
+        $query = new SqlFieldsQuery(
+            'SELECT name, population FROM City ORDER BY population DESC LIMIT 10');
+
+        $cursor = $countryCache->query($query);
+
+        echo('10 Most Populated Cities:' . PHP_EOL);
+
+        foreach ($cursor as $row) {
+            echo(sprintf('    %d people live in %s%s', $row[1], $row[0], PHP_EOL));
+        }
+    }
+
+    private function getTopCitiesInThreeCountries(CacheInterface $countryCache): void
+    {
+        $query = new SqlFieldsQuery(
+            "SELECT country.name, city.name, MAX(city.population) as max_pop FROM country
+            JOIN city ON city.countrycode = country.code
+            WHERE country.code IN ('USA','RUS','CHN')
+            GROUP BY country.name, city.name ORDER BY max_pop DESC LIMIT 3");
+
+        $cursor = $countryCache->query($query);
+
+        echo('3 Most Populated Cities in US, RUS and CHN:' . PHP_EOL);
+
+        foreach ($cursor->getAll() as $row) {
+            echo(sprintf('    %d people live in %s, %s%s', $row[2], $row[1], $row[0], PHP_EOL));
+        }
+    }
+
+    private function getCityDetails(CacheInterface $cityCache, int $cityId): void
+    {
+        $query = (new SqlFieldsQuery('SELECT * FROM City WHERE id = ?'))->
+            setArgs($cityId)->
+            setIncludeFieldNames(true);
+
+        $cursor = $cityCache->query($query);
+
+        $fieldNames = $cursor->getFieldNames();
+        
+        foreach ($cursor->getAll() as $city) {
+            echo('City Info:' . PHP_EOL);
+            for ($i = 0; $i < count($fieldNames); $i++) {
+                echo(sprintf('    %s : %s%s', $fieldNames[$i], $city[$i], PHP_EOL));
+            }
+        }
+    }
+
+    private function deleteDatabaseObjects($cache): void
+    {
+        $cache->query(new SqlFieldsQuery('DROP TABLE IF EXISTS Country'))->getAll();
+        $cache->query(new SqlFieldsQuery('DROP TABLE IF EXISTS City'))->getAll();
+        $cache->query(new SqlFieldsQuery('DROP TABLE IF EXISTS CountryLanguage'))->getAll();
+        
+        echo('Database objects dropped' . PHP_EOL);
+    }
+}
+
+$sqlExample = new SqlExample();
+$sqlExample->start();
diff --git a/examples/SqlQueryEntriesExample.php b/examples/SqlQueryEntriesExample.php
new file mode 100644
index 0000000..a02733e
--- /dev/null
+++ b/examples/SqlQueryEntriesExample.php
@@ -0,0 +1,127 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+require_once __DIR__ . '/../vendor/autoload.php';
+
+use Apache\Ignite\Client;
+use Apache\Ignite\ClientConfiguration;
+use Apache\Ignite\Cache\CacheConfiguration;
+use Apache\Ignite\Cache\QueryEntity;
+use Apache\Ignite\Cache\QueryField;
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Type\ComplexObjectType;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Query\SqlQuery;
+
+class Person
+{
+    private static $personId = 0;
+
+    public $id;
+    public $firstName;
+    public $lastName;
+    public $salary;
+
+    public function __construct(string $firstName = null, string $lastName = null, float $salary = 0)
+    {
+        $this->id = Person::generateId();
+        $this->firstName = $firstName;
+        $this->lastName = $lastName;
+        $this->salary = $salary;
+    }
+
+    public static function generateId(): int
+    {
+        $id = Person::$personId;
+        Person::$personId++;
+        return $id;
+    }
+}
+
+// This example demonstrates basic Cache, Key-Value Queries and SQL Query operations:
+// - connects to a node
+// - creates a cache from CacheConfiguration, if it doesn't exist
+// - writes data of primitive and Complex Object types into the cache using Key-Value put operation
+// - reads data from the cache using SQL Query
+// - destroys the cache
+class SqlQueryEntriesExample {
+    const ENDPOINT = '127.0.0.1:10800';
+    const PERSON_CACHE_NAME = 'SqlQueryEntriesExample_person';
+
+    private $cache;
+
+    public function start(): void
+    {
+        $client = new Client();
+        try {
+            $client->connect(new ClientConfiguration(self::ENDPOINT));
+
+            $cacheCfg = (new CacheConfiguration())->
+                setQueryEntities(
+                    (new QueryEntity())->
+                    setValueTypeName('Person')->
+                    setFields(
+                        new QueryField('id', 'java.lang.Integer'),
+                        new QueryField('firstName', 'java.lang.String'),
+                        new QueryField('lastName', 'java.lang.String'),
+                        new QueryField('salary', 'java.lang.Double')
+                    ));
+            $this->cache = $client->getOrCreateCache(self::PERSON_CACHE_NAME, $cacheCfg)->
+                setKeyType(ObjectType::INTEGER)->
+                setValueType((new ComplexObjectType())->
+                    setFieldType('id', ObjectType::INTEGER));
+
+            $this->generateData();
+
+            $sqlCursor = $this->cache->query(
+                (new SqlQuery('Person', 'salary > ? and salary <= ?'))->
+                setArgs(900.0, 1600.0));
+
+            echo('SqlQuery results (salary between 900 and 1600):' . PHP_EOL);
+            foreach ($sqlCursor as $cacheEntry) {
+                $person = $cacheEntry->getValue();
+                echo(sprintf('  name: %s %s, salary: %.2f %s',
+                    $person->firstName, $person->lastName, $person->salary, PHP_EOL));
+            }
+
+            $client->destroyCache(self::PERSON_CACHE_NAME);
+        } catch (ClientException $e) {
+            echo('ERROR: ' . $e->getMessage() . PHP_EOL);
+        } finally {
+            $client->disconnect();
+        }
+    }
+
+    private function generateData(): void
+    {
+        $persons = [
+            ['John', 'Doe', 1000.0],
+            ['Jane', 'Roe', 2000.0],
+            ['Mary', 'Major', 1500.0],
+            ['Richard', 'Miles', 800.0]
+        ];
+        foreach ($persons as $data) {
+            $person = new Person(...$data);
+            $this->cache->put($person->id, $person);
+        }
+        echo('Data is generated' . PHP_EOL);
+    }
+}
+
+$sqlQueryEntriesExample = new SqlQueryEntriesExample();
+$sqlQueryEntriesExample->start();
diff --git a/examples/certs/ca.pem b/examples/certs/ca.pem
new file mode 100644
index 0000000..ba90793
--- /dev/null
+++ b/examples/certs/ca.pem
@@ -0,0 +1,32 @@
+-----BEGIN CERTIFICATE-----
+MIIFfzCCA2egAwIBAgIJAIH05meRt7kjMA0GCSqGSIb3DQEBCwUAMFYxCzAJBgNV
+BAYTAkZSMQowCAYDVQQIDAEuMQowCAYDVQQHDAEuMSMwIQYDVQQKDBpBQ01FIFNp
+Z25pbmcgQXV0aG9yaXR5IEluYzEKMAgGA1UEAwwBLjAeFw0xODA0MTIyMDUxMDFa
+Fw0yODA0MDkyMDUxMDFaMFYxCzAJBgNVBAYTAkZSMQowCAYDVQQIDAEuMQowCAYD
+VQQHDAEuMSMwIQYDVQQKDBpBQ01FIFNpZ25pbmcgQXV0aG9yaXR5IEluYzEKMAgG
+A1UEAwwBLjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMoilf6lWZt8
+F+QkZj2zW8PTEiOzqjLDCmEhnoVOPXAbCucaHuqQfK8xHL2FjlkeRWO1egzXBQ/V
+K+p2+ck/1D98qL8gYfR8Zf1WUUkgBYjnch9r+BPqIjSwBD8e3HyTIq+DGQ8tYqh0
+1GtP6tooZYF2VBKu7aY69vOOgM16k+2GLR7ILz5MtHARNshu/YYWU8GgIIKXVK8e
+DJU1swVhzCWDxX8S9BNuT13WoajOk6GhTkbKIQs0e32arHVfTV0G5s/FlAjtze4r
+kWsK+W/IJky98QLZqdHfoXxlPD4Ir6wuRjIZWfuliLmud5umhRdfT18vtApOiPR/
+nxFdITM914MubR6p0jEvnbF2PCQTKQVsGqpPRrsnqQwsLGUJKOGlS+Njwv6zUvJq
+xH5AjJcPNnwhc3dwcWoiYgswCcttUWz/a9h2SI5zggfyC3aVl72WmcsDbNgsAIJr
+ML5d5EIr+RvbTzQEaqLOHj1q8rysrRx8+HdtKRjXTJsTqpqCkAm+UWnLdlEnxvNW
+Asy0TZ65aGAR8ysyEO8s2xq0m2eTai1BPj91Yt3YnozWjvC0fdC6QL8Ksxka7HYO
+MYLXkwtlpi3m/dXVEk9Xd9SAE77+9aPN+MYAEvCG6WA2Drb7nOBVm31ATY20cEln
+I2YqiMBn05sjohacEww+7LVqYeez1xRvAgMBAAGjUDBOMB0GA1UdDgQWBBSy3uNf
+iwlv/7mjyiglCjKMq5kJDDAfBgNVHSMEGDAWgBSy3uNfiwlv/7mjyiglCjKMq5kJ
+DDAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4ICAQACrOj3S0CpJVuCsgsZ
+JKCnPn0HVfJ0nU8tKMb43xq6r7V7GsUvdJIvzgiBC19ld+mWNUp25B9M9zOf1glL
+L9h2Tlu8gg+0DJ/1/ipZLNc36Q77Te8KECDKt8k9eI5N6HLS57mCZgE6CmGhc7zg
+notGQxzjfW8XQWDUwqwhfMZ9CjL+Tz7rHbvTCNrg9T0Ha57ajNxONlHsVUSMnbB6
+mN2n2pbpf40X4LL5j+mxxr0v6hfAF89U6hekeRf/8LMDApIc/6iVxGskwCOHZhkc
+w761WDHC4gh64cAWUni7YDJSCP8Djgdi34WQs4bk05f3u/86V702doR9JPJsRoQg
+P1juHur8vedjSQTqvA5TAt3ct6wkgVmeeqnIDTH2JFNCnssVWtJburOibUHgKvqe
+ZH0y3JF2eCcVXPPq6M6qM7W2IziArsZs22tkos2ARaDDU8ekmsEOH9SNphVICAet
+AT6b8YyOutTXO4LIN1TUeXmeKMpOAA2+YNCp+/OxbzkqvZxYuvbBtoSiIfrHyW4k
+rE0rRTYpB1Mk7R4+hwPnJim1OvZ+vLeLzvgGIyZKKiku2bp0YB8KGsAchnnJVlyo
+Oca/YSkKIBYCiQjxg5rX1/ZonhAkRbuqzmQdb9bJoGoN8kUdN9wvZHC3YPtox1Nd
+GoJSdO3MNkK5EwafrMAGh2Jmxg==
+-----END CERTIFICATE-----
diff --git a/examples/certs/client.pem b/examples/certs/client.pem
new file mode 100644
index 0000000..8016ff8
--- /dev/null
+++ b/examples/certs/client.pem
@@ -0,0 +1,81 @@
+-----BEGIN CERTIFICATE-----
+MIIFJTCCAw0CAQEwDQYJKoZIhvcNAQELBQAwVjELMAkGA1UEBhMCRlIxCjAIBgNV
+BAgMAS4xCjAIBgNVBAcMAS4xIzAhBgNVBAoMGkFDTUUgU2lnbmluZyBBdXRob3Jp
+dHkgSW5jMQowCAYDVQQDDAEuMB4XDTE4MDQxMjIwNTEwNFoXDTI4MDQwOTIwNTEw
+NFowWzELMAkGA1UEBhMCRlIxCjAIBgNVBAgMAS4xCjAIBgNVBAcMAS4xIzAhBgNV
+BAoMGkFDTUUgU2lnbmluZyBBdXRob3JpdHkgSW5jMQ8wDQYDVQQDDAZDTElFTlQw
+ggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCp1yTtzT01KDx6qyidy4GQ
+C/NbPcOkPHYYfTPkPy4xvdfPfx0FHBHxY5iqg7V2q5dbpVH1NOablC/sWOjwMXlQ
+Hs0M48Q0SRXgJA2a4wqKMfpJ6q8fxVbFENmm8d7YA3dXq6KxXq5yDxCy7pZk/ILP
+CbOobSHxA8NI0Dla9zMA12b6pdu2d0aK6fD98FdUU56Dn8re8YOlEEtRZmUZjIkt
+yoIP+RymKttz9opbSeY4gy/na9JziS2Ij6SVwnpdFIVvMXtux61WlIe9jy/JRWXL
+dmY8qz7ooTUofgV8wd+E9iTIYwJa26C8+AV1XGuI7aQHPSQwyRm0PGJaC4Bdutkf
+eeTu5KVxIQFgAUV2a7EYR9xiSiMW2DjCjTEShZkxs13jTG4tnr6KxUYCoNIy42XH
+WVmb7TKVkhpBKM+icqFRQ/0OhqZcYl1VKlYSutu7z32jGta+AgedMagV4sSzhHJf
+U8lBReZkFVo0Bh5wgZbmgwykW1YzqoMVxOZtaoF/4NyPfIo7icmI9SfM7Jbo/0zs
+CdWgetIPM8iEwXr4W1TjDRM6VLDnEMo77HUNHqJi9YQhIy0exsBdlfJnVpPGS3fj
+jA90qoUDoEFScDmAYsD8pyrSFkE13KBClUjQKn6KdNQfRxQApf972X7tqkMbX5KQ
+Np0GKuaTHt2xxirgJroeiQIDAQABMA0GCSqGSIb3DQEBCwUAA4ICAQAT5wABZANT
+GUScEJo9NK2+nEVVCrf3YcirwB4uw2log/DamQnHeC2W7/YOQ+RAmqp0m4VX39pA
+jxUlQb546rBKL8mfzc88ReN/g/EoDEri1PKToGF+rntwtgpoj+ID2sK4kDyJRemJ
+d6lrNTIvB1zu6Ra6P5Y5Iq5swSZtigFkevwHfHACEs6EemWz8xsipBjOK+oX3sen
+N8t/KGiw0rsFXoXv/bKFaB3s9VcX8lbMG7FgPqlFCQnkEPqGSmoT8hNSqK1ZM3VK
+ueRkZVHaynZqoGIU1hglDWtObTUiz7Kgwv3MTbduoZE7hBzBSokn7aGjypdrTFuZ
+jrSKNe+sJePw7IfvuSo5Nnk5VNh26FS0C9EeeqCCAT1B/+u9M0DkmK6EPDUIly9f
+XjTlR04UaWf0EHgTroDY/KuDBR2ZKx344fr/52xZMDUoqNT2t/HW7cX2ff8vbsME
+IykmzSfVjE50gRAZMqAhDlWKR56VyuAwjpBBGAo7Zw3eyAQjVLYU0/f7/HONYchx
+wWPXCn1isRDFtzxx8WhuhtXUnSHgwnro+79W75mv9c6bkHoAH3pVbA9Wx4+hQv18
+V8SHa9CJn8absmNTSBGMXo+lFDDRnsjRDBCPElfkS5+ilvcJtfuqdtRvkR1ERil0
+N6gW1Y8iaVI7pfPeyWoM9GLTuvLmAYcuKQ==
+-----END CERTIFICATE-----
+-----BEGIN RSA PRIVATE KEY-----
+MIIJKQIBAAKCAgEAqdck7c09NSg8eqsoncuBkAvzWz3DpDx2GH0z5D8uMb3Xz38d
+BRwR8WOYqoO1dquXW6VR9TTmm5Qv7Fjo8DF5UB7NDOPENEkV4CQNmuMKijH6Seqv
+H8VWxRDZpvHe2AN3V6uisV6ucg8Qsu6WZPyCzwmzqG0h8QPDSNA5WvczANdm+qXb
+tndGiunw/fBXVFOeg5/K3vGDpRBLUWZlGYyJLcqCD/kcpirbc/aKW0nmOIMv52vS
+c4ktiI+klcJ6XRSFbzF7bsetVpSHvY8vyUVly3ZmPKs+6KE1KH4FfMHfhPYkyGMC
+WtugvPgFdVxriO2kBz0kMMkZtDxiWguAXbrZH3nk7uSlcSEBYAFFdmuxGEfcYkoj
+Ftg4wo0xEoWZMbNd40xuLZ6+isVGAqDSMuNlx1lZm+0ylZIaQSjPonKhUUP9Doam
+XGJdVSpWErrbu899oxrWvgIHnTGoFeLEs4RyX1PJQUXmZBVaNAYecIGW5oMMpFtW
+M6qDFcTmbWqBf+Dcj3yKO4nJiPUnzOyW6P9M7AnVoHrSDzPIhMF6+FtU4w0TOlSw
+5xDKO+x1DR6iYvWEISMtHsbAXZXyZ1aTxkt344wPdKqFA6BBUnA5gGLA/Kcq0hZB
+NdygQpVI0Cp+inTUH0cUAKX/e9l+7apDG1+SkDadBirmkx7dscYq4Ca6HokCAwEA
+AQKCAgAul8oWvtZKzfYBhREIcPrjRJQHdONGHBwdzcM9m6OVm8onr2yLqU621Sbd
+qHJQ0vQb/TeFuHSHO9kF0sJcmoX4V+rS3W1HFsG8ksd0tVJ/5QQP4SUX5zBNsbi0
+FuiWhCTqVTi1xg6/Vai0HcX+gFN2buftjbrg/rJFOHJzpRtF4NHsczHaVdBxbYpi
+b9vVU3dKDr09+i2uS9ENzLRxlN9RQ5v4u9ODNoCryHfeYWCaIkszBp5eecSXESkK
+uKaPAIE2pvGAy6Ce/vJaK3zlj3dEoP+dJzGD6i3GJQRmXF1wgYJHwvmzaUsobDY7
+IxaRIvh7z+csxw6ZJnOo1jzp+cd0a7iMSjz6BHjQuStnrTeUfFF9ZYyq3vV9vbKY
+5hvoeKuIj7LY/g5KV223vx5aojxiJFTgJ8DyJVYAC8LiMhF61Koua/S6WTpPR6Ga
+V56sF9JVqefVFGwOl4npK0TUUFqrHo8/grkxbO5KddgUU4CW4R/PK1jHDXo9d1pj
+fTD04kfBS6gAjEYdc+Va7YO1T72Ejjw0p0H5e/0xP/4j8xE6r/Kaq0nw3RppIY8d
+EuZDMRG/fvY/8/BakJr5xHZLIt7nLppP9rH4qZKVBylTy5P0kLcenDu6yYYBqUkt
+SAwOK4al/NYfAO4kgNa16uEmNexRmS6IVKUfZn0PJbbcTB/NnQKCAQEA0XR9GqiH
+VhI4td9qitxLSsM4lukLl1f2seJKsGGkyiJ7SgMXbpe5wmamPKT/8cYlcMD0gPjL
+jKZP5CQqTVuI2Zwsy6/KH3/UlCjVp7qOHeVcHLJs95JS+hiBqGK56shNpdRWoG/g
+7z3lnZuEFY5gfEWOjXGQOJIHp3b64njDAln31zjXNpHEpv0RPsmkUi1jNxpi1XDp
+J7M1ocoB22jn6voXxP6jvg48tQqz5FPN5fGr+WqkBPwcgtf2pN+weGAc4APrTxM2
+CsWk/aI2eGte1Ednk0Ci+RthgICS+cxj6cWgSQBnesbEH9+MOsn3Tp6rPGZ6FHsZ
+PSqnVMszXrvEtwKCAQEAz5UNaITyiw+ocOM8hgMnAg3C+whCTlts6NDJcjBLax5e
+uPCqYyMJmbB78mgmu5ZCB0CUcppxm73hGKiX+/wOPaAobJcqs+mG4YtmfgjZMYZQ
+s0C1gaZFc+mAXMFaR4Gqr9EXNtwh+zaHVUupAdATS0VZ2XSv4t2bDoeDZWnGPCZb
+9wfGMuorR8po8Fv8kH3G771DqZXSXbgVgsYUdIrchGYhPRaSyhvdGcRFootwEEjv
+PJ2S3E2uJQlZKlWAnQ5SGxKMWOWPSAGSK284pR9+HlvQpFD3SH1Ue5bAQWhRsVyW
+uMKnH0XpMOmYzUcXEKy1A41IbA9ZpoQoUbTZ+bp2vwKCAQEAvd3qyg+bHtrFrZgo
+7FdlqQ/ubF40s6x5ZCbNrbXVu6YmPKEwzH+dVCvY5YBswq3roppHCeJ+IbFhGl3u
+OtGO7DQ2Jy3i+0rVWLjrdHAYA+G17g2P2Zw6u5sbbZiRD9MjD/+7xxOjwztIueYP
+hbram8wxvOYE5kL5zUR9iG4P2EHV+LL94+mfagBdcZ0354ZdOcYhcXo44FQDefW0
+WUBvewHaKijqJY6iWTqqd3/AVYENc7rHk/01myZJ3osnXPdDNY5X8AZqJrmjJoe0
++NPb0nIn4cPl+ApqCCKFGQu+RltvQL2tEA6+GmZ6p5ANLqeGceozH/22k0vnA2Zv
+2qA7YQKCAQBnPde8WxsShMge1TXd5SV6hQOrvNDVje0d4fG/BDwOW716t9/WjK+S
+q88JojlZZQMT/k+WrC/C6O5SSE/G+PbQOZ7BW3HWp1f5R07Dcn0rf4UVkiJ0CBFU
+9BZui4/uLpSI+zJTi6qu+dDXYFj/WNCvyB9G4x0zdUpQMJ/uSWxZsC5fL5Oo8QRz
+oT0OBoIYDyZpSDWl26kUCaFROFkmGYZRp0Xyzw5UzQTrcs27aSRkRRIPkMNhJJVv
+QDYDsyDTfDLj2hbJg+r+QiHDzn5ayc39JWcgwlAq0oK5MSIPpeWzk7w2ykE6cZfo
+RtZDio7zMSKaUKNrczsAcYxoDs22wcGbAoIBAQCKlVIcL3e7exSFVRNORbnLosWh
+cYQquUZlxq6TkS14lJsGQ+pT02gAEpJktYEfiiBMG/mHXeaGQmMbAYgF7J79VcvN
+CJ1qZvvtSCSnWdMGlhs5zHzjCqk9sywtxRB8XJpp19cM7oTl4PU+ditoGTRlo0Ea
+cMuqdfg/SH/VExUyJzjyFKI5qKUnaTa83PZz4h0kt48oa4tlXzwBVKZYy/77qfQk
+ajH+THYPZ+32iDEVCpiJ9Cg8yTWGT7VxtgFRvEOBPY28T6zenl9Djl8omCOAz07a
+Ozq7QkTy4L0eCZrQ1BPHcmulHUuL+tZqKRukyBrtkTPanZEOHZ5RTfF32BVL
+-----END RSA PRIVATE KEY-----
diff --git a/examples/certs/keystore.jks b/examples/certs/keystore.jks
new file mode 100644
index 0000000..1da610f
Binary files /dev/null and b/examples/certs/keystore.jks differ
diff --git a/examples/certs/truststore.jks b/examples/certs/truststore.jks
new file mode 100644
index 0000000..4d25cf7
Binary files /dev/null and b/examples/certs/truststore.jks differ
diff --git a/src/Apache/Ignite/Cache/CacheConfiguration.php b/src/Apache/Ignite/Cache/CacheConfiguration.php
new file mode 100644
index 0000000..e4a7ad6
--- /dev/null
+++ b/src/Apache/Ignite/Cache/CacheConfiguration.php
@@ -0,0 +1,1011 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Cache;
+
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Type\ObjectArrayType;
+use Apache\Ignite\Type\ComplexObjectType;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Internal\Binary\MessageBuffer;
+use Apache\Ignite\Internal\Binary\BinaryUtils;
+use Apache\Ignite\Internal\Binary\BinaryCommunicator;
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+
+/**
+ * Class representing Ignite cache configuration on a server.
+ *
+ * All configuration settings are optional and have defaults which are defined on a server side.
+ *
+ * See Apache Ignite documentation for details of every configuration setting. 
+ */
+class CacheConfiguration
+{
+    const PROP_NAME = 0;
+    const PROP_CACHE_MODE = 1;
+    const PROP_ATOMICITY_MODE = 2;
+    const PROP_BACKUPS = 3;
+    const PROP_WRITE_SYNCHRONIZATION_MODE = 4;
+    const PROP_COPY_ON_READ = 5;
+    const PROP_READ_FROM_BACKUP = 6;
+    const PROP_DATA_REGION_NAME = 100;
+    const PROP_IS_ONHEAP_CACHE_ENABLED = 101;
+    const PROP_QUERY_ENTITY = 200;
+    const PROP_QUERY_PARALLELISM = 201;
+    const PROP_QUERY_DETAIL_METRICS_SIZE = 202;
+    const PROP_SQL_SCHEMA = 203;
+    const PROP_SQL_INDEX_INLINE_MAX_SIZE = 204;
+    const PROP_SQL_ESCAPE_ALL = 205;
+    const PROP_MAX_QUERY_ITERATORS = 206;
+    const PROP_REBALANCE_MODE = 300;
+    const PROP_REBALANCE_DELAY = 301;
+    const PROP_REBALANCE_TIMEOUT = 302;
+    const PROP_REBALANCE_BATCH_SIZE = 303;
+    const PROP_REBALANCE_BATCHES_PREFETCH_COUNT = 304;
+    const PROP_REBALANCE_ORDER = 305;
+    const PROP_REBALANCE_THROTTLE = 306;
+    const PROP_GROUP_NAME = 400;
+    const PROP_CACHE_KEY_CONFIGURATION = 401;
+    const PROP_DEFAULT_LOCK_TIMEOUT = 402;
+    const PROP_MAX_CONCURRENT_ASYNC_OPS = 403;
+    const PROP_PARTITION_LOSS_POLICY = 404;
+    const PROP_EAGER_TTL = 405;
+    const PROP_STATISTICS_ENABLED = 406;
+
+    /** @name AtomicityMode
+     *  @anchor AtomicityMode
+     *  @{
+     */
+    const ATOMICITY_MODE_TRANSACTIONAL = 0;
+    const ATOMICITY_MODE_ATOMIC = 1;
+    /** @} */ // end of AtomicityMode
+
+    /** @name CacheMode
+     *  @anchor CacheMode
+     *  @{
+     */
+    const CACHE_MODE_LOCAL = 0;
+    const CACHE_MODE_REPLICATED = 1;
+    const CACHE_MODE_PARTITIONED = 2;
+    /** @} */ // end of CacheMode
+
+    /** @name PartitionLossPolicy
+     *  @anchor PartitionLossPolicy
+     *  @{
+     */
+    const PARTITION_LOSS_POLICY_READ_ONLY_SAFE = 0;
+    const PARTITION_LOSS_POLICY_READ_ONLY_ALL = 1;
+    const PARTITION_LOSS_POLICY_READ_WRITE_SAFE = 2;
+    const PARTITION_LOSS_POLICY_READ_WRITE_ALL = 3;
+    const PARTITION_LOSS_POLICY_IGNORE = 4;
+    /** @} */ // end of PartitionLossPolicy
+
+    /** @name RebalanceMode
+     *  @anchor RebalanceMode
+     *  @{
+     */
+    const REABALANCE_MODE_SYNC = 0;
+    const REABALANCE_MODE_ASYNC = 1;
+    const REABALANCE_MODE_NONE = 2;
+    /** @} */ // end of RebalanceMode
+
+    /** @name WriteSynchronizationMode
+     *  @anchor WriteSynchronizationMode
+     *  @{
+     */
+    const WRITE_SYNC_MODE_FULL_SYNC = 0;
+    const WRITE_SYNC_MODE_FULL_ASYNC = 1;
+    const WRITE_SYNC_MODE_PRIMARY_SYNC = 2;
+    /** @} */ // end of WriteSynchronizationMode
+
+    private $properties;
+    private static $propInfo;
+
+    /**
+     * Public CacheConfiguration constructor.
+     */
+    public function __construct()
+    {
+        $this->properties = [];
+    }
+
+    /**
+     *
+     *
+     * @param string $name
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setName(string $name): CacheConfiguration
+    {
+        $this->properties[self::PROP_NAME] = $name;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getName(): ?string
+    {
+        return $this->getProperty(self::PROP_NAME);
+    }
+
+    /**
+     *
+     *
+     * @param int $atomicityMode one of @ref AtomicityMode constants.
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     *
+     * @throws ClientException if error.
+     */
+    public function setAtomicityMode(int $atomicityMode): CacheConfiguration
+    {
+        ArgumentChecker::hasValueFrom(
+            $atomicityMode, 'atomicityMode', false, [self::ATOMICITY_MODE_TRANSACTIONAL, self::ATOMICITY_MODE_ATOMIC]);
+        $this->properties[self::PROP_ATOMICITY_MODE] = $atomicityMode;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getAtomicityMode(): ?int
+    {
+        return $this->getProperty(self::PROP_ATOMICITY_MODE);
+    }
+
+    /**
+     *
+     *
+     * @param int $backups
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setBackups(int $backups): CacheConfiguration
+    {
+        $this->properties[self::PROP_BACKUPS] = $backups;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getBackups(): ?int
+    {
+        return $this->getProperty(self::PROP_BACKUPS);
+    }
+
+    /**
+     *
+     *
+     * @param int $cacheMode one of @ref CacheMode constants.
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     *
+     * @throws ClientException if error.
+     */
+    public function setCacheMode(int $cacheMode): CacheConfiguration
+    {
+        ArgumentChecker::hasValueFrom(
+            $cacheMode,
+            'cacheMode',
+            false,
+            [self::CACHE_MODE_LOCAL, self::CACHE_MODE_REPLICATED, self::CACHE_MODE_PARTITIONED]);
+        $this->properties[self::PROP_CACHE_MODE] = $cacheMode;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getCacheMode(): ?int
+    {
+        return $this->getProperty(self::PROP_CACHE_MODE);
+    }
+
+    /**
+     *
+     *
+     * @param bool $copyOnRead
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setCopyOnRead(bool $copyOnRead): CacheConfiguration
+    {
+        $this->properties[self::PROP_COPY_ON_READ] = $copyOnRead;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool|null
+     */
+    public function getCopyOnRead(): ?bool
+    {
+        return $this->getProperty(self::PROP_COPY_ON_READ);
+    }
+
+    /**
+     *
+     *
+     * @param string|null $dataRegionName
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setDataRegionName(?string $dataRegionName): CacheConfiguration
+    {
+        $this->properties[self::PROP_DATA_REGION_NAME] = $dataRegionName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getDataRegionName(): ?string
+    {
+        return $this->getProperty(self::PROP_DATA_REGION_NAME);
+    }
+
+    /**
+     *
+     *
+     * @param bool $eagerTtl
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setEagerTtl(bool $eagerTtl): CacheConfiguration
+    {
+        $this->properties[self::PROP_EAGER_TTL] = $eagerTtl;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool|null
+     */
+    public function getEagerTtl(): ?bool
+    {
+        return $this->getProperty(self::PROP_EAGER_TTL);
+    }
+
+    /**
+     *
+     *
+     * @param bool $statisticsEnabled
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setStatisticsEnabled(bool $statisticsEnabled): CacheConfiguration
+    {
+        $this->properties[self::PROP_STATISTICS_ENABLED] = $statisticsEnabled;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool|null
+     */
+    public function getStatisticsEnabled(): ?bool
+    {
+        return $this->getProperty(self::PROP_STATISTICS_ENABLED);
+    }
+
+    /**
+     *
+     *
+     * @param string|null $groupName
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setGroupName(?string $groupName): CacheConfiguration
+    {
+        $this->properties[self::PROP_GROUP_NAME] = $groupName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getGroupName(): ?string
+    {
+        return $this->getProperty(self::PROP_GROUP_NAME);
+    }
+
+    /**
+     *
+     *
+     * @param float $lockTimeout
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setDefaultLockTimeout(float $lockTimeout): CacheConfiguration
+    {
+        $this->properties[self::PROP_DEFAULT_LOCK_TIMEOUT] = $lockTimeout;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return float|null
+     */
+    public function getDefaultLockTimeout(): ?float
+    {
+        return $this->getProperty(self::PROP_DEFAULT_LOCK_TIMEOUT);
+    }
+
+    /**
+     *
+     *
+     * @param int $maxConcurrentAsyncOperations
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setMaxConcurrentAsyncOperations(int $maxConcurrentAsyncOperations): CacheConfiguration
+    {
+        $this->properties[self::PROP_MAX_CONCURRENT_ASYNC_OPS] = $maxConcurrentAsyncOperations;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getMaxConcurrentAsyncOperations(): ?int
+    {
+        return $this->getProperty(self::PROP_MAX_CONCURRENT_ASYNC_OPS);
+    }
+
+    /**
+     *
+     *
+     * @param int $maxQueryIterators
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setMaxQueryIterators(int $maxQueryIterators): CacheConfiguration
+    {
+        $this->properties[self::PROP_MAX_QUERY_ITERATORS] = $maxQueryIterators;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getMaxQueryIterators(): ?int
+    {
+        return $this->getProperty(self::PROP_MAX_QUERY_ITERATORS);
+    }
+
+    /**
+     *
+     *
+     * @param bool $isOnheapCacheEnabled
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setIsOnheapCacheEnabled(bool $isOnheapCacheEnabled): CacheConfiguration
+    {
+        $this->properties[self::PROP_IS_ONHEAP_CACHE_ENABLED] = $isOnheapCacheEnabled;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool|null
+     */
+    public function getIsOnheapCacheEnabled(): ?bool
+    {
+        return $this->getProperty(self::PROP_IS_ONHEAP_CACHE_ENABLED);
+    }
+
+    /**
+     *
+     *
+     * @param int $partitionLossPolicy one of @ref PartitionLossPolicy constants.
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     *
+     * @throws ClientException if error.
+     */
+    public function setPartitionLossPolicy(int $partitionLossPolicy): CacheConfiguration
+    {
+        ArgumentChecker::hasValueFrom(
+            $partitionLossPolicy,
+            'partitionLossPolicy',
+            false,
+            [
+                self::PARTITION_LOSS_POLICY_READ_ONLY_SAFE,
+                self::PARTITION_LOSS_POLICY_READ_ONLY_ALL,
+                self::PARTITION_LOSS_POLICY_READ_WRITE_SAFE,
+                self::PARTITION_LOSS_POLICY_READ_WRITE_ALL,
+                self::PARTITION_LOSS_POLICY_IGNORE
+            ]);
+        $this->properties[self::PROP_PARTITION_LOSS_POLICY] = $partitionLossPolicy;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getPartitionLossPolicy(): ?int
+    {
+        return $this->getProperty(self::PROP_PARTITION_LOSS_POLICY);
+    }
+
+    /**
+     *
+     *
+     * @param int $queryDetailMetricsSize
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setQueryDetailMetricsSize(int $queryDetailMetricsSize): CacheConfiguration
+    {
+        $this->properties[self::PROP_QUERY_DETAIL_METRICS_SIZE] = $queryDetailMetricsSize;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getQueryDetailMetricsSize(): ?int
+    {
+        return $this->getProperty(self::PROP_QUERY_DETAIL_METRICS_SIZE);
+    }
+
+    /**
+     *
+     *
+     * @param int $queryParallelism
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setQueryParallelism(int $queryParallelism): CacheConfiguration
+    {
+        $this->properties[self::PROP_QUERY_PARALLELISM] = $queryParallelism;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getQueryParallelism(): ?int
+    {
+        return $this->getProperty(self::PROP_QUERY_PARALLELISM);
+    }
+
+    /**
+     *
+     *
+     * @param bool $readFromBackup
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setReadFromBackup(bool $readFromBackup): CacheConfiguration
+    {
+        $this->properties[self::PROP_READ_FROM_BACKUP] = $readFromBackup;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool|null
+     */
+    public function getReadFromBackup(): ?bool
+    {
+        return $this->getProperty(self::PROP_READ_FROM_BACKUP);
+    }
+
+    /**
+     *
+     *
+     * @param int $rebalanceBatchSize
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setRebalanceBatchSize(int $rebalanceBatchSize): CacheConfiguration
+    {
+        $this->properties[self::PROP_REBALANCE_BATCH_SIZE] = $rebalanceBatchSize;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getRebalanceBatchSize(): ?int
+    {
+        return $this->getProperty(self::PROP_REBALANCE_BATCH_SIZE);
+    }
+
+    /**
+     *
+     *
+     * @param float $rebalanceBatchesPrefetchCount
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setRebalanceBatchesPrefetchCount(float $rebalanceBatchesPrefetchCount): CacheConfiguration
+    {
+        $this->properties[self::PROP_REBALANCE_BATCHES_PREFETCH_COUNT] = $rebalanceBatchesPrefetchCount;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return float|null
+     */
+    public function getRebalanceBatchesPrefetchCount(): ?float
+    {
+        return $this->getProperty(self::PROP_REBALANCE_BATCHES_PREFETCH_COUNT);
+    }
+
+    /**
+     *
+     *
+     * @param float $rebalanceDelay
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setRebalanceDelay(float $rebalanceDelay): CacheConfiguration
+    {
+        $this->properties[self::PROP_REBALANCE_DELAY] = $rebalanceDelay;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return float|null
+     */
+    public function getRebalanceDelay(): ?float
+    {
+        return $this->getProperty(self::PROP_REBALANCE_DELAY);
+    }
+
+    /**
+     *
+     *
+     * @param int $rebalanceMode one of @ref RebalanceMode constants.
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     *
+     * @throws ClientException if error.
+     */
+    public function setRebalanceMode(int $rebalanceMode): CacheConfiguration
+    {
+        ArgumentChecker::hasValueFrom(
+            $rebalanceMode,
+            'rebalanceMode',
+            false,
+            [self::REABALANCE_MODE_SYNC, self::REABALANCE_MODE_ASYNC, self::REABALANCE_MODE_NONE]);
+        $this->properties[self::PROP_REBALANCE_MODE] = $rebalanceMode;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getRebalanceMode(): ?int
+    {
+        return $this->getProperty(self::PROP_REBALANCE_MODE);
+    }
+
+    /**
+     *
+     *
+     * @param int $rebalanceOrder
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setRebalanceOrder(int $rebalanceOrder): CacheConfiguration
+    {
+        $this->properties[self::PROP_REBALANCE_ORDER] = $rebalanceOrder;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getRebalanceOrder(): ?int
+    {
+        return $this->getProperty(self::PROP_REBALANCE_ORDER);
+    }
+
+    /**
+     *
+     *
+     * @param float $rebalanceThrottle
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setRebalanceThrottle(float $rebalanceThrottle): CacheConfiguration
+    {
+        $this->properties[self::PROP_REBALANCE_THROTTLE] = $rebalanceThrottle;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return float|null
+     */
+    public function getRebalanceThrottle(): ?float
+    {
+        return $this->getProperty(self::PROP_REBALANCE_THROTTLE);
+    }
+
+    /**
+     *
+     *
+     * @param float $rebalanceTimeout
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setRebalanceTimeout(float $rebalanceTimeout): CacheConfiguration
+    {
+        $this->properties[self::PROP_REBALANCE_TIMEOUT] = $rebalanceTimeout;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return float|null
+     */
+    public function getRebalanceTimeout(): ?float
+    {
+        return $this->getProperty(self::PROP_REBALANCE_TIMEOUT);
+    }
+
+    /**
+     *
+     *
+     * @param bool $sqlEscapeAll
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setSqlEscapeAll(bool $sqlEscapeAll): CacheConfiguration
+    {
+        $this->properties[self::PROP_SQL_ESCAPE_ALL] = $sqlEscapeAll;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool|null
+     */
+    public function getSqlEscapeAll(): ?bool
+    {
+        return $this->getProperty(self::PROP_SQL_ESCAPE_ALL);
+    }
+
+    /**
+     *
+     *
+     * @param int $sqlIndexInlineMaxSize
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setSqlIndexInlineMaxSize(int $sqlIndexInlineMaxSize): CacheConfiguration
+    {
+        $this->properties[self::PROP_SQL_INDEX_INLINE_MAX_SIZE] = $sqlIndexInlineMaxSize;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getSqlIndexInlineMaxSize(): ?int
+    {
+        return $this->getProperty(self::PROP_SQL_INDEX_INLINE_MAX_SIZE);
+    }
+
+    /**
+     *
+     *
+     * @param string|null $sqlSchema
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setSqlSchema(?string $sqlSchema): CacheConfiguration
+    {
+        $this->properties[self::PROP_SQL_SCHEMA] = $sqlSchema;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getSqlSchema(): ?string
+    {
+        return $this->getProperty(self::PROP_SQL_SCHEMA);
+    }
+
+    /**
+     *
+     *
+     * @param int $writeSynchronizationMode one of @ref WriteSynchronizationMode constants.
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     *
+     * @throws ClientException if error.
+     */
+    public function setWriteSynchronizationMode(int $writeSynchronizationMode): CacheConfiguration
+    {
+        ArgumentChecker::hasValueFrom(
+            $writeSynchronizationMode,
+            'writeSynchronizationMode',
+            false,
+            [self::WRITE_SYNC_MODE_FULL_SYNC, self::WRITE_SYNC_MODE_FULL_ASYNC, self::WRITE_SYNC_MODE_PRIMARY_SYNC]);
+        $this->properties[self::PROP_WRITE_SYNCHRONIZATION_MODE] = $writeSynchronizationMode;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int|null
+     */
+    public function getWriteSynchronizationMode(): ?int
+    {
+        return $this->getProperty(self::PROP_WRITE_SYNCHRONIZATION_MODE);
+    }
+
+    /**
+     *
+     *
+     * @param CacheKeyConfiguration ...$keyConfigurations
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setKeyConfigurations(CacheKeyConfiguration ...$keyConfigurations): CacheConfiguration
+    {
+        $this->properties[self::PROP_CACHE_KEY_CONFIGURATION] = $keyConfigurations;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return CacheKeyConfiguration[]|null
+     */
+    public function getKeyConfigurations(): ?array
+    {
+        return $this->getProperty(self::PROP_CACHE_KEY_CONFIGURATION);
+    }
+
+    /**
+     *
+     *
+     * @param QueryEntity ...$queryEntities
+     *
+     * @return CacheConfiguration the same instance of the CacheConfiguration.
+     */
+    public function setQueryEntities(QueryEntity ...$queryEntities): CacheConfiguration
+    {
+        $this->properties[self::PROP_QUERY_ENTITY] = $queryEntities;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return QueryEntity[]|null
+     */
+    public function getQueryEntities(): ?array
+    {
+        return $this->getProperty(self::PROP_QUERY_ENTITY);
+    }
+
+    private function getProperty(int $prop)
+    {
+        if (array_key_exists($prop, $this->properties)) {
+            return $this->properties[$prop];
+        }
+        return null;
+    }
+
+    static function init(): void
+    {
+        self::$propInfo = array(
+            self::PROP_NAME => ObjectType::STRING,
+            self::PROP_CACHE_MODE => ObjectType::INTEGER,
+            self::PROP_ATOMICITY_MODE => ObjectType::INTEGER,
+            self::PROP_BACKUPS => ObjectType::INTEGER,
+            self::PROP_WRITE_SYNCHRONIZATION_MODE => ObjectType::INTEGER,
+            self::PROP_COPY_ON_READ => ObjectType::BOOLEAN,
+            self::PROP_READ_FROM_BACKUP => ObjectType::BOOLEAN,
+            self::PROP_DATA_REGION_NAME => ObjectType::STRING,
+            self::PROP_IS_ONHEAP_CACHE_ENABLED => ObjectType::BOOLEAN,
+            self::PROP_QUERY_ENTITY => new ObjectArrayType((new ComplexObjectType())->setPhpClassName(QueryEntity::class)),
+            self::PROP_QUERY_PARALLELISM => ObjectType::INTEGER,
+            self::PROP_QUERY_DETAIL_METRICS_SIZE => ObjectType::INTEGER,
+            self::PROP_SQL_SCHEMA => ObjectType::STRING,
+            self::PROP_SQL_INDEX_INLINE_MAX_SIZE => ObjectType::INTEGER,
+            self::PROP_SQL_ESCAPE_ALL => ObjectType::BOOLEAN,
+            self::PROP_MAX_QUERY_ITERATORS => ObjectType::INTEGER,
+            self::PROP_REBALANCE_MODE => ObjectType::INTEGER,
+            self::PROP_REBALANCE_DELAY => ObjectType::LONG,
+            self::PROP_REBALANCE_TIMEOUT => ObjectType::LONG,
+            self::PROP_REBALANCE_BATCH_SIZE => ObjectType::INTEGER,
+            self::PROP_REBALANCE_BATCHES_PREFETCH_COUNT => ObjectType::LONG,
+            self::PROP_REBALANCE_ORDER => ObjectType::INTEGER,
+            self::PROP_REBALANCE_THROTTLE => ObjectType::LONG,
+            self::PROP_GROUP_NAME => ObjectType::STRING,
+            self::PROP_CACHE_KEY_CONFIGURATION => new ObjectArrayType((new ComplexObjectType())->setPhpClassName(CacheKeyConfiguration::class)),
+            self::PROP_DEFAULT_LOCK_TIMEOUT => ObjectType::LONG,
+            self::PROP_MAX_CONCURRENT_ASYNC_OPS => ObjectType::INTEGER,
+            self::PROP_PARTITION_LOSS_POLICY => ObjectType::INTEGER,
+            self::PROP_EAGER_TTL => ObjectType::BOOLEAN,
+            self::PROP_STATISTICS_ENABLED => ObjectType::BOOLEAN
+        );
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function write(BinaryCommunicator $communicator, MessageBuffer $buffer, string $name): void
+    {
+        $this->setName($name);
+
+        $startPos = $buffer->getPosition();
+        $buffer->setPosition($startPos +
+            BinaryUtils::getSize(ObjectType::INTEGER) +
+            BinaryUtils::getSize(ObjectType::SHORT));
+
+        foreach ($this->properties as $propertyCode => $property) {
+            $this->writeProperty($communicator, $buffer, $propertyCode, $property);
+        }
+
+        $length = $buffer->getPosition() - $startPos;
+        $buffer->setPosition($startPos);
+
+        $buffer->writeInteger($length);
+        $buffer->writeShort(count($this->properties));
+    }
+
+    private function writeProperty(BinaryCommunicator $communicator, MessageBuffer $buffer, int $propertyCode, $property): void
+    {
+        $buffer->writeShort($propertyCode);
+        $propertyType = self::$propInfo[$propertyCode];
+        switch (BinaryUtils::getTypeCode($propertyType)) {
+            case ObjectType::INTEGER:
+            case ObjectType::LONG:
+            case ObjectType::BOOLEAN:
+                $communicator->writeObject($buffer, $property, $propertyType, false);
+                return;
+            case ObjectType::STRING:
+                $communicator->writeObject($buffer, $property, $propertyType);
+                return;
+            case ObjectType::OBJECT_ARRAY:
+                $length = $property ? count($property) : 0;
+                $buffer->writeInteger($length);
+                foreach ($property as $prop) {
+                    $prop->write($communicator, $buffer);
+                }
+                return;
+            default:
+                BinaryUtils::internalError();
+        }
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function read(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        //length
+        $buffer->readInteger();
+        $this->readProperty($communicator, $buffer, self::PROP_ATOMICITY_MODE);
+        $this->readProperty($communicator, $buffer, self::PROP_BACKUPS);
+        $this->readProperty($communicator, $buffer, self::PROP_CACHE_MODE);
+        $this->readProperty($communicator, $buffer, self::PROP_COPY_ON_READ);
+        $this->readProperty($communicator, $buffer, self::PROP_DATA_REGION_NAME);
+        $this->readProperty($communicator, $buffer, self::PROP_EAGER_TTL);
+        $this->readProperty($communicator, $buffer, self::PROP_STATISTICS_ENABLED);
+        $this->readProperty($communicator, $buffer, self::PROP_GROUP_NAME);
+        $this->readProperty($communicator, $buffer, self::PROP_DEFAULT_LOCK_TIMEOUT);
+        $this->readProperty($communicator, $buffer, self::PROP_MAX_CONCURRENT_ASYNC_OPS);
+        $this->readProperty($communicator, $buffer, self::PROP_MAX_QUERY_ITERATORS);
+        $this->readProperty($communicator, $buffer, self::PROP_NAME);
+        $this->readProperty($communicator, $buffer, self::PROP_IS_ONHEAP_CACHE_ENABLED);
+        $this->readProperty($communicator, $buffer, self::PROP_PARTITION_LOSS_POLICY);
+        $this->readProperty($communicator, $buffer, self::PROP_QUERY_DETAIL_METRICS_SIZE);
+        $this->readProperty($communicator, $buffer, self::PROP_QUERY_PARALLELISM);
+        $this->readProperty($communicator, $buffer, self::PROP_READ_FROM_BACKUP);
+        $this->readProperty($communicator, $buffer, self::PROP_REBALANCE_BATCH_SIZE);
+        $this->readProperty($communicator, $buffer, self::PROP_REBALANCE_BATCHES_PREFETCH_COUNT);
+        $this->readProperty($communicator, $buffer, self::PROP_REBALANCE_DELAY);
+        $this->readProperty($communicator, $buffer, self::PROP_REBALANCE_MODE);
+        $this->readProperty($communicator, $buffer, self::PROP_REBALANCE_ORDER);
+        $this->readProperty($communicator, $buffer, self::PROP_REBALANCE_THROTTLE);
+        $this->readProperty($communicator, $buffer, self::PROP_REBALANCE_TIMEOUT);
+        $this->readProperty($communicator, $buffer, self::PROP_SQL_ESCAPE_ALL);
+        $this->readProperty($communicator, $buffer, self::PROP_SQL_INDEX_INLINE_MAX_SIZE);
+        $this->readProperty($communicator, $buffer, self::PROP_SQL_SCHEMA);
+        $this->readProperty($communicator, $buffer, self::PROP_WRITE_SYNCHRONIZATION_MODE);
+        $this->readProperty($communicator, $buffer, self::PROP_CACHE_KEY_CONFIGURATION);
+        $this->readProperty($communicator, $buffer, self::PROP_QUERY_ENTITY);
+    }
+
+    private function readProperty(BinaryCommunicator $communicator, MessageBuffer $buffer, int $propertyCode): void
+    {
+        $propertyType = self::$propInfo[$propertyCode];
+        switch (BinaryUtils::getTypeCode($propertyType)) {
+            case ObjectType::INTEGER:
+            case ObjectType::LONG:
+            case ObjectType::BOOLEAN:
+                $this->properties[$propertyCode] = $communicator->readTypedObject($buffer, $propertyType);
+                return;
+            case ObjectType::STRING:
+                $this->properties[$propertyCode] = $communicator->readObject($buffer, $propertyType);
+                return;
+            case ObjectType::OBJECT_ARRAY:
+                $length = $buffer->readInteger();
+                $properties = [];
+                for ($i = 0; $i < $length; $i++) {
+                    $propClassName = $propertyType->getElementType()->getPhpClassName();
+                    $property = new $propClassName();
+                    $property->read($communicator, $buffer);
+                    array_push($properties, $property);
+                }
+                $this->properties[$propertyCode] = $properties;
+                return;
+            default:
+                BinaryUtils::internalError();
+        }
+    }
+}
+
+CacheConfiguration::init();
diff --git a/src/Apache/Ignite/Cache/CacheEntry.php b/src/Apache/Ignite/Cache/CacheEntry.php
new file mode 100644
index 0000000..bd933c6
--- /dev/null
+++ b/src/Apache/Ignite/Cache/CacheEntry.php
@@ -0,0 +1,60 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Cache;
+
+/**
+ * A cache entry (key-value pair).
+ */
+class CacheEntry
+{
+    private $key;
+    private $value;
+    
+    /**
+     * Public constructor.
+     * 
+     * @param mixed $key key corresponding to this entry.
+     * @param mixed $value value associated with the key.
+     */
+    public function __construct($key, $value)
+    {
+        $this->key = $key;
+        $this->value = $value;
+    }
+
+    /**
+     * Returns the key corresponding to this entry.
+     * 
+     * @return mixed the key corresponding to this entry.
+     */
+    public function getKey()
+    {
+        return $this->key;
+    }
+
+    /**
+     * Returns the value corresponding to this entry.
+     *
+     * @return mixed the value corresponding to this entry.
+     */
+    public function getValue()
+    {
+        return $this->value;
+    }
+}
diff --git a/src/Apache/Ignite/Cache/CacheInterface.php b/src/Apache/Ignite/Cache/CacheInterface.php
new file mode 100644
index 0000000..a228073
--- /dev/null
+++ b/src/Apache/Ignite/Cache/CacheInterface.php
@@ -0,0 +1,379 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Cache;
+
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Query\Query;
+use Apache\Ignite\Query\CursorInterface;
+
+/**
+ * Interface representing and providing access to Ignite cache.
+ *
+ * An instance of the class with this interface should be obtained via the methods of Ignite Client.
+ * One instance of such a class provides access to one Ignite cache which is specified
+ * during the instance obtaining and cannot be changed after that.
+ *
+ * There are three groups of methods in the cache interface:
+ *   - methods to configure the interface itself (optionally specify Ignite type for cache key and/or value)
+ *   - methods to operate with the cache using Key-Value Queries
+ *   - methods to operate with the cache using SQL and Scan Queries
+ * 
+ */
+interface CacheInterface
+{
+    /** @name PeekMode
+     *  @anchor PeekMode
+     *  @{
+     */
+    
+    /**
+     * Peek mode ALL
+     */
+    const PEEK_MODE_ALL = 0;
+    
+    /**
+     * Peek mode NEAR
+     */
+    const PEEK_MODE_NEAR = 1;
+    
+    /**
+     * Peek mode PRIMARY
+     */
+    const PEEK_MODE_PRIMARY = 2;
+    
+    /**
+     * Peek mode BACKUP
+     */
+    const PEEK_MODE_BACKUP = 3;
+    /** @} */ // end of PeekMode
+
+    /* Methods to configure the cache interface */
+
+    /**
+     * Specifies a type of the cache key.
+     *
+     * Ignite client assumes that keys in all further operations with the cache
+     * will have the Ignite type specified by this method.
+     * Eg. the client will convert keys provided as input parameters of the Key-Value or SQL operations
+     * to the specified Ignite object type before sending the keys to a server.
+     *
+     * By default a type of the cache key is not specified (null).
+     *
+     * If the type is not specified then during operations Ignite client
+     * will do automatic mapping between some of the PHP types and Ignite object types -
+     * according to the mapping table defined in the description of the ObjectType class.
+     *
+     * @param int|ObjectType|null $type type of the keys in the cache:
+     *   - either a type code of primitive (simple) type
+     *   - or an instance of class representing non-primitive (composite) type
+     *   - or null (means the type is not specified).
+     *
+     * @return CacheInterface the same instance of the class.
+     *
+     * @throws ClientException if error.
+     */
+    public function setKeyType($type): CacheInterface;
+    
+    /**
+     * Specifies a type of the cache value.
+     *
+     * Ignite client assumes that values in all further operations with the cache
+     * will have the Ignite type specified by this method.
+     * Eg. the client will convert values provided as input parameters of the Key-Value or SQL operations
+     * to the specified Ignite object type before sending the values to a server.
+     *
+     * By default a type of the cache value is not specified (null).
+     *
+     * If the type is not specified then during operations Ignite client
+     * will do automatic mapping between some of the PHP types and Ignite object types -
+     * according to the mapping table defined in the description of the ObjectType class.
+     *
+     * @param int|ObjectType|null $type type of the values in the cache:
+     *   - either a type code of primitive (simple) type (@ref PrimitiveTypeCodes)
+     *   - or an instance of class representing non-primitive (composite) type
+     *   - or null (means the type is not specified).
+     *
+     * @return CacheInterface the same instance of the class.
+     *
+     * @throws ClientException if error.
+     */
+    public function setValueType($type): CacheInterface;
+
+    /* Methods to operate with the cache using Key-Value Queries */
+    
+    /**
+     * Retrieves a value associated with the specified key from the cache.
+     * 
+     * @param mixed $key key.
+     * 
+     * @return mixed value associated with the specified key, or null if it does not exist.
+     * 
+     * @throws ClientException if error.
+     */
+    public function get($key);
+    
+    /**
+     * Retrieves entries associated with the specified keys from the cache.
+     *
+     * @param array $keys keys.
+     *
+     * @return array the retrieved entries (key-value pairs) of CacheEntry.
+     *   Entries with the keys which do not exist in the cache are not included into the array.
+     *
+     * @throws ClientException if error.
+     */
+    public function getAll(array $keys): array;
+    
+    /**
+     * Associates the specified value with the specified key in the cache.
+     *
+     * Overwrites the previous value if the key exists in the cache,
+     * otherwise creates new entry (key-value pair).
+     * 
+     * @param mixed $key key
+     * @param mixed $value value to be associated with the specified key.
+     *
+     * @throws ClientException if error.
+     */
+    public function put($key, $value): void;
+
+    /**
+     * Associates the specified values with the specified keys in the cache.
+     *
+     * Overwrites the previous value if a key exists in the cache,
+     * otherwise creates new entry (key-value pair).
+     *
+     * @param array $entries entries (key-value pairs) of CacheEntry to be put into the cache.
+     *
+     * @throws ClientException if error.
+     */
+    public function putAll(array $entries): void;
+    
+    /**
+     * Checks if the specified key exists in the cache.
+     * 
+     * @param mixed $key key to check.
+     * 
+     * @return bool true if the key exists, false otherwise.
+     *
+     * @throws ClientException if error.
+     */
+    public function containsKey($key): bool;
+    
+    /**
+     * Checks if all the specified keys exist in the cache.
+     * 
+     * @param array $keys keys to check.
+     * 
+     * @return bool true if all the keys exist,
+     *   false if at least one of the keys does not exist in the cache.
+     * 
+     * @throws ClientException if error.
+     */
+    public function containsKeys(array $keys): bool;
+    
+    /**
+     * Associates the specified value with the specified key in the cache
+     * and returns the previous associated value, if any.
+     *
+     * Overwrites the previous value if the key exists in the cache,
+     * otherwise creates new entry (key-value pair).
+     * 
+     * @param mixed $key key.
+     * @param mixed $value value to be associated with the specified key.
+     * 
+     * @return mixed the previous value associated with the specified key, or null if it did not exist.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getAndPut($key, $value);
+
+    /**
+     * Associates the specified value with the specified key in the cache
+     * and returns the previous associated value, if the key exists in the cache.
+     * Otherwise does nothing and returns null.
+     * 
+     * @param mixed $key key.
+     * @param mixed $value value to be associated with the specified key.
+     * 
+     * @return mixed the previous value associated with the specified key, or null if it did not exist.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getAndReplace($key, $value);
+    
+    /**
+     * Removes the cache entry with the specified key and returns the last associated value, if any.
+     * 
+     * @param mixed $key key of the entry to be removed.
+     * 
+     * @return mixed the last value associated with the specified key, or null if it did not exist.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getAndRemove($key);
+
+    /**
+     * Creates new entry (key-value pair) if the specified key does not exist in the cache.
+     * Otherwise does nothing.
+     * 
+     * @param mixed $key key.
+     * @param mixed $value value to be associated with the specified key.
+     * 
+     * @return true if the operation has been done, false otherwise.
+     * 
+     * @throws ClientException if error.
+     */
+    public function putIfAbsent($key, $value): bool;
+    
+    /**
+     * Creates new entry (key-value pair) if the specified key does not exist in the cache.
+     * Otherwise returns the current value associated with the existing key.
+     * 
+     * @param mixed $key key.
+     * @param mixed $value value to be associated with the specified key.
+     * 
+     * @return mixed the current value associated with the key if it already exists in the cache,
+     *   null if the new entry is created.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getAndPutIfAbsent($key, $value);
+    
+    /**
+     * Associates the specified value with the specified key, if the key exists in the cache.
+     * Otherwise does nothing.
+     * 
+     * @param mixed $key key.
+     * @param mixed $value value to be associated with the specified key.
+     * 
+     * @return bool true if the operation has been done, false otherwise.
+     * 
+     * @throws ClientException if error.
+     */
+    public function replace($key, $value): bool;
+
+    /**
+     * Associates the new value with the specified key, if the key exists in the cache
+     * and the current value equals to the provided one.
+     * Otherwise does nothing.
+     * 
+     * @param mixed $key key.
+     * @param mixed $value value to be compared with the current value associated with the specified key.
+     * @param mixed $newValue new value to be associated with the specified key.
+     * 
+     * @return bool true if the operation has been done, false otherwise.
+     * 
+     * @throws ClientException if error.
+     */
+    public function replaceIfEquals($key, $value, $newValue): bool;
+    
+    /**
+     * Removes all entries from the cache, without notifying listeners and cache writers.
+     * 
+     * @throws ClientException if error.
+     */
+    public function clear(): void;
+    
+    /**
+     * Removes entry with the specified key from the cache, without notifying listeners and cache writers.
+     * 
+     * @param mixed $key key to be removed.
+     *
+     * @throws ClientException if error.
+     */
+    public function clearKey($key): void;
+    
+    /**
+     * Removes entries with the specified keys from the cache, without notifying listeners and cache writers.
+     * 
+     * @param array $keys keys to be removed.
+     * 
+     * @throws ClientException if error.
+     */
+    public function clearKeys($keys): void;
+    
+    /**
+     * Removes entry with the specified key from the cache, notifying listeners and cache writers.
+     * 
+     * @param mixed $key key to be removed.
+     * 
+     * @return bool true if the operation has been done, false otherwise.
+     * 
+     * @throws ClientException if error.
+     */
+    public function removeKey($key): bool;
+    
+    /**
+     * Removes entry with the specified key from the cache, if the current value equals to the provided one.
+     * Notifies listeners and cache writers.
+     * 
+     * @param mixed $key key to be removed.
+     * @param mixed $value value to be compared with the current value associated with the specified key.
+     * 
+     * @return bool true if the operation has been done, false otherwise.
+     * 
+     * @throws ClientException if error.
+     */
+    public function removeIfEquals($key, $value): bool;
+    
+    /**
+     * Removes entries with the specified keys from the cache, notifying listeners and cache writers.
+     * 
+     * @param array $keys keys to be removed.
+     * 
+     * @throws ClientException if error.
+     */
+    public function removeKeys($keys): void;
+            
+    /**
+     * Removes all entries from the cache, notifying listeners and cache writers.
+     * 
+     * @throws ClientException if error.
+     */
+    public function removeAll(): void;
+    
+    /**
+     * Returns the number of the entries in the cache.
+     * 
+     * @param int ...$peekModes peek modes, values from @ref PeekMode constants.
+     * 
+     * @return int the number of the entries in the cache.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getSize(int ...$peekModes): int;
+
+    /* Methods to operate with the cache using SQL and Scan Queries */
+
+    /**
+     * Starts an SQL, SQL Fields or Scan query operation.
+     * 
+     * @param Query $query query to be executed.
+     * 
+     * @return CursorInterface new instance of the class with interface representing a cursor
+     * to obtain the results of the query operation:
+     *   - SqlFieldsCursorInterface in case of SqlFieldsQuery query
+     *   - CursorInterface in case of other types of query
+     *
+     * @throws ClientException if error.
+     */
+    public function query(Query $query): CursorInterface;
+}
diff --git a/src/Apache/Ignite/Cache/CacheKeyConfiguration.php b/src/Apache/Ignite/Cache/CacheKeyConfiguration.php
new file mode 100644
index 0000000..cbbc249
--- /dev/null
+++ b/src/Apache/Ignite/Cache/CacheKeyConfiguration.php
@@ -0,0 +1,107 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Cache;
+
+use Apache\Ignite\Internal\Binary\BinaryCommunicator;
+use Apache\Ignite\Internal\Binary\MessageBuffer;
+
+/**
+ * Class representing Cache Key part of Ignite CacheConfiguration.
+ *
+ * All configuration settings are optional and have defaults which are defined on a server side.
+ *
+ * See Apache Ignite documentation for details of every configuration setting.
+ */
+class CacheKeyConfiguration
+{
+    private $typeName;
+    private $affinityKeyFieldName;
+
+    /**
+     * CacheKeyConfiguration constructor.
+     *
+     * @param string|null $typeName
+     * @param string|null $affinityKeyFieldName
+     */
+    public function __construct(string $typeName = null, string $affinityKeyFieldName = null)
+    {
+        $this->typeName = $typeName;
+        $this->affinityKeyFieldName = $affinityKeyFieldName;
+    }
+
+    /**
+     *
+     *
+     * @param string $typeName
+     *
+     * @return CacheKeyConfiguration the same instance of the CacheKeyConfiguration.
+     */
+    public function setTypeName(string $typeName): CacheKeyConfiguration
+    {
+        $this->typeName = $typeName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getTypeName(): ?string
+    {
+        return $this->typeName;
+    }
+
+    /**
+     *
+     *
+     * @param string $affinityKeyFieldName
+     *
+     * @return CacheKeyConfiguration the same instance of the CacheKeyConfiguration.
+     */
+    public function setAffinityKeyFieldName(string $affinityKeyFieldName): CacheKeyConfiguration
+    {
+        $this->affinityKeyFieldName = $affinityKeyFieldName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getAffinityKeyFieldName(): ?string
+    {
+        return $this->affinityKeyFieldName;
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function write(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        BinaryCommunicator::writeString($buffer, $this->typeName);
+        BinaryCommunicator::writeString($buffer, $this->affinityKeyFieldName);
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function read(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        $this->typeName = BinaryCommunicator::readString($buffer);
+        $this->affinityKeyFieldName = BinaryCommunicator::readString($buffer);
+    }
+}
diff --git a/src/Apache/Ignite/Cache/QueryEntity.php b/src/Apache/Ignite/Cache/QueryEntity.php
new file mode 100644
index 0000000..6be3c5a
--- /dev/null
+++ b/src/Apache/Ignite/Cache/QueryEntity.php
@@ -0,0 +1,315 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Cache;
+
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Internal\Binary\BinaryCommunicator;
+use Apache\Ignite\Internal\Binary\MessageBuffer;
+
+/**
+ * Class representing one Query Entity element of Ignite CacheConfiguration.
+ *
+ * All configuration settings are optional and have defaults which are defined on a server side.
+ *
+ * See Apache Ignite documentation for details of every configuration setting.
+ */
+class QueryEntity
+{
+    private $keyTypeName;
+    private $valueTypeName;
+    private $tableName;
+    private $keyFieldName;
+    private $valueFieldName;
+    private $fields;
+    private $aliases;
+    private $indexes;
+
+    /**
+     * QueryEntity constructor.
+     */
+    public function __construct()
+    {
+        $this->keyTypeName = null;
+        $this->valueTypeName = null;
+        $this->tableName = null;
+        $this->keyFieldName = null;
+        $this->valueFieldName = null;
+        $this->fields = null;
+        $this->aliases = null;
+        $this->indexes = null;
+    }
+
+    /**
+     *
+     *
+     * @param string $keyTypeName
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setKeyTypeName(string $keyTypeName): QueryEntity
+    {
+        $this->keyTypeName = $keyTypeName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getKeyTypeName(): ?string
+    {
+        return $this->keyTypeName;
+    }
+
+    /**
+     *
+     *
+     * @param string $valueTypeName
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setValueTypeName(string $valueTypeName): QueryEntity
+    {
+        $this->valueTypeName = $valueTypeName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getValueTypeName(): ?string
+    {
+        return $this->valueTypeName;
+    }
+
+    /**
+     *
+     *
+     * @param string $tableName
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setTableName(string $tableName): QueryEntity
+    {
+        $this->tableName = $tableName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getTableName(): ?string
+    {
+        return $this->tableName;
+    }
+
+    /**
+     *
+     *
+     * @param string $keyFieldName
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setKeyFieldName(string $keyFieldName): QueryEntity
+    {
+        $this->keyFieldName = $keyFieldName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getKeyFieldName(): ?string
+    {
+        return $this->keyFieldName;
+    }
+
+    /**
+     *
+     *
+     * @param string $valueFieldName
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setValueFieldName(string $valueFieldName): QueryEntity
+    {
+        $this->valueFieldName = $valueFieldName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getValueFieldName(): ?string
+    {
+        return $this->valueFieldName;
+    }
+
+    /**
+     *
+     *
+     * @param QueryField ...$fields
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setFields(QueryField ...$fields): QueryEntity
+    {
+        $this->fields = $fields;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return QueryField[]|null
+     */
+    public function getFields(): ?array
+    {
+        return $this->fields;
+    }
+
+    /**
+     *
+     *
+     * @param array[string => string] $aliases
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setAliases(array $aliases): QueryEntity
+    {
+        $this->aliases = $aliases;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return array[string => string]|null
+     */
+    public function getAliases(): ?array
+    {
+        return $this->aliases;
+    }
+
+    /**
+     *
+     *
+     * @param QueryIndex ...$indexes
+     *
+     * @return QueryEntity the same instance of the QueryEntity.
+     */
+    public function setIndexes(QueryIndex ...$indexes): QueryEntity
+    {
+        $this->indexes = $indexes;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return QueryIndex[]|null
+     */
+    public function getIndexes(): ?array
+    {
+        return $this->indexes;
+    }
+
+    private function writeAliases(MessageBuffer $buffer): void
+    {
+        $length = $this->aliases ? count($this->aliases) : 0;
+        $buffer->writeInteger($length);
+        if ($length > 0) {
+            foreach ($this->aliases as $key => $value) {
+                BinaryCommunicator::writeString($buffer, $key);
+                BinaryCommunicator::writeString($buffer, $value);
+            }
+        }
+    }
+
+    private function writeSubEntities(BinaryCommunicator $communicator, MessageBuffer $buffer, ?array $entities): void
+    {
+        $length = $entities ? count($entities) : 0;
+        $buffer->writeInteger($length);
+        if ($length > 0) {
+            foreach ($entities as $entity) {
+                $entity->write($communicator, $buffer);
+            }
+        }
+    }
+
+    private function readAliases(MessageBuffer $buffer): void
+    {
+        $length = $buffer->readInteger();
+        $this->aliases = [];
+        if ($length > 0) {
+            for ($i = 0; $i < $length; $i++) {
+                $this->aliases[BinaryCommunicator::readString($buffer)] = BinaryCommunicator::readString($buffer);
+            }
+        }
+    }
+
+    private function readSubEntities(BinaryCommunicator $communicator, MessageBuffer $buffer, string $subEntityClassName): array
+    {
+        $result = [];
+        $length = $buffer->readInteger();
+        if ($length > 0) {
+            for ($i = 0; $i < $length; $i++) {
+                $entity = new $subEntityClassName();
+                $entity->read($communicator, $buffer);
+                array_push($result, $entity);
+            }
+        }
+        return $result;
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function write(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        BinaryCommunicator::writeString($buffer, $this->keyTypeName);
+        BinaryCommunicator::writeString($buffer, $this->valueTypeName);
+        BinaryCommunicator::writeString($buffer, $this->tableName);
+        BinaryCommunicator::writeString($buffer, $this->keyFieldName);
+        BinaryCommunicator::writeString($buffer, $this->valueFieldName);
+        $this->writeSubEntities($communicator, $buffer, $this->fields);
+        $this->writeAliases($buffer);
+        $this->writeSubEntities($communicator, $buffer, $this->indexes);
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function read(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        $this->keyTypeName = BinaryCommunicator::readString($buffer);
+        $this->valueTypeName = BinaryCommunicator::readString($buffer);
+        $this->tableName = BinaryCommunicator::readString($buffer);
+        $this->keyFieldName = BinaryCommunicator::readString($buffer);
+        $this->valueFieldName = BinaryCommunicator::readString($buffer);
+        $this->fields = $this->readSubEntities($communicator, $buffer, QueryField::class);
+        $this->readAliases($buffer);
+        $this->indexes = $this->readSubEntities($communicator, $buffer, QueryIndex::class);
+    }
+}
diff --git a/src/Apache/Ignite/Cache/QueryField.php b/src/Apache/Ignite/Cache/QueryField.php
new file mode 100644
index 0000000..55b7724
--- /dev/null
+++ b/src/Apache/Ignite/Cache/QueryField.php
@@ -0,0 +1,279 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Cache;
+
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Internal\Binary\BinaryCommunicator;
+use Apache\Ignite\Internal\Binary\MessageBuffer;
+use Apache\Ignite\Type\ObjectType;
+
+/**
+ * Class representing one Query Field element of QueryEntity of Ignite CacheConfiguration.
+ *
+ * All configuration settings are optional and have defaults which are defined on a server side.
+ *
+ * See Apache Ignite documentation for details of every configuration setting.
+ */
+class QueryField
+{
+    private $name;
+    private $typeName;
+    private $isKeyField;
+    private $isNotNull;
+    private $defaultValue;
+    private $precision;
+    private $scale;
+    private $valueType;
+    private $buffer;
+    private $communicator;
+    private $index;
+
+    /**
+     * QueryField constructor.
+     *
+     * @param string|null $name
+     * @param string|null $typeName
+     */
+    public function __construct(string $name = null, string $typeName = null)
+    {
+        $this->name = $name;
+        $this->typeName = $typeName;
+        $this->isKeyField = false;
+        $this->isNotNull = false;
+        $this->defaultValue = null;
+        $this->precision = -1;
+        $this->scale = -1;
+        $this->valueType = null;
+        $this->buffer = null;
+        $this->communicator = null;
+        $this->index = null;
+    }
+
+    /**
+     *
+     *
+     * @param string $name
+     *
+     * @return QueryField the same instance of the QueryField.
+     */
+    public function setName(string $name): QueryField
+    {
+        $this->name = $name;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getName(): ?string
+    {
+        return $this->name;
+    }
+
+    /**
+     *
+     *
+     * @param string $typeName
+     *
+     * @return QueryField the same instance of the QueryField.
+     */
+    public function setTypeName(string $typeName): QueryField
+    {
+        $this->typeName = $typeName;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getTypeName(): ?string
+    {
+        return $this->typeName;
+    }
+
+    /**
+     *
+     *
+     * @param bool $isKeyField
+     *
+     * @return QueryField the same instance of the QueryField.
+     */
+    public function setIsKeyField(bool $isKeyField): QueryField
+    {
+        $this->isKeyField = $isKeyField;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool
+     */
+    public function getIsKeyField(): bool
+    {
+        return $this->isKeyField;
+    }
+
+    /**
+     *
+     *
+     * @param bool $isNotNull
+     *
+     * @return QueryField the same instance of the QueryField.
+     */
+    public function setIsNotNull(bool $isNotNull): QueryField
+    {
+        $this->isNotNull = $isNotNull;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return bool
+     */
+    public function getIsNotNull(): bool
+    {
+        return $this->isNotNull;
+    }
+
+    /**
+     *
+     *
+     * @param mixed $defaultValue
+     * @param int|ObjectType|null $valueType type of the default value:
+     *   - either a type code of primitive (simple) type (@ref PrimitiveTypeCodes)
+     *   - or an instance of class representing non-primitive (composite) type
+     *   - or null (or not specified) that means the type is not specified
+     * @return QueryField the same instance of the QueryField.
+     */
+    public function setDefaultValue($defaultValue, $valueType = null): QueryField
+    {
+        $this->defaultValue = $defaultValue;
+        $this->valueType = $valueType;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @param int|ObjectType|null $valueType type of the default value:
+     *   - either a type code of primitive (simple) type (@ref PrimitiveTypeCodes)
+     *   - or an instance of class representing non-primitive (composite) type
+     *   - or null (or not specified) that means the type is not specified
+     *
+     * @return mixed
+     *
+     * @throws ClientException if error.
+     */
+    public function getDefaultValue($valueType = null)
+    {
+        if ($this->defaultValue === null) {
+            if ($this->buffer) {
+                $position = $this->buffer->getPosition();
+                $this->buffer->setPosition($this->index);
+                $result = $this->communicator->readObject($this->buffer, $valueType);
+                $this->buffer->setPosition($position);
+                return $result;
+            } else {
+                return null;
+            }
+        } else {
+            return $this->defaultValue;
+        }
+    }
+
+    /**
+     *
+     *
+     * @param int $precision
+     *
+     * @return QueryField the same instance of the QueryField.
+     */
+    public function setPrecision(int $precision): QueryField
+    {
+        $this->precision = $precision;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int
+     */
+    public function getPrecision(): int
+    {
+        return $this->precision;
+    }
+
+    /**
+     *
+     *
+     * @param int $scale
+     *
+     * @return QueryField the same instance of the QueryField.
+     */
+    public function setScale(int $scale): QueryField
+    {
+        $this->scale = $scale;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int
+     */
+    public function getScale(): int
+    {
+        return $this->scale;
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function write(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        BinaryCommunicator::writeString($buffer, $this->name);
+        BinaryCommunicator::writeString($buffer, $this->typeName);
+        $buffer->writeBoolean($this->isKeyField);
+        $buffer->writeBoolean($this->isNotNull);
+        $communicator->writeObject($buffer, $this->defaultValue, $this->valueType);
+        $buffer->writeInteger($this->precision);
+        $buffer->writeInteger($this->scale);
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function read(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        $this->name = BinaryCommunicator::readString($buffer);
+        $this->typeName = BinaryCommunicator::readString($buffer);
+        $this->isKeyField = $buffer->readBoolean();
+        $this->isNotNull = $buffer->readBoolean();
+        $this->defaultValue = null;
+        $this->communicator = $communicator;
+        $this->buffer = $buffer;
+        $this->index = $buffer->getPosition();
+        $communicator->readObject($buffer);
+        $this->precision = $buffer->readInteger();
+        $this->scale = $buffer->readInteger();
+    }
+}
diff --git a/src/Apache/Ignite/Cache/QueryIndex.php b/src/Apache/Ignite/Cache/QueryIndex.php
new file mode 100644
index 0000000..796048f
--- /dev/null
+++ b/src/Apache/Ignite/Cache/QueryIndex.php
@@ -0,0 +1,191 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Cache;
+
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Internal\Binary\BinaryCommunicator;
+use Apache\Ignite\Internal\Binary\MessageBuffer;
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+
+/**
+ * Class representing one Query Index element of QueryEntity of Ignite CacheConfiguration.
+ *
+ * All configuration settings are optional and have defaults which are defined on a server side.
+ *
+ * See Apache Ignite documentation for details of every configuration setting.
+ */
+class QueryIndex
+{
+    /** @name QueryIndexType
+     *  @anchor QueryIndexType
+     *  @{
+     */
+    const TYPE_SORTED = 0;
+    const TYPE_FULLTEXT = 1;
+    const TYPE_GEOSPATIAL = 2;
+    /** @} */ // end of QueryIndexType
+
+    private $name;
+    private $type;
+    private $inlineSize;
+    private $fields;
+
+    /**
+     * QueryIndex constructor.
+     *
+     * @param string|null $name
+     * @param int $type one of @ref QueryIndexType constants.
+     *
+     * @throws ClientException if error.
+     */
+    public function __construct(string $name = null, int $type = self::TYPE_SORTED)
+    {
+        $this->name = $name;
+        $this->setType($type);
+        $this->inlineSize = -1;
+        $this->fields = null;
+    }
+
+    /**
+     *
+     *
+     * @param string $name
+     *
+     * @return QueryIndex the same instance of the QueryIndex.
+     */
+    public function setName(string $name): QueryIndex
+    {
+        $this->name = $name;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return string|null
+     */
+    public function getName(): ?string
+    {
+        return $this->name;
+    }
+
+    /**
+     *
+     *
+     * @param int $type one of @ref QueryIndexType constants.
+     *
+     * @return QueryIndex the same instance of the QueryIndex.
+     *
+     * @throws ClientException if error.
+     */
+    public function setType(int $type): QueryIndex
+    {
+        ArgumentChecker::hasValueFrom(
+            $type, 'type', false, [self::TYPE_SORTED, self::TYPE_FULLTEXT, self::TYPE_GEOSPATIAL]);
+        $this->type = $type;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int index type, one of @ref QueryIndexType constants.
+     */
+    public function getType(): int
+    {
+        return $this->type;
+    }
+
+    /**
+     *
+     *
+     * @param int $inlineSize
+     *
+     * @return QueryIndex the same instance of the QueryIndex.
+     */
+    public function setInlineSize(int $inlineSize): QueryIndex
+    {
+        $this->inlineSize = $inlineSize;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return int
+     */
+    public function getInlineSize(): int
+    {
+        return $this->inlineSize;
+    }
+
+    /**
+     *
+     *
+     * @param array[string => bool] $fields
+     *
+     * @return QueryIndex the same instance of the QueryIndex.
+     */
+    public function setFields(array $fields): QueryIndex
+    {
+        $this->fields = $fields;
+        return $this;
+    }
+
+    /**
+     *
+     *
+     * @return array[string => bool]|null
+     */
+    public function getFields(): ?array
+    {
+        return $this->fields;
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function write(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        BinaryCommunicator::writeString($buffer, $this->name);
+        $buffer->writeByte($this->type);
+        $buffer->writeInteger($this->inlineSize);
+        // write fields
+        $length = $this->fields ? count($this->fields) : 0;
+        $buffer->writeInteger($length);
+        if ($length > 0) {
+            foreach ($this->fields as $key => $value) {
+                BinaryCommunicator::writeString($buffer, $key);
+                $buffer->writeBoolean($value);
+            }
+        }
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function read(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        $this->name = BinaryCommunicator::readString($buffer);
+        $this->type = $buffer->readByte();
+        $this->inlineSize = $buffer->readInteger();
+        // read fields
+        $length = $buffer->readInteger();
+        $this->fields = [];
+        if ($length > 0) {
+            $this->fields[BinaryCommunicator::readString($buffer)] = $buffer->readBoolean();
+        }
+    }
+}
diff --git a/src/Apache/Ignite/Client.php b/src/Apache/Ignite/Client.php
new file mode 100644
index 0000000..82847b4
--- /dev/null
+++ b/src/Apache/Ignite/Client.php
@@ -0,0 +1,243 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite;
+
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Cache\CacheConfiguration;
+use Apache\Ignite\Cache\CacheInterface;
+use Apache\Ignite\Internal\Connection\ClientFailoverSocket;
+use Apache\Ignite\Internal\Binary\MessageBuffer;
+use Apache\Ignite\Internal\Binary\BinaryCommunicator;
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+use Apache\Ignite\Internal\Utils\Logger;
+use Apache\Ignite\Internal\Binary\ClientOperation;
+use Apache\Ignite\Internal\Cache;
+
+/**
+ * @mainpage Public API specification
+ * The thin client allows your PHP applications to work with Apache Ignite clusters via Binary %Client Protocol.
+ *
+ * This is the public API specification of the client.
+ *
+ * If you open it for the first time, start from the Client class.
+ *
+ * For the usage guide and other instructions see accompanied Apache Ignite PHP %Client documentation.
+ */
+
+/**
+ * Class representing Ignite client.
+ */
+class Client
+{
+    private $socket;
+    private $communicator;
+    
+    /**
+     * Public Client constructor.
+     */
+    public function __construct()
+    {
+        $this->socket = new ClientFailoverSocket();
+        $this->communicator = new BinaryCommunicator($this->socket);
+    }
+    
+    /**
+     * Connects the client.
+     *
+     * Reconnects if the client already connected.
+     *
+     * @param ClientConfiguration $config the client configuration.
+     * 
+     * @throws ClientException if error.
+     */
+    public function connect(ClientConfiguration $config): void
+    {
+        $this->socket->connect($config);
+    }
+    
+    /**
+     * Disconnects the client.
+     *
+     * Does nothing if the client already disconnected.
+     */
+    public function disconnect(): void
+    {
+        $this->socket->disconnect();
+    }
+    
+    /**
+     * Creates new cache with the provided name and optional configuration.
+     * 
+     * @param string $name cache name.
+     * @param CacheConfiguration $cacheConfig optional cache configuration.
+     * 
+     * @return CacheInterface new instance of the class with interface representing the created cache.
+     * 
+     * @throws ClientException if error.
+     */
+    public function createCache(
+            string $name,
+            CacheConfiguration $cacheConfig = null): CacheInterface
+    {
+        ArgumentChecker::notEmpty($name, 'name');
+        $this->communicator->send(
+            $cacheConfig ?
+                ClientOperation::CACHE_CREATE_WITH_CONFIGURATION :
+                ClientOperation::CACHE_CREATE_WITH_NAME,
+            function (MessageBuffer $payload) use ($name, $cacheConfig)
+            {
+                $this->writeCacheNameOrConfig($payload, $name, $cacheConfig);
+            });
+        return new Cache($name, $this->communicator);
+    }
+    
+    /**
+     * Gets existing cache with the provided name
+     * or creates new one with the provided name and optional configuration.
+     * 
+     * @param string $name cache name.
+     * @param CacheConfiguration $cacheConfig cache configuration (ignored if cache
+     *   with the provided name already exists).
+     * 
+     * @return CacheInterface new instance of the class with interface representing the existing or created cache.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getOrCreateCache(
+            string $name,
+            CacheConfiguration $cacheConfig = null): CacheInterface
+    {
+        ArgumentChecker::notEmpty($name, 'name');
+        $this->communicator->send(
+            $cacheConfig ?
+                ClientOperation::CACHE_GET_OR_CREATE_WITH_CONFIGURATION :
+                ClientOperation::CACHE_GET_OR_CREATE_WITH_NAME,
+            function (MessageBuffer $payload) use ($name, $cacheConfig)
+            {
+                $this->writeCacheNameOrConfig($payload, $name, $cacheConfig);
+            });
+        return new Cache($name, $this->communicator);
+    }
+    
+    /**
+     * Gets instance of the class with interface representing the cache with the provided name.
+     * The method does not check if the cache with the provided name exists.
+     * 
+     * @param string $name cache name.
+     * 
+     * @return CacheInterface new instance of the class with interface representing the cache.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getCache(string $name): CacheInterface
+    {
+        ArgumentChecker::notEmpty($name, 'name');
+        return new Cache($name, $this->communicator);
+    }
+    
+    /**
+     * Destroys cache with the provided name.
+     *
+     * @param string $name cache name.
+     * 
+     * @throws ClientException if error.
+     */
+    public function destroyCache(string $name): void
+    {
+        ArgumentChecker::notEmpty($name, 'name');
+        $this->communicator->send(
+            ClientOperation::CACHE_DESTROY,
+            function (MessageBuffer $payload) use ($name)
+            {
+                $payload->writeInteger(Cache::calculateId($name));
+            });
+    }
+    
+    /**
+     * Returns configuration of cache with the provided name.
+     * 
+     * @param string $name cache name.
+     * 
+     * @return CacheConfiguration cache configuration.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getCacheConfiguration(string $name): CacheConfiguration
+    {
+        ArgumentChecker::notEmpty($name, 'name');
+        $config = null;
+        $this->communicator->send(
+            ClientOperation::CACHE_GET_CONFIGURATION,
+            function (MessageBuffer $payload) use ($name)
+            {
+                $payload->writeInteger(Cache::calculateId($name));
+                $payload->writeByte(0);
+            },
+            function (MessageBuffer $payload) use (&$config)
+            {
+                $config = new CacheConfiguration();
+                $config->read($this->communicator, $payload);
+            });
+        return $config;
+    }
+    
+    /**
+     * Gets existing cache names.
+     * 
+     * @return array array with the existing cache names.
+     *     The array is empty if no caches exist.
+     * 
+     * @throws ClientException if error.
+     */
+    public function cacheNames(): array
+    {
+        $names = null;
+        $this->communicator->send(
+            ClientOperation::CACHE_GET_NAMES,
+            null,
+            function (MessageBuffer $payload) use (&$names)
+            {
+                $names = $this->communicator->readStringArray($payload);
+            });
+        return $names;
+    }
+    
+    /**
+     * Enables/disables the Ignite client's debug output (including errors logging).
+     * Disabled by default.
+     * 
+     * @param bool $value true to enable, false to disable.
+     */
+    public function setDebug(bool $value): void
+    {
+        Logger::setDebug($value);
+    }
+
+    private function writeCacheNameOrConfig(
+            MessageBuffer $buffer,
+            string $name,
+            CacheConfiguration $cacheConfig = null): void
+    {
+        if ($cacheConfig) {
+            $cacheConfig->write($this->communicator, $buffer, $name);
+        } else {
+            $this->communicator->writeString($buffer, $name);
+        }
+    }
+}
diff --git a/src/Apache/Ignite/ClientConfiguration.php b/src/Apache/Ignite/ClientConfiguration.php
new file mode 100644
index 0000000..e10f010
--- /dev/null
+++ b/src/Apache/Ignite/ClientConfiguration.php
@@ -0,0 +1,294 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite;
+
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+
+/**
+ * Class representing Ignite client configuration.
+ *
+ * The configuration includes:
+ *   - (mandatory) Ignite node endpoint(s)
+ *   - (optional) user credentials for authentication
+ *   - (optional) TLS options for secure connection
+ *   - (optional) connection options
+ */
+class ClientConfiguration
+{
+    private $endpoints;
+    private $userName;
+    private $password;
+    private $tlsOptions;
+    private $timeout;
+    private $sendChunkSize;
+    private $receiveChunkSize;
+    private $tcpNoDelay;
+
+    const ENDPOINT_PORT_DEFAULT = 10800;
+
+    /**
+     * Creates an instance of Ignite client configuration
+     * with the provided mandatory settings and default optional settings.
+     *
+     * By default, the client does not use authentication and secure connection.
+     *
+     * @param string ...$endpoints Ignite node endpoint(s). The client randomly connects/reconnects
+     * to one of the specified node.
+     *
+     * @throws ClientException if error.
+     */
+    public function __construct(string ...$endpoints)
+    {
+        ArgumentChecker::notEmpty($endpoints, 'endpoints');
+        $this->endpoints = array_map(array($this, 'parseEndpoint'), $endpoints);
+        $this->userName = null;
+        $this->password = null;
+        $this->tlsOptions = null;
+        $this->timeout = 0;
+        $this->sendChunkSize = 0;
+        $this->receiveChunkSize = 0;
+        $this->tcpNoDelay = true;
+    }
+    
+    /**
+     * Returns Ignite node endpoints specified in the constructor.
+     * 
+     * @return string[] endpoints
+     */
+    public function getEndpoints(): array
+    {
+        return $this->endpoints;
+    }
+
+    /**
+     * Sets username which will be used for authentication during the client's connection.
+     *
+     * If username is not set, the client does not use authentication during connection.
+     * 
+     * @param string|null $userName username. If null, authentication is disabled.
+     * 
+     * @return ClientConfiguration the same instance of the ClientConfiguration.
+     */
+    public function setUserName(?string $userName): ClientConfiguration
+    {
+        $this->userName = $userName;
+        return $this;
+    }
+    
+    /**
+     * Returns the current username.
+     * 
+     * @return string|null username or null (if authentication is disabled).
+     */
+    public function getUserName(): ?string
+    {
+        return $this->userName;
+    }
+    
+    /**
+     * Sets password which will be used for authentication during the client's connection.
+     *
+     * Password is ignored, if username is not set.
+     * If password is not set, it is considered empty.
+     * 
+     * @param string|null $password password. If null, password is empty.
+     * 
+     * @return ClientConfiguration the same instance of the ClientConfiguration.
+     */
+    public function setPassword(?string $password): ClientConfiguration
+    {
+        $this->password = $password;
+        return $this;
+    }
+    
+    /**
+     * Returns the current password.
+     * 
+     * @return string|null password or null (if password is empty).
+     */
+    public function getPassword(): ?string
+    {
+        return $this->password;
+    }
+    
+    /**
+     * Enables and setup TLS connection.
+     *
+     * If not enabled (by default), the client does not use secure connection.
+     *
+     * @param array|null $tlsOptions TLS connection options in the format defined here: http://php.net/manual/en/context.ssl.php
+     * If null, secure connection is not used.
+     *
+     * @return ClientConfiguration the same instance of the ClientConfiguration.
+     */
+    public function setTLSOptions(?array $tlsOptions): ClientConfiguration
+    {
+        $this->tlsOptions = $tlsOptions;
+        return $this;
+    }
+    
+    /**
+     * Returns the current TLS connection options.
+     * 
+     * @return array|null TLS connection options or null (if secure connection is not used).
+     */
+    public function getTLSOptions(): ?array
+    {
+        return $this->tlsOptions;
+    }
+
+    /**
+     * Sets send/receive timeout.
+     *
+     * Default value is defined by the PHP settings.
+     *
+     * @param int $timeout send/receive timeout (in milliseconds).
+     *
+     * @return ClientConfiguration the same instance of the ClientConfiguration.
+     */
+    public function setTimeout(int $timeout): ClientConfiguration
+    {
+        $this->timeout = $timeout;
+        return $this;
+    }
+
+    /**
+     * Returns the current send/receive timeout.
+     *
+     * @return int send/receive timeout (in milliseconds).
+     */
+    public function getTimeout(): int
+    {
+        return $this->timeout;
+    }
+
+    /**
+     * Sets the size of the send chunk.
+     *
+     * 8192 bytes by default.
+     *
+     * @param int $size size of the send chunk (in bytes).
+     *
+     * @return ClientConfiguration the same instance of the ClientConfiguration.
+     */
+    public function setSendChunkSize(int $size): ClientConfiguration
+    {
+        $this->sendChunkSize = $size;
+        return $this;
+    }
+
+    /**
+     * Returns the current size of the send chunk.
+     *
+     * @return int size of the send chunk (in bytes).
+     */
+    public function getSendChunkSize(): int
+    {
+        return $this->sendChunkSize;
+    }
+
+    /**
+     * Sets the size of the receive chunk.
+     *
+     * 8192 bytes by default.
+     *
+     * @param int $size size of the receive chunk (in bytes).
+     *
+     * @return ClientConfiguration the same instance of the ClientConfiguration.
+     */
+    public function setReceiveChunkSize(int $size): ClientConfiguration
+    {
+        $this->receiveChunkSize = $size;
+        return $this;
+    }
+
+    /**
+     * Returns the current size of the receive chunk.
+     *
+     * @return int size of the receive chunk (in bytes).
+     */
+    public function getReceiveChunkSize(): int
+    {
+        return $this->receiveChunkSize;
+    }
+
+    /**
+     * Disables/enables the TCP Nagle algorithm.
+     *
+     * Enabled by default.
+     *
+     * @param bool $tcpNoDelay true to enable, false to disable.
+     *
+     * @return ClientConfiguration the same instance of the ClientConfiguration.
+     */
+    public function setTcpNoDelay(bool $tcpNoDelay): ClientConfiguration
+    {
+        $this->tcpNoDelay = $tcpNoDelay;
+        return $this;
+    }
+
+    /**
+     * Returns the current status of the TCP Nagle algorithm.
+     *
+     * @return bool true if enabled, false if disabled.
+     */
+    public function getTcpNoDelay(): bool
+    {
+        return $this->tcpNoDelay;
+    }
+
+    private function parseEndpoint(string $endpoint): string
+    {
+        $endpoint = trim($endpoint);
+        $host = $endpoint;
+        $port = null;
+        $parsed = explode(':', $endpoint);
+        if (count($parsed) > 2) {
+            // IPv6 address
+            $index = strrpos($endpoint, ']:');
+            if ($index !== false) {
+                $host = substr($endpoint, 0, $index + 1);
+                $port = substr($endpoint, $index + 2);
+            }
+            $first = $host[0];
+            $last = $host[strlen($host) - 1];
+            if ($first === '[' || $last === ']') {
+                if (!($first === '[' && $last === ']')) {
+                    ArgumentChecker::illegalArgument('Incorrect endpoint format: ' . $endpoint);
+                }
+            } else {
+                $host = sprintf('[%s]', $host);
+            }
+        }
+        else {
+            // IPv4 address
+            $host = $parsed[0];
+            if (count($parsed) === 2) {
+                $port = $parsed[1];
+            }
+        }
+        if ($port === null) {
+            $port = self::ENDPOINT_PORT_DEFAULT;
+        } elseif (!ctype_digit($port)) {
+            ArgumentChecker::illegalArgument('Incorrect endpoint format: ' . $endpoint);
+        }
+        return sprintf('%s:%s', $host, $port);
+    }
+}
diff --git a/src/Apache/Ignite/Data/BinaryObject.php b/src/Apache/Ignite/Data/BinaryObject.php
new file mode 100644
index 0000000..92a3294
--- /dev/null
+++ b/src/Apache/Ignite/Data/BinaryObject.php
@@ -0,0 +1,469 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Data;
+
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Type\ComplexObjectType;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Internal\Binary\BinaryCommunicator;
+use Apache\Ignite\Internal\Binary\BinaryTypeBuilder;
+use Apache\Ignite\Internal\Binary\BinaryObjectField;
+use Apache\Ignite\Internal\Binary\MessageBuffer;
+use Apache\Ignite\Internal\Binary\BinaryUtils;
+use Apache\Ignite\Internal\Binary\BinaryField;
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+use Apache\Ignite\Internal\Utils\Logger;
+
+/**
+ * Class representing a complex Ignite object in the binary form.
+ *
+ * It corresponds to ObjectType::COMPLEX_OBJECT,
+ * has mandatory type Id, which corresponds to a name of the complex type,
+ * and includes optional fields.
+ *
+ * An instance of the BinaryObject can be obtained/created by the following ways:
+ *   - returned by the client when a complex object is received from Ignite cache
+ * and is not deserialized to another PHP object.
+ *   - created using the public constructor. Fields may be added to such an instance using setField() method.
+ *   - created from a PHP object using static fromObject() method.
+ */
+class BinaryObject
+{
+    const HEADER_LENGTH = 24;
+    const VERSION = 1;
+
+    // user type
+    const FLAG_USER_TYPE = 0x0001;
+    // schema exists
+    const FLAG_HAS_SCHEMA = 0x0002;
+    // object contains raw data
+    const FLAG_HAS_RAW_DATA = 0x0004;
+    // offsets take 1 byte
+    const FLAG_OFFSET_ONE_BYTE = 0x0008;
+    // offsets take 2 bytes
+    const FLAG_OFFSET_TWO_BYTES = 0x0010;
+    // compact footer, no field IDs
+    const FLAG_COMPACT_FOOTER = 0x0020;
+    
+    private $typeName;
+    private $fields;
+    private $typeBuilder;
+    private $modified;
+    private $buffer;
+    private $schemaOffset;
+    private $hasSchema;
+    private $compactFooter;
+    private $hasRawData;
+    private $offsetType;
+    private $startPos;
+    private $length;
+
+    /**
+     * Creates an instance of the BinaryObject without any fields.
+     *
+     * Fields may be added later using setField() method.
+     *
+     * @param string $typeName name of the complex type to generate the type Id.
+     *
+     * @throws ClientException if error.
+     */
+    public function __construct(string $typeName)
+    {
+        ArgumentChecker::notEmpty($typeName, 'typeName');
+        $this->typeName = $typeName;
+        $this->fields = [];
+        $this->typeBuilder = BinaryTypeBuilder::fromTypeName($typeName);
+        $this->modified = false;
+        $this->buffer = null;
+        $this->schemaOffset = null;
+        $this->hasSchema = false;
+        $this->compactFooter = false;
+        $this->hasRawData = false;
+    }
+
+    /**
+     * Creates an instance of the BinaryObject from the specified instance of PHP class.
+     *
+     * All public properties of the PHP object with their values are added as fields
+     * to the BinaryObject.
+     * Fields may be added or removed later using setField() and removeField() methods.
+     *
+     * If complexObjectType parameter is specified, then the type Id is taken from it.
+     * Otherwise, the type Id is generated from the name of the PHP class which instance is specified.
+     * 
+     * @param object $object instance of PHP class which adds and initializes the fields
+     *     of the BinaryObject instance.
+     * @param ComplexObjectType $complexObjectType instance of complex type definition
+     *   which specifies non-standard mapping of the fields of the BinaryObject instance
+     *   to/from the Ignite types.
+     * 
+     * @return BinaryObject new BinaryObject instance.
+     * 
+     * @throws ClientException if error.
+     */
+    public static function fromObject(object $object, ComplexObjectType $complexObjectType = null): BinaryObject
+    {
+        $typeBuilder = BinaryTypeBuilder::fromObject($object, $complexObjectType);
+        $result = new BinaryObject($typeBuilder->getTypeName());
+        $result->typeBuilder = $typeBuilder;
+        try {
+            $class = new \ReflectionClass($object);
+            foreach ($typeBuilder->getFields() as $field) {
+                $fieldName = $field->getName();
+                if ($class->hasProperty($fieldName)) {
+                    $result->setField(
+                        $fieldName,
+                        $class->getProperty($fieldName)->getValue($object),
+                        $complexObjectType ? $complexObjectType->getFieldType($fieldName) : null);
+                } else {
+                    BinaryUtils::serializationError(true, sprintf('field "%s" does not exist', $fieldName));
+                }
+            }
+        } catch (\ReflectionException $e) {
+            BinaryUtils::serializationError(true, sprintf('class "%s" does not exist', get_class($object)));
+        }
+        return $result;
+    }
+    
+    /**
+     * Sets new value of the specified field.
+     * Adds the specified field, if it did not exist before.
+     *
+     * Optionally, specifies an Ignite type of the field.
+     * If the type is not specified then the Ignite client
+     * tries to make automatic mapping between PHP types and Ignite object types -
+     * according to the mapping table defined in the description of the ObjectType class.
+     * 
+     * @param string $fieldName name of the field.
+     * @param mixed $fieldValue new value of the field.
+     * @param int|ObjectType|null $fieldType Ignite type of the field:
+     *   - either a type code of primitive (simple) type (@ref PrimitiveTypeCodes)
+     *   - or an instance of class representing non-primitive (composite) type
+     *   - or null (or not specified) that means the type is not specified
+     * 
+     * @return BinaryObject the same instance of BinaryObject.
+     * 
+     * @throws ClientException if error.
+     */
+    public function setField(string $fieldName, $fieldValue, $fieldType = null): BinaryObject
+    {
+        ArgumentChecker::notEmpty($fieldName, 'fieldName');
+        BinaryUtils::checkObjectType($fieldType, 'fieldType');
+        $this->modified = true;
+        $field = new BinaryObjectField($fieldName, $fieldValue, $fieldType);
+        $this->fields[$field->getId()] = $field;
+        $this->typeBuilder->setField($fieldName, $field->getTypeCode());
+        return $this;
+    }
+
+    /**
+     * Removes the specified field.
+     * Does nothing if the field does not exist.
+     * 
+     * @param string $fieldName name of the field.
+     * 
+     * @return BinaryObject the same instance of BinaryObject.
+     * 
+     * @throws ClientException if error.
+     */
+    public function removeField(string $fieldName): BinaryObject
+    {
+        ArgumentChecker::notEmpty($fieldName, 'fieldName');
+        $this->modified = true;
+        $fieldId = BinaryField::calculateId($fieldName);
+        if (array_key_exists($fieldId, $this->fields)) {
+            unset($this->fields[$fieldId]);
+        }
+        $this->typeBuilder->removeField($fieldName);
+        return $this;
+    }
+    
+    /**
+     * Checks if the specified field exists in this BinaryObject instance.
+     * 
+     * @param string $fieldName name of the field.
+     * 
+     * @return bool true if exists, false otherwise.
+     * 
+     * @throws ClientException if error.
+     */
+    public function hasField(string $fieldName): bool
+    {
+        ArgumentChecker::notEmpty($fieldName, 'fieldName');
+        $fieldId = BinaryField::calculateId($fieldName);
+        return array_key_exists($fieldId, $this->fields);
+    }
+
+    /**
+     * Returns a value of the specified field.
+     *
+     * Optionally, specifies Ignite type of the field.
+     * If the type is not specified then the Ignite client
+     * tries to make automatic mapping between PHP types and Ignite object types -
+     * according to the mapping table defined in the description of the ObjectType class.
+     *
+     * If field with the specified name doesn't exist, throws Exception::ClientException.
+     * Use hasField() method to ensure the field exists.
+     * 
+     * @param string $fieldName name of the field.
+     * @param int|ObjectType|null $fieldType Ignite type of the field:
+     *   - either a type code of primitive (simple) type (@ref PrimitiveTypeCodes)
+     *   - or an instance of class representing non-primitive (composite) type
+     *   - or null (or not specified) that means the type is not specified
+     * 
+     * @return mixed value of the field.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getField(string $fieldName, $fieldType = null)
+    {
+        ArgumentChecker::notEmpty($fieldName, 'fieldName');
+        BinaryUtils::checkObjectType($fieldType, 'fieldType');
+        $fieldId = BinaryField::calculateId($fieldName);
+        if (array_key_exists($fieldId, $this->fields)) {
+            return $this->fields[$fieldId]->getValue($fieldType);
+        }
+        throw new ClientException(sprintf('Field %s does not exist', $fieldName));
+    }
+    
+    /**
+     * Deserializes this BinaryObject instance into PHP object which corresponds to the specified complex object type.
+     * 
+     * @param ComplexObjectType $complexObjectType instance of class representing complex object type.
+     * 
+     * @return object instance of the PHP object which corresponds to the specified complex object type.
+     * 
+     * @throws ClientException if error.
+     */
+    public function toObject(ComplexObjectType $complexObjectType): object
+    {
+        $className = $complexObjectType->getPhpClassName();
+        if (!$className) {
+            $className = $this->getTypeName();
+        }
+        if (!class_exists($className)) {
+            BinaryUtils::serializationError(false, sprintf('class "%s" does not exist', $className));
+        }
+        $result = new $className;
+        foreach ($this->fields as $field) {
+            $binaryField = $this->typeBuilder->getField($field->getId());
+            if (!$binaryField) {
+                BinaryUtils::serializationError(
+                    false, sprintf('field with id "%s" can not be deserialized', $field->getId()));
+            }
+            $fieldName = $binaryField->getName();
+            $result->$fieldName = $field->getValue($complexObjectType->getFieldType($fieldName));
+        }
+        return $result;
+    }
+    
+    /**
+     * Returns type name of this BinaryObject instance.
+     * 
+     * @return string type name.
+     */
+    public function getTypeName(): string
+    {
+        return $this->typeBuilder->getTypeName();
+    }
+    
+    /**
+     * Returns names of all fields in this BinaryObject instance.
+     * 
+     * @return array names of all fields.
+     * 
+     * @throws ClientException if error.
+     */
+    public function getFieldNames(): array
+    {
+        return array_map(
+            function (int $fieldId): string
+            {
+                $field = $this->typeBuilder->getField($fieldId);
+                if ($field) {
+                    return $field->getName();
+                } else {
+                    BinaryUtils::internalError(
+                        sprintf('Field "%s" is absent in binary type fields', $fieldId));
+                }
+                return null;
+            },
+            $this->typeBuilder->getSchema()->getFieldIds());
+    }
+
+    private static function isFlagSet(int $flags, int $flag): bool
+    {
+        return ($flags & $flag) === $flag;
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public static function fromBuffer(BinaryCommunicator $communicator, MessageBuffer $buffer): BinaryObject
+    {
+        $result = new BinaryObject(' ');
+        $result->buffer = $buffer;
+        $result->startPos = $buffer->getPosition();
+        $result->read($communicator);
+        return $result;
+    }
+
+    // This is not the public API method, is not intended for usage by an application.
+    public function write(BinaryCommunicator $communicator, MessageBuffer $buffer): void
+    {
+        if ($this->buffer && !$this->modified) {
+            $buffer->writeBuffer($this->buffer, $this->startPos, $this->length);
+        } else {
+            $this->typeBuilder->finalize($communicator);
+            $this->startPos = $buffer->getPosition();
+            $buffer->setPosition($this->startPos + BinaryObject::HEADER_LENGTH);
+            $this->hasSchema = count($this->fields) > 0;
+            if ($this->hasSchema) {
+                // write fields
+                $field = null;
+                foreach ($this->fields as $field) {
+                    $field->writeValue($communicator, $buffer, ($this->typeBuilder->getField($field->getId()))->getTypeCode());
+                }
+                $this->schemaOffset = $buffer->getPosition() - $this->startPos;
+                $this->offsetType = $field->getOffsetType($this->startPos);
+                // write schema
+                foreach ($this->fields as $field) {
+                    $field->writeOffset($buffer, $this->startPos, $this->offsetType);
+                }
+            } else {
+                $this->schemaOffset = 0;
+            }
+            $this->length = $buffer->getPosition() - $this->startPos;
+            $this->buffer = $buffer;
+            // write header
+            $this->writeHeader();
+            $this->buffer->setPosition($this->startPos + $this->length);
+            $this->modified = false;
+        }
+
+        if (Logger::isDebug()) {
+            Logger::logDebug('BinaryObject::write');
+            Logger::logBuffer($this->buffer, $this->startPos, $this->length);
+        }
+    }
+
+    private function writeHeader(): void
+    {
+        $this->buffer->setPosition($this->startPos);
+        // type code
+        $this->buffer->writeByte(ObjectType::COMPLEX_OBJECT);
+        // version
+        $this->buffer->writeByte(BinaryObject::VERSION);
+        // flags
+        $flags = BinaryObject::FLAG_USER_TYPE;
+        if ($this->hasSchema) {
+            $flags = $flags | BinaryObject::FLAG_COMPACT_FOOTER | BinaryObject::FLAG_HAS_SCHEMA;
+        }
+        if ($this->offsetType === ObjectType::BYTE) {
+            $flags = $flags | BinaryObject::FLAG_OFFSET_ONE_BYTE;
+        } elseif ($this->offsetType === ObjectType::SHORT) {
+            $flags = $flags | BinaryObject::FLAG_OFFSET_TWO_BYTES;
+        }
+        $this->buffer->writeShort($flags);
+        // type id
+        $this->buffer->writeInteger($this->typeBuilder->getTypeId());
+        // hash code
+        $this->buffer->writeInteger(BinaryUtils::contentHashCode(
+            $this->buffer, $this->startPos + BinaryObject::HEADER_LENGTH, $this->schemaOffset - 1));
+        // length
+        $this->buffer->writeInteger($this->length);
+        // schema id
+        $this->buffer->writeInteger($this->hasSchema ? $this->typeBuilder->getSchemaId() : 0);
+        // schema offset
+        $this->buffer->writeInteger($this->schemaOffset);
+    }
+
+    private function read(BinaryCommunicator $communicator): void
+    {
+        $this->readHeader($communicator);
+        if ($this->hasSchema) {
+            $this->buffer->setPosition($this->startPos + $this->schemaOffset);
+            $fieldOffsets = [];
+            $fieldIds = $this->typeBuilder->getSchema()->getFieldIds();
+            $index = 0;
+            $schemaEndOffset = $this->startPos + $this->length;
+            if ($this->hasRawData) {
+                $schemaEndOffset -= TypeInfo::getTypeInfo(ObjectType::INTEGER)->getSize();
+            }
+            while ($this->buffer->getPosition() < $schemaEndOffset) {
+                if (!$this->compactFooter) {
+                    $fieldId = $this->buffer->readInteger();
+                    $this->typeBuilder->getSchema()->addField($fieldId);
+                } else {
+                    if ($index >= count($fieldIds)) {
+                        BinaryUtils::serializationError(
+                            false, 'wrong number of fields in schema');
+                    }
+                    $fieldId = $fieldIds[$index];
+                    $index++;
+                }
+                array_push($fieldOffsets, [$fieldId, $this->buffer->readNumber($this->offsetType, false)]);
+            }
+            usort($fieldOffsets,
+                function (array $val1, array $val2): int
+                {
+                    return $val1[1] - $val2[1];
+                });
+            for ($i = 0; $i < count($fieldOffsets); $i++) {
+                $fieldId = $fieldOffsets[$i][0];
+                $offset = $fieldOffsets[$i][1];
+                $nextOffset = $i + 1 < count($fieldOffsets) ? $fieldOffsets[$i + 1][1] : $this->schemaOffset;
+                $field = BinaryObjectField::fromBuffer(
+                    $communicator, $this->buffer, $this->startPos + $offset, $nextOffset - $offset, $fieldId);
+                $this->fields[$field->getId()] = $field;
+            }
+        }
+        $this->buffer->setPosition($this->startPos + $this->length);
+    }
+
+    private function readHeader(BinaryCommunicator $communicator): void
+    {
+        // type code
+        $this->buffer->readByte();
+        // version
+        $version = $this->buffer->readByte();
+        if ($version !== BinaryObject::VERSION) {
+            BinaryUtils::internalError();
+        }
+        // flags
+        $flags = $this->buffer->readShort();
+        // type id
+        $typeId = $this->buffer->readInteger();
+        // hash code
+        $this->buffer->readInteger();
+        // length
+        $this->length = $this->buffer->readInteger();
+        // schema id
+        $schemaId = $this->buffer->readInteger();
+        // schema offset
+        $this->schemaOffset = $this->buffer->readInteger();
+        $this->hasSchema = BinaryObject::isFlagSet($flags, BinaryObject::FLAG_HAS_SCHEMA);
+        $this->compactFooter = BinaryObject::isFlagSet($flags, BinaryObject::FLAG_COMPACT_FOOTER);
+        $this->hasRawData = BinaryObject::isFlagSet($flags, BinaryObject::FLAG_HAS_RAW_DATA);
+        $this->offsetType = BinaryObject::isFlagSet($flags, BinaryObject::FLAG_OFFSET_ONE_BYTE) ?
+            ObjectType::BYTE :
+            (BinaryObject::isFlagSet($flags, BinaryObject::FLAG_OFFSET_TWO_BYTES) ?
+                ObjectType::SHORT :
+                ObjectType::INTEGER);
+        $this->typeBuilder = BinaryTypeBuilder::fromTypeId($communicator, $typeId, $this->compactFooter ? $schemaId : null);
+    }
+}
diff --git a/src/Apache/Ignite/Data/Date.php b/src/Apache/Ignite/Data/Date.php
new file mode 100644
index 0000000..356cc36
--- /dev/null
+++ b/src/Apache/Ignite/Data/Date.php
@@ -0,0 +1,84 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Data;
+
+use \DateTime;
+
+/** 
+ * Class representing Ignite Date type
+ * (number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC).
+ */
+class Date
+{
+    private $millis;
+
+    /**
+     * Public constructor.
+     * 
+     * @param float $millis integer number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC.
+     */
+    public function __construct(float $millis)
+    {
+        $this->millis = $millis;
+    }
+    
+    /**
+     * Creates Date instance from DateTime instance.
+     * 
+     * @param DateTime $dateTime DateTime instance.
+     * 
+     * @return Date new Date instance.
+     */
+    public static function fromDateTime(DateTime $dateTime)
+    {
+        return new Date($dateTime->getTimestamp() * 1000);
+    }
+    
+    /**
+     * Returns the date value as DateTime instance.
+     * 
+     * @return DateTime new DateTime instance.
+     */
+    public function toDateTime(): DateTime
+    {
+        $dateTime = new DateTime();
+        $dateTime->setTimestamp($this->getSeconds());
+        return $dateTime;
+    }
+    
+    /**
+     * Returns the date value as number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC.
+     * 
+     * @return float number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC.
+     */
+    public function getMillis(): float
+    {
+        return $this->millis;
+    }
+    
+    /**
+     * Returns the date value as number of seconds elapsed since January 1, 1970, 00:00:00 UTC.
+     * 
+     * @return float number of seconds elapsed since January 1, 1970, 00:00:00 UTC.
+     */
+    public function getSeconds(): float
+    {
+        return $this->millis / 1000;
+    }
+}
diff --git a/src/Apache/Ignite/Data/EnumItem.php b/src/Apache/Ignite/Data/EnumItem.php
new file mode 100644
index 0000000..3178006
--- /dev/null
+++ b/src/Apache/Ignite/Data/EnumItem.php
@@ -0,0 +1,155 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Data;
+
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+use Apache\Ignite\Exception\ClientException;
+
+/**
+ * Class representing an item of Ignite enum type.
+ *
+ * The item is defined by:
+ *   - type Id (mandatory) - Id of the Ignite enum type.
+ *   - ordinal (optional) - ordinal of the item in the Ignite enum type.
+ *   - name (optional) - name of the item (field name in the Ignite enum type).
+ *   - value (optional) - value of the item.
+ * Usually, at least one from the optional ordinal, name or value must be specified
+ * in order to use an instance of this class in Ignite operations.
+ *
+ * To distinguish one item from another, the Ignite client analyzes the optional fields in the following order:
+ * ordinal, name, value.
+ */
+class EnumItem
+{
+    private $typeId;
+    private $ordinal;
+    private $name;
+    private $value;
+    
+    /**
+     * Public constructor.
+     * 
+     * @param int $typeId Id of the Ignite enum type.
+     */
+    public function __construct(int $typeId)
+    {
+        $this->setTypeId($typeId);
+        $this->ordinal = null;
+        $this->name = null;
+        $this->value = null;
+    }
+
+    /**
+     * Returns Id of the Ignite enum type.
+     *
+     * @return int Id of the enum type.
+     */
+    public function getTypeId(): int
+    {
+        return $this->typeId;
+    }
+
+    /**
+     * Updates Id of the Ignite enum type.
+     * 
+     * @param int $typeId new Id of the Ignite enum type.
+     * 
+     * @return EnumItem the same instance of EnumItem.
+     */
+    public function setTypeId(int $typeId): EnumItem
+    {
+        $this->typeId = $typeId;
+        return $this;
+    }
+
+    /**
+     * Returns ordinal of the item in the Ignite enum type
+     * or null if ordinal is not set.
+     *
+     * @return int|null ordinal of the item in the Ignite enum type or null (if ordinal is not set).
+     */
+    public function getOrdinal(): ?int
+    {
+        return $this->ordinal;
+    }
+
+    /**
+     * Sets or updates ordinal of the item in the Ignite enum type.
+     *
+     * @param int $ordinal ordinal of the item in the Ignite enum type.
+     *
+     * @return EnumItem the same instance of EnumItem.
+     */
+    public function setOrdinal(int $ordinal): EnumItem
+    {
+        $this->ordinal = $ordinal;
+        return $this;
+    }
+
+    /**
+     * Returns name of the item
+     * or null if name is not set.
+     *
+     * @return string|null name of the item or null (if name is not set).
+     */
+    public function getName(): ?string
+    {
+        return $this->name;
+    }
+
+    /**
+     * Sets or updates name of the item.
+     *
+     * @param string $name name of the item.
+     *
+     * @return EnumItem the same instance of EnumItem.
+     *
+     * @throws ClientException if error.
+     */
+    public function setName(string $name): EnumItem
+    {
+        ArgumentChecker::notEmpty($name, 'name');
+        $this->name = $name;
+        return $this;
+    }
+
+    /**
+     * Returns value of the item
+     * or null if value is not set.
+     *
+     * @return int|null value of the item or null (if value is not set).
+     */
+    public function getValue(): ?int
+    {
+        return $this->value;
+    }
+
+    /**
+     * Sets or updates value of the item.
+     *
+     * @param int $value value of the item.
+     *
+     * @return EnumItem the same instance of EnumItem.
+     */
+    public function setValue(int $value): EnumItem
+    {
+        $this->value = $value;
+        return $this;
+    }
+}
diff --git a/src/Apache/Ignite/Data/Time.php b/src/Apache/Ignite/Data/Time.php
new file mode 100644
index 0000000..9d0388a
--- /dev/null
+++ b/src/Apache/Ignite/Data/Time.php
@@ -0,0 +1,58 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Data;
+
+/** 
+ * Class representing Ignite Time type
+ * (number of milliseconds elapsed since midnight, i.e. 00:00:00 UTC).
+ */
+class Time
+{
+    private $millis;
+
+    /**
+     * Public constructor.
+     * 
+     * @param int $millis number of milliseconds elapsed since midnight, i.e. 00:00:00 UTC.
+     */
+    public function __construct(int $millis)
+    {
+        $this->millis = $millis;
+    }
+    
+    /**
+     * Returns the time value as number of milliseconds elapsed since midnight, i.e. 00:00:00 UTC.
+     * 
+     * @return int number of milliseconds elapsed since midnight, i.e. 00:00:00 UTC.
+     */
+    public function getMillis(): int
+    {
+        return $this->millis;
+    }
+
+    /**
+     * Returns the time value as number of seconds elapsed since midnight, i.e. 00:00:00 UTC.
+     * 
+     * @return int number of seconds elapsed since midnight, i.e. 00:00:00 UTC.
+     */
+    public function getSeconds(): int
+    {
+        return $this->millis / 1000;
+    }
+}
diff --git a/src/Apache/Ignite/Data/Timestamp.php b/src/Apache/Ignite/Data/Timestamp.php
new file mode 100644
index 0000000..39ef984
--- /dev/null
+++ b/src/Apache/Ignite/Data/Timestamp.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Data;
+
+use \DateTime;
+
+/** 
+ * Class representing Ignite Timestamp type
+ * (Ignite Date with additional nanoseconds fraction of the last millisecond).
+ */
+class Timestamp extends Date
+{
+    private $nanos;
+
+    /**
+     * Public constructor.
+     * 
+     * @param float $millis integer number of milliseconds elapsed since January 1, 1970, 00:00:00 UTC.
+     * @param int $nanos nanoseconds of the last millisecond, should be in the range from 0 to 999999.
+     */
+    public function __construct(float $millis, int $nanos)
+    {
+        parent::__construct($millis);
+        $this->nanos = $nanos;
+    }
+    
+    /**
+     * Creates Timestamp instance from DateTime instance.
+     * 
+     * @param DateTime $dateTime DateTime instance.
+     * 
+     * @return Timestamp new Timestamp instance.
+     */
+    public static function fromDateTime(DateTime $dateTime)
+    {
+        return new Timestamp($dateTime->getTimestamp() * 1000, 0);
+    }
+    
+    /**
+     * Returns the nanoseconds of the last millisecond from the timestamp.
+     * 
+     * @return int nanoseconds of the last millisecond.
+     */
+    public function getNanos(): int
+    {
+        return $this->nanos;
+    }
+}
diff --git a/src/Apache/Ignite/Exception/ClientException.php b/src/Apache/Ignite/Exception/ClientException.php
new file mode 100644
index 0000000..88fe56b
--- /dev/null
+++ b/src/Apache/Ignite/Exception/ClientException.php
@@ -0,0 +1,35 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Exception;
+
+/**
+ * Ignite client general exception.
+ */
+class ClientException extends \Exception
+{
+    /**
+     * Constructs a ClientException with the specified detail message.
+     * 
+     * @param string $message the detail message.
+     */
+    public function __construct(string $message)
+    {
+        parent::__construct($message);
+    }
+}
diff --git a/src/Apache/Ignite/Exception/NoConnectionException.php b/src/Apache/Ignite/Exception/NoConnectionException.php
new file mode 100644
index 0000000..04a7580
--- /dev/null
+++ b/src/Apache/Ignite/Exception/NoConnectionException.php
@@ -0,0 +1,35 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Exception;
+
+/**
+ * Ignite client is not connected.
+ */
+class NoConnectionException extends ClientException
+{
+    /**
+     * Constructs a NoConnectionException with the specified detail message.
+     * 
+     * @param string $message the detail message.
+     */
+    public function __construct(string $message = null)
+    {
+        parent::__construct($message ? $message : 'Operation is not completed due to the connection problem');
+    }
+}
diff --git a/src/Apache/Ignite/Exception/OperationException.php b/src/Apache/Ignite/Exception/OperationException.php
new file mode 100644
index 0000000..49862e7
--- /dev/null
+++ b/src/Apache/Ignite/Exception/OperationException.php
@@ -0,0 +1,35 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Exception;
+
+/**
+ * Ignite server returns error for the requested operation.
+ */
+class OperationException extends ClientException
+{
+    /**
+     * Constructs an OperationException with the specified detail message.
+     * 
+     * @param string $message the detail message.
+     */
+    public function __construct(string $message)
+    {
+        parent::__construct($message);
+    }
+}
diff --git a/src/Apache/Ignite/Exception/OperationStatusUnknownException.php b/src/Apache/Ignite/Exception/OperationStatusUnknownException.php
new file mode 100644
index 0000000..74aab6d
--- /dev/null
+++ b/src/Apache/Ignite/Exception/OperationStatusUnknownException.php
@@ -0,0 +1,35 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Exception;
+
+/**
+ * Status of the requested operation is unknown (eg. due to a connection problem during the operation). 
+ */
+class OperationStatusUnknownException extends ClientException
+{
+    /**
+     * Constructs an OperationStatusUnknownException with the specified detail message.
+     * 
+     * @param string $message the detail message.
+     */
+    public function __construct(string $message)
+    {
+        parent::__construct($message);
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinaryCommunicator.php b/src/Apache/Ignite/Internal/Binary/BinaryCommunicator.php
new file mode 100644
index 0000000..520063c
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinaryCommunicator.php
@@ -0,0 +1,490 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Ds\Map;
+use Ds\Set;
+use Brick\Math\BigDecimal;
+use Brick\Math\BigInteger;
+use Apache\Ignite\Internal\Connection\ClientFailoverSocket;
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Type\CollectionObjectType;
+use Apache\Ignite\Type\ComplexObjectType;
+use Apache\Ignite\Type\MapObjectType;
+use Apache\Ignite\Data\BinaryObject;
+use Apache\Ignite\Data\Date;
+use Apache\Ignite\Data\EnumItem;
+use Apache\Ignite\Data\Time;
+use Apache\Ignite\Data\Timestamp;
+use Apache\Ignite\Exception\ClientException;
+
+class BinaryCommunicator
+{
+    private $socket;
+    private $typeStorage;
+    
+    public function __construct(ClientFailoverSocket $socket)
+    {
+        $this->socket = $socket;
+        $this->typeStorage = new BinaryTypeStorage($this);
+    }
+
+    public function send(int $opCode, ?callable $payloadWriter, callable $payloadReader = null): void
+    {
+        $this->socket->send($opCode, $payloadWriter, $payloadReader);
+    }
+    
+    public function getTypeStorage(): BinaryTypeStorage
+    {
+        return $this->typeStorage;
+    }
+
+    public static function readString(MessageBuffer $buffer): ?string
+    {
+        $typeCode = $buffer->readByte();
+        BinaryUtils::checkTypesCompatibility(ObjectType::STRING, $typeCode);
+        if ($typeCode === ObjectType::NULL) {
+            return null;
+        }
+        return $buffer->readString();
+    }
+
+    public static function writeString(MessageBuffer $buffer, ?string $str): void
+    {
+        if ($str === null) {
+            $buffer->writeByte(ObjectType::NULL);
+        } else {
+            $buffer->writeByte(ObjectType::STRING);
+            $buffer->writeString($str);
+        }
+    }
+
+    public function readObject(MessageBuffer $buffer, $expectedType = null)
+    {
+        $typeCode = $buffer->readByte();
+        BinaryUtils::checkTypesCompatibility($expectedType, $typeCode);
+        return $this->readTypedObject($buffer, $typeCode, $expectedType);
+    }
+
+    public function readStringArray(MessageBuffer $buffer): array
+    {
+        return $this->readTypedObject($buffer, ObjectType::STRING_ARRAY);
+    }
+
+    public function writeObject(MessageBuffer $buffer, $object, $objectType = null, bool $writeObjectType = true): void
+    {
+        BinaryUtils::checkCompatibility($object, $objectType);
+        if ($object === null) {
+            $buffer->writeByte(ObjectType::NULL);
+            return;
+        }
+
+        $objectType = $objectType ? $objectType : BinaryUtils::calcObjectType($object);
+        $objectTypeCode = BinaryUtils::getTypeCode($objectType);
+
+        if ($writeObjectType) {
+            $buffer->writeByte($objectTypeCode);
+        }
+        switch ($objectTypeCode) {
+            case ObjectType::BYTE:
+            case ObjectType::SHORT:
+            case ObjectType::INTEGER:
+            case ObjectType::LONG:
+            case ObjectType::FLOAT:
+            case ObjectType::DOUBLE:
+                $buffer->writeNumber($object, $objectTypeCode);
+                break;
+            case ObjectType::CHAR:
+                $buffer->writeChar($object);
+                break;
+            case ObjectType::BOOLEAN:
+                $buffer->writeBoolean($object);
+                break;
+            case ObjectType::STRING:
+                $buffer->writeString($object);
+                break;
+            case ObjectType::UUID:
+                $this->writeUUID($buffer, $object);
+                break;
+            case ObjectType::DATE:
+                $this->writeDate($buffer, $object);
+                break;
+            case ObjectType::ENUM:
+                $this->writeEnum($buffer, $object);
+                break;
+            case ObjectType::DECIMAL:
+                $this->writeDecimal($buffer, $object);
+                break;
+            case ObjectType::TIME:
+                $this->writeTime($buffer, $object);
+                break;
+            case ObjectType::TIMESTAMP:
+                $this->writeTimestamp($buffer, $object);
+                break;
+            case ObjectType::BYTE_ARRAY:
+            case ObjectType::SHORT_ARRAY:
+            case ObjectType::INTEGER_ARRAY:
+            case ObjectType::LONG_ARRAY:
+            case ObjectType::FLOAT_ARRAY:
+            case ObjectType::DOUBLE_ARRAY:
+            case ObjectType::CHAR_ARRAY:
+            case ObjectType::BOOLEAN_ARRAY:
+            case ObjectType::STRING_ARRAY:
+            case ObjectType::UUID_ARRAY:
+            case ObjectType::DATE_ARRAY:
+            case ObjectType::OBJECT_ARRAY:
+            case ObjectType::ENUM_ARRAY:
+            case ObjectType::DECIMAL_ARRAY:
+            case ObjectType::TIMESTAMP_ARRAY:
+            case ObjectType::TIME_ARRAY:
+                $this->writeArray($buffer, $object, $objectType, $objectTypeCode);
+                break;
+            case ObjectType::COLLECTION:
+                $this->writeCollection($buffer, $object, $objectType);
+                break;
+            case ObjectType::MAP:
+                $this->writeMap($buffer, $object, $objectType);
+                break;
+            case ObjectType::BINARY_OBJECT:
+                $this->writeBinaryObject($buffer, $object);
+                break;
+            case ObjectType::COMPLEX_OBJECT:
+                $this->writeComplexObject($buffer, $object, $objectType);
+                break;
+            default:
+                BinaryUtils::unsupportedType($objectType);
+        }
+    }
+
+    public function readTypedObject(MessageBuffer $buffer, int $objectTypeCode, $expectedType = null)
+    {
+        switch ($objectTypeCode) {
+            case ObjectType::BYTE:
+            case ObjectType::SHORT:
+            case ObjectType::INTEGER:
+            case ObjectType::LONG:
+            case ObjectType::FLOAT:
+            case ObjectType::DOUBLE:
+                return $buffer->readNumber($objectTypeCode);
+            case ObjectType::CHAR:
+                return $buffer->readChar();
+            case ObjectType::BOOLEAN:
+                return $buffer->readBoolean();
+            case ObjectType::STRING:
+                return $buffer->readString();
+            case ObjectType::UUID:
+                return $this->readUUID($buffer);
+            case ObjectType::DATE:
+                return $this->readDate($buffer);
+            case ObjectType::ENUM:
+            case ObjectType::BINARY_ENUM:
+                return $this->readEnum($buffer);
+            case ObjectType::DECIMAL:
+                return $this->readDecimal($buffer);
+            case ObjectType::TIME:
+                return $this->readTime($buffer);
+            case ObjectType::TIMESTAMP:
+                return $this->readTimestamp($buffer);
+            case ObjectType::BYTE_ARRAY:
+            case ObjectType::SHORT_ARRAY:
+            case ObjectType::INTEGER_ARRAY:
+            case ObjectType::LONG_ARRAY:
+            case ObjectType::FLOAT_ARRAY:
+            case ObjectType::DOUBLE_ARRAY:
+            case ObjectType::CHAR_ARRAY:
+            case ObjectType::BOOLEAN_ARRAY:
+            case ObjectType::STRING_ARRAY:
+            case ObjectType::UUID_ARRAY:
+            case ObjectType::DATE_ARRAY:
+            case ObjectType::OBJECT_ARRAY:
+            case ObjectType::ENUM_ARRAY:
+            case ObjectType::DECIMAL_ARRAY:
+            case ObjectType::TIMESTAMP_ARRAY:
+            case ObjectType::TIME_ARRAY:
+                return $this->readArray($buffer, $objectTypeCode, $expectedType);
+            case ObjectType::COLLECTION:
+                return $this->readCollection($buffer, $expectedType);
+            case ObjectType::MAP:
+                return $this->readMap($buffer, $expectedType);
+            case ObjectType::BINARY_OBJECT:
+                return $this->readBinaryObject($buffer, $expectedType);
+            case ObjectType::NULL:
+                return null;
+            case ObjectType::COMPLEX_OBJECT:
+                return $this->readComplexObject($buffer, $expectedType);
+            default:
+                BinaryUtils::unsupportedType($objectTypeCode);
+        }
+        return null;
+    }
+
+    private function readDate(MessageBuffer $buffer): Date
+    {
+        return new Date($buffer->readLong());
+    }
+
+    private function readTime(MessageBuffer $buffer): Time
+    {
+        return new Time($buffer->readLong());
+    }
+
+    private function readTimestamp(MessageBuffer $buffer): Timestamp
+    {
+        return new Timestamp($buffer->readLong(), $buffer->readInteger());
+    }
+
+    private function readUUID(MessageBuffer $buffer): array
+    {
+        $result = [];
+        for ($i = 0; $i < BinaryUtils::getSize(ObjectType::UUID); $i++) {
+            array_push($result, $buffer->readByte(false));
+        }
+        return $result;
+    }
+
+    private function readEnum(MessageBuffer $buffer): EnumItem
+    {
+        $enumItem = new EnumItem($buffer->readInteger());
+        $ordinal = $buffer->readInteger();
+        $enumItem->setOrdinal($ordinal);
+        $type = $this->typeStorage->getType($enumItem->getTypeId());
+        if (!$type->isEnum() || !$type->getEnumValues() || count($type->getEnumValues()) <= $ordinal) {
+            BinaryUtils::serializationError(false, 'EnumItem can not be deserialized: type mismatch');
+        }
+        $enumValues = $type->getEnumValues();
+        $enumItem->setName($enumValues[$ordinal][0]);
+        $enumItem->setValue($enumValues[$ordinal][1]);
+        return $enumItem;
+    }
+
+    private function readDecimal(MessageBuffer $buffer): BigDecimal
+    {
+        $scale = $buffer->readInteger();
+        $value = $buffer->readString(false);
+        $isNegative = (ord($value[0]) & 0x80) !== 0;
+        if ($isNegative) {
+            $value[0] = chr(ord($value[0]) & 0x7F);
+        }
+        $hexValue = '';
+        for ($i = 0; $i < strlen($value); $i++) {
+            $hex = dechex(ord($value[$i]));
+            if (strlen($hex) < 2) {
+                $hex = str_repeat('0', 2 - strlen($hex)) . $hex;
+            }
+            $hexValue .= $hex;
+        }
+        $result = BigDecimal::ofUnscaledValue(BigInteger::parse($hexValue, 16), $scale >= 0 ? $scale : 0);
+        if ($isNegative) {
+            $result = $result->negated();
+        }
+        if ($scale < 0) {
+            $result = $result->multipliedBy((BigInteger::of(10))->power(-$scale));
+        }
+        return $result;
+    }
+
+    private function readArray(MessageBuffer $buffer, int $arrayTypeCode, $arrayType): array
+    {
+        if ($arrayTypeCode === ObjectType::OBJECT_ARRAY) {
+            $buffer->readInteger();
+        }
+        $length = $buffer->readInteger();
+        $elementType = BinaryUtils::getArrayElementType($arrayType ? $arrayType : $arrayTypeCode);
+        $keepElementType = $elementType === null ? true : TypeInfo::getTypeInfo($arrayTypeCode)->keepElementType();
+        $result = array();
+        for ($i = 0; $i < $length; $i++) {
+            array_push(
+                $result,
+                $keepElementType ?
+                    $this->readObject($buffer, $elementType) :
+                    $this->readTypedObject($buffer, $elementType));
+        }
+        return $result;
+    }
+
+    private function readCollection(MessageBuffer $buffer, CollectionObjectType $expectedColType = null)
+    {
+        $size = $buffer->readInteger();
+        $subType = $buffer->readByte();
+        $isSet = CollectionObjectType::isSet($subType);
+        $result = $isSet ? new Set() : [];
+        for ($i = 0; $i < $size; $i++) {
+            $element = $this->readObject($buffer, $expectedColType ? $expectedColType->getElementType() : null);
+            if ($isSet) {
+                $result->add($element);
+            } else {
+                array_push($result, $element);
+            }
+        }
+        return $result;
+    }
+
+    private function readMap(MessageBuffer $buffer, MapObjectType $expectedMapType = null): Map
+    {
+        $size = $buffer->readInteger();
+        // map sub-type
+        $buffer->readByte();
+        $result = new Map();
+        $result->allocate($size);
+        for ($i = 0; $i < $size; $i++) {
+            $key = $this->readObject($buffer, $expectedMapType ? $expectedMapType->getKeyType() : null);
+            $value = $this->readObject($buffer, $expectedMapType ? $expectedMapType->getValueType() : null);
+            $result->put($key, $value);
+        }
+        return $result;
+    }
+
+    private function readBinaryObject(MessageBuffer $buffer, ?ComplexObjectType $expectedType): object
+    {
+        $size = $buffer->readInteger();
+        $startPos = $buffer->getPosition();
+        $buffer->setPosition($startPos + $size);
+        $offset = $buffer->readInteger();
+        $endPos = $buffer->getPosition();
+        $buffer->setPosition($startPos + $offset);
+        $result = $this->readObject($buffer, $expectedType);
+        $buffer->setPosition($endPos);
+        return $result;
+    }
+
+    private function readComplexObject(MessageBuffer $buffer, ?ComplexObjectType $expectedType): object
+    {
+        $buffer->setPosition($buffer->getPosition() - 1);
+        $binaryObject = BinaryObject::fromBuffer($this, $buffer);
+        return $expectedType ? $binaryObject->toObject($expectedType) : $binaryObject;
+    }
+
+    private function writeDate(MessageBuffer $buffer, Date $date): void
+    {
+        $buffer->writeLong($date->getMillis());
+    }
+
+    private function writeTime(MessageBuffer $buffer, Time $time): void
+    {
+        $buffer->writeLong($time->getMillis());
+    }
+
+    private function writeTimestamp(MessageBuffer $buffer, Timestamp $timestamp): void
+    {
+        $buffer->writeLong($timestamp->getMillis());
+        $buffer->writeInteger($timestamp->getNanos());
+    }
+
+    private function writeUUID(MessageBuffer $buffer, array $value): void
+    {
+        for ($i = 0; $i < count($value); $i++) {
+            $buffer->writeByte($value[$i], false);
+        }
+    }
+
+    private function writeEnum(MessageBuffer $buffer, EnumItem $enumValue): void
+    {
+        $buffer->writeInteger($enumValue->getTypeId());
+        if ($enumValue->getOrdinal() !== null) {
+            $buffer->writeInteger($enumValue->getOrdinal());
+            return;
+        } elseif ($enumValue->getName() !== null || $enumValue->getValue() !== null) {
+            $type = $this->typeStorage->getType($enumValue->getTypeId());
+            if ($type && $type->isEnum()) {
+                $enumValues = $type->getEnumValues();
+                if ($enumValues) {
+                    for ($i = 0; $i < count($enumValues); $i++) {
+                        if ($enumValue->getName() === $enumValues[$i][0] ||
+                            $enumValue->getValue() === $enumValues[$i][1]) {
+                            $buffer->writeInteger($i);
+                            return;
+                        }
+                    }
+                }
+            }
+        }
+        ArgumentChecker::illegalArgument('Proper ordinal, name or value must be specified for EnumItem');
+    }
+
+    private function writeDecimal(MessageBuffer $buffer, BigDecimal $decimal): void
+    {
+        $scale = $decimal->getScale();
+        $isNegative = $decimal->isNegative();
+        $hexValue = $decimal->getUnscaledValue()->abs()->toBase(16);
+        $hexValue = ((strlen($hexValue) % 2 !== 0) ? '000' : '00') . $hexValue;
+        if ($isNegative) {
+            $hexValue[0] = '8';
+        }
+        $value = '';
+        for ($i = 0; $i < strlen($hexValue); $i += 2) {
+            $value .= chr(hexdec(substr($hexValue, $i, 2)));
+        }
+        $buffer->writeInteger($scale);
+        $buffer->writeString($value, false);
+    }
+
+    private function writeArray(MessageBuffer $buffer, array $array, $arrayType, int $arrayTypeCode): void
+    {
+        $elementType = BinaryUtils::getArrayElementType($arrayType);
+        $keepElementType = !$elementType || TypeInfo::getTypeInfo($arrayTypeCode)->keepElementType();
+        if ($arrayTypeCode === ObjectType::OBJECT_ARRAY) {
+            $typeId = -1;
+            if ($elementType instanceof ComplexObjectType) {
+                $typeName = BinaryTypeBuilder::calcTypeName($elementType, count($array) > 0 ? $array[0] : null);
+                if ($typeName) {
+                    $typeId = BinaryType::calculateId($typeName);
+                }
+            }
+            $buffer->writeInteger($typeId);
+        }
+        $buffer->writeInteger(count($array));
+        foreach ($array as $elem) {
+            $this->writeObject($buffer, $elem, $elementType, $keepElementType);
+        }
+    }
+
+    private function writeCollection(MessageBuffer $buffer, $collection, CollectionObjectType $collectionType): void
+    {
+        $buffer->writeInteger($collection instanceof Set ? $collection->count() : count($collection));
+        $buffer->writeByte($collectionType->getSubType());
+        foreach ($collection as $element) {
+            $this->writeObject($buffer, $element, $collectionType->getElementType());
+        }
+    }
+
+    private function writeMap(MessageBuffer $buffer, $map, MapObjectType $mapType): void
+    {
+        if (!($map instanceof Map)) {
+            $map = new Map($map);
+        }
+        $buffer->writeInteger($map->count());
+        $buffer->writeByte($mapType->getSubType());
+        foreach ($map->pairs() as $pair) {
+            $this->writeObject($buffer, $pair->key, $mapType->getKeyType());
+            $this->writeObject($buffer, $pair->value, $mapType->getValueType());
+        }
+    }
+
+    private function writeBinaryObject(MessageBuffer $buffer, BinaryObject $binaryObject): void
+    {
+        $buffer->setPosition($buffer->getPosition() - 1);
+        $binaryObject->write($this, $buffer);
+    }
+
+    private function writeComplexObject(MessageBuffer $buffer, object $object, ?ComplexObjectType $objectType): void
+    {
+        $this->writeBinaryObject($buffer, BinaryObject::fromObject($object, $objectType));
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinaryField.php b/src/Apache/Ignite/Internal/Binary/BinaryField.php
new file mode 100644
index 0000000..8fdeab3
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinaryField.php
@@ -0,0 +1,78 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+class BinaryField
+{
+    private $name;
+    private $id;
+    private $typeCode;
+    
+    public function __construct(string $name = null, int $typeCode = 0)
+    {
+        $this->name = $name;
+        $this->id = BinaryField::calculateId($name);
+        $this->typeCode = $typeCode;
+    }
+    
+    public static function calculateId(?string $name): int
+    {
+        return BinaryUtils::hashCodeLowerCase($name);
+    }
+
+    public function getId(): int
+    {
+        return $this->id;
+    }
+
+    public function getName(): string
+    {
+        return $this->name;
+    }
+
+    public function getTypeCode(): int
+    {
+        return $this->typeCode;
+    }
+
+    public function isValid(): bool
+    {
+        return $this->name !== null;
+    }
+
+    public function write(MessageBuffer $buffer): void
+    {
+        // field name
+        BinaryCommunicator::writeString($buffer, $this->name);
+        // type code
+        $buffer->writeInteger($this->typeCode);
+        // field id
+        $buffer->writeInteger($this->id);
+    }
+
+    public function read(MessageBuffer $buffer): void
+    {
+        // field name
+        $this->name = BinaryCommunicator::readString($buffer);
+        // type code
+        $this->typeCode = $buffer->readInteger();
+        // field id
+        $this->id = $buffer->readInteger();
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinaryObjectField.php b/src/Apache/Ignite/Internal/Binary/BinaryObjectField.php
new file mode 100644
index 0000000..cbe24d2
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinaryObjectField.php
@@ -0,0 +1,113 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Exception\ClientException;
+
+class BinaryObjectField
+{
+    private $name;
+    private $id;
+    private $value;
+    private $type;
+    private $typeCode;
+
+    private $communicator;
+    private $buffer;
+    private $offset;
+    private $length;
+
+    public function __construct(?string $name, $value = null, $type = null)
+    {
+        $this->name = $name;
+        $this->id = BinaryField::calculateId($name);
+        $this->value = $value;
+        $this->type = $type;
+        if (!$type && $value !== null) {
+            $this->type = BinaryUtils::calcObjectType($value);
+        }
+        $this->typeCode = $this->type ? BinaryUtils::getTypeCode($this->type) : 0;
+    }
+    
+    public function getId(): int
+    {
+        return $this->id;
+    }
+    
+    public function getTypeCode(): int
+    {
+        return $this->typeCode;
+    }
+
+    public function getValue($type = null)
+    {
+        if ($this->buffer && ($this->value === null || $this->type !== $type)) {
+            $this->buffer->setPosition($this->offset);
+            $this->value = $this->communicator->readObject($this->buffer, $type);
+            $this->type = $type;
+        }
+        return $this->value;
+    }
+
+    public static function fromBuffer(BinaryCommunicator $communicator, MessageBuffer $buffer, int $offset, int $length, int $id): BinaryObjectField
+    {
+        $result = new BinaryObjectField(null);
+        $result->id = $id;
+        $result->communicator = $communicator;
+        $result->buffer = $buffer;
+        $result->offset = $offset;
+        $result->length = $length;
+        return $result;
+    }
+
+    public function writeValue(BinaryCommunicator $communicator, MessageBuffer $buffer, int $expectedTypeCode): void
+    {
+        $offset = $buffer->getPosition();
+        if ($this->buffer && $this->communicator === $communicator) {
+            $buffer->writeBuffer($this->buffer, $this->offset, $this->length);
+        } else {
+            if (!$this->value) {
+                $this->getValue($expectedTypeCode);
+            }
+            BinaryUtils::checkCompatibility($this->value, $expectedTypeCode);
+            $communicator->writeObject($buffer, $this->value, $this->type);
+        }
+        $this->communicator = $communicator;
+        $this->buffer = $buffer;
+        $this->length = $buffer->getPosition() - $offset;
+        $this->offset = $offset;
+    }
+
+    public function writeOffset(MessageBuffer $buffer, int $headerStartPos, int $offsetType): void
+    {
+        $buffer->writeNumber($this->offset - $headerStartPos, $offsetType, false);
+    }
+
+    public function getOffsetType(int $headerStartPos): int
+    {
+        $offset = $this->offset - $headerStartPos;
+        if ($offset < TypeInfo::getTypeInfo(ObjectType::BYTE)->getMaxUnsignedValue()) {
+            return ObjectType::BYTE;
+        } elseif ($offset < TypeInfo::getTypeInfo(ObjectType::SHORT)->getMaxUnsignedValue()) {
+            return ObjectType::SHORT;
+        }
+        return ObjectType::INTEGER;
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinarySchema.php b/src/Apache/Ignite/Internal/Binary/BinarySchema.php
new file mode 100644
index 0000000..cff6ae8
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinarySchema.php
@@ -0,0 +1,145 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Brick\Math\BigInteger;
+use Apache\Ignite\Type\ObjectType;
+
+class BinarySchema
+{
+    /** FNV1 hash offset basis. */
+    const FNV1_OFFSET_BASIS = 0x811C9DC5;
+    /** FNV1 hash prime. */
+    const FNV1_PRIME = 0x01000193;
+    
+    private $id;
+    private $fieldIds;
+    private $isValid;
+    
+    public function __construct()
+    {
+        $this->id = BinarySchema::FNV1_OFFSET_BASIS;
+        $this->fieldIds = [];
+        $this->isValid = true;
+    }
+    
+    public function getId(): int
+    {
+        return $this->id;
+    }
+    
+    public function getFieldIds(): array
+    {
+        return array_keys($this->fieldIds);
+    }
+
+    public function finalize(): void
+    {
+        if (!$this->isValid) {
+            $this->id = BinarySchema::FNV1_OFFSET_BASIS;
+            foreach ($this->fieldIds as $key => $value) {
+                BinarySchema::updateSchemaId($key);
+            }
+            $this->isValid = true;
+        }
+    }
+
+    public function cloneSchema(): BinarySchema
+    {
+        $result = new BinarySchema();
+        $result->id = $this->id;
+        $result->fieldIds = [];
+        foreach($this->fieldIds as $key => $value) {
+            $result->fieldIds[$key] = $value;
+        }
+        $result->isValid = $this->isValid;
+        return $result;
+    }
+    
+    public function addField(int $fieldId): void
+    {
+        if (!$this->hasField($fieldId)) {
+            $this->fieldIds[$fieldId] = true;
+            if ($this->isValid) {
+                $this->updateSchemaId($fieldId);
+            }
+        }
+    }
+
+    public function removeField(int $fieldId): void
+    {
+        if ($this->hasField($fieldId)) {
+            unset($this->fieldIds[$fieldId]);
+            $this->isValid = false;
+        }
+    }
+
+    public function hasField(int $fieldId): bool
+    {
+        return array_key_exists($fieldId, $this->fieldIds);
+    }
+
+    private function updateSchemaId(int $fieldId): void
+    {
+        $this->updateSchemaIdPart($fieldId & 0xFF);
+        $this->updateSchemaIdPart(($fieldId >> 8) & 0xFF);
+        $this->updateSchemaIdPart(($fieldId >> 16) & 0xFF);
+        $this->updateSchemaIdPart(($fieldId >> 24) & 0xFF);
+        $this->id = BinaryUtils::intVal32($this->id);
+    }
+
+    private function updateSchemaIdPart(int $fieldIdPart): void
+    {
+        $this->id = $this->id ^ $fieldIdPart;
+        if (BinaryUtils::$is32BitInt) {
+            $hexValue = BinaryUtils::getLongHex(BigInteger::of(abs($this->id))->multipliedBy(BinarySchema::FNV1_PRIME), $this->id < 0);
+            $len = strlen($hexValue);
+            $size = TypeInfo::getTypeInfo(ObjectType::INTEGER)->getSize() * 2;
+            $this->id = hexdec($len > $size ? substr($hexValue, $len - $size) : $hexValue);
+        } else {
+            $this->id = $this->id * BinarySchema::FNV1_PRIME;
+        }
+        $this->id &= 0xFFFFFFFF; // Convert to 32bit integer
+    }
+
+    public function write(MessageBuffer $buffer): void
+    {
+        $this->finalize();
+        // schema id
+        $buffer->writeInteger($this->id);
+        // fields count
+        $buffer->writeInteger(count($this->fieldIds));
+        // field ids
+        foreach ($this->fieldIds as $key => $value) {
+            $buffer->writeInteger($key);
+        }
+    }
+
+    public function read(MessageBuffer $buffer): void
+    {
+        // schema id
+        $this->id = $buffer->readInteger();
+        // fields count
+        $fieldsCount = $buffer->readInteger();
+        // field ids
+        for ($i = 0; $i < $fieldsCount; $i++) {
+            $this->fieldIds[$buffer->readInteger()] = true;
+        }
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinaryType.php b/src/Apache/Ignite/Internal/Binary/BinaryType.php
new file mode 100644
index 0000000..8cd1c82
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinaryType.php
@@ -0,0 +1,233 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+class BinaryType
+{
+    private $name;
+    private $id;
+    private $fields;
+    private $schemas;
+    private $isEnum;
+    private $enumValues;
+    
+    public function __construct(?string $name)
+    {
+        $this->name = $name;
+        $this->id = BinaryType::calculateId($name);
+        $this->fields = [];
+        $this->schemas = [];
+        $this->isEnum = false;
+        $this->enumValues = null;
+    }
+    
+    public static function calculateId($name)
+    {
+        return BinaryUtils::hashCodeLowerCase($name);
+    }
+
+    public function getId(): int
+    {
+        return $this->id;
+    }
+    
+    public function setId(int $id): void
+    {
+        $this->id = $id;
+    }
+    
+    public function getName(): string
+    {
+        return $this->name;
+    }
+
+    public function getFields(): array
+    {
+        return array_values($this->fields);
+    }
+
+    public function getField(int $fieldId): ?BinaryField
+    {
+        return $this->hasField($fieldId) ? $this->fields[$fieldId] : null;
+    }
+
+    public function hasField(int $fieldId): bool
+    {
+        return array_key_exists($fieldId, $this->fields);
+    }
+
+    public function removeField(int $fieldId): void
+    {
+        if ($this->hasField($fieldId)) {
+            unset($this->fields[$fieldId]);
+        }
+    }
+
+    public function setField(BinaryField $field): void
+    {
+        $this->fields[$field->getId()] = $field;
+    }
+
+    public function hasSchema(int $schemaId): bool
+    {
+        return array_key_exists($schemaId, $this->schemas);
+    }
+
+    public function addSchema(BinarySchema $schema): void
+    {
+        if (!$this->hasSchema($schema->getId())) {
+            $this->schemas[$schema->getId()] = $schema;
+        }
+    }
+
+    public function getSchema($schemaId): ?BinarySchema
+    {
+        return $this->hasSchema($schemaId) ? $this->schemas[$schemaId] : null;
+    }
+    
+    public function isEnum(): bool
+    {
+        return $this->isEnum;
+    }
+    
+    public function getEnumValues(): ?array
+    {
+        return $this->enumValues;
+    }
+
+    public function merge(BinaryType $binaryType, BinarySchema $binarySchema): void
+    {
+        foreach ($binaryType->getFields() as $field) {
+            $fieldId = $field->getId();
+            if ($this->hasField($fieldId)) {
+                if ($this->getField($fieldId)->getTypeCode() !== $field->getTypeCode()) {
+                    BinaryUtils::serializationError(
+                        true, sprintf('type conflict for field "%s" of complex object type "%s"',
+                        $field->getName(), $this->name));
+                }
+            } else {
+                $this->setField($field);
+            }
+        }
+        $this->addSchema($binarySchema);
+    }
+
+    public function cloneType(): BinaryType
+    {
+        $result = new BinaryType(null);
+        $result->name = $this->name;
+        $result->id = $this->id;
+        $result->fields = [];
+        foreach($this->fields as $key => $value) {
+            $result->fields[$key] = $value;
+        }
+        $result->schemas = [];
+        foreach($this->schemas as $key => $value) {
+            $result->schemas[$key] = $value;
+        }
+        $result->isEnum = $this->isEnum;
+        return $result;
+    }
+
+    public function isValid(): bool
+    {
+        foreach ($this->fields as $field) {
+            if (!$field->isValid()) {
+                return false;
+            }
+        }
+        return $this->name !== null;
+    }
+
+    public function write(MessageBuffer $buffer): void
+    {
+        // type id
+        $buffer->writeInteger($this->id);
+        // type name
+        BinaryCommunicator::writeString($buffer, $this->name);
+        // affinity key field name
+        BinaryCommunicator::writeString($buffer, null);
+        // fields count
+        $buffer->writeInteger(count($this->fields));
+        // fields
+        foreach ($this->fields as $field) {
+            $field->write($buffer);
+        }
+        $this->writeEnum($buffer);
+        // schemas count
+        $buffer->writeInteger(count($this->schemas));
+        foreach ($this->schemas as $schema) {
+            $schema->write($buffer);
+        }
+    }
+
+    private function writeEnum(MessageBuffer $buffer): void
+    {
+        $buffer->writeBoolean($this->isEnum);
+        if ($this->isEnum) {
+            $length = $this->enumValues ? count($this->enumValues) : 0;
+            $buffer->writeInteger($length);
+            if ($length > 0) {
+                foreach ($this->enumValues as $key => $value) {
+                    BinaryCommunicator::writeString($buffer, $key);
+                    $buffer->writeInteger($value);
+                }
+            }
+        }
+    }
+
+    public function read(MessageBuffer $buffer): void
+    {
+        // type id
+        $this->id = $buffer->readInteger();
+        // type name
+        $this->name = BinaryCommunicator::readString($buffer);
+        // affinity key field name
+        BinaryCommunicator::readString($buffer);
+        // fields count
+        $fieldsCount = $buffer->readInteger();
+        // fields
+        for ($i = 0; $i < $fieldsCount; $i++) {
+            $field = new BinaryField();
+            $field->read($buffer);
+            $this->setField($field);
+        }
+        $this->readEnum($buffer);
+        // schemas count
+        $schemasCount = $buffer->readInteger();
+        // schemas
+        for ($i = 0; $i < $schemasCount; $i++) {
+            $schema = new BinarySchema();
+            $schema->read($buffer);
+            $this->addSchema($schema);
+        }
+    }
+
+    private function readEnum(MessageBuffer $buffer): void
+    {
+        $this->isEnum = $buffer->readBoolean();
+        if ($this->isEnum) {
+            $valuesCount = $buffer->readInteger();
+            $this->enumValues = [];
+            for ($i = 0; $i < $valuesCount; $i++) {
+                array_push($this->enumValues, [BinaryCommunicator::readString($buffer), $buffer->readInteger()]);
+            }
+        }
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinaryTypeBuilder.php b/src/Apache/Ignite/Internal/Binary/BinaryTypeBuilder.php
new file mode 100644
index 0000000..f13eddb
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinaryTypeBuilder.php
@@ -0,0 +1,207 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Apache\Ignite\Type\ComplexObjectType;
+
+class BinaryTypeBuilder
+{
+    private $type;
+    private $schema;
+    private $fromStorage;
+    
+    private function __construct()
+    {
+        $this->type = null;
+        $this->schema = null;
+        $this->fromStorage = false;
+    }
+            
+    public static function fromTypeName(string $typeName): BinaryTypeBuilder
+    {
+        $result = new BinaryTypeBuilder();
+        $result->init($typeName);
+        return $result;
+    }
+
+    public static function fromTypeId(BinaryCommunicator $communicator, int $typeId, ?int $schemaId): BinaryTypeBuilder
+    {
+        $result = new BinaryTypeBuilder();
+        $type = $communicator->getTypeStorage()->getType($typeId, $schemaId);
+        if ($type) {
+            $result->type = $type;
+            if ($schemaId !== null) {
+                $result->schema = $type->getSchema($schemaId);
+                if (!$result->schema) {
+                    BinaryUtils::serializationError(
+                        false,
+                        sprintf('schema id "%d" specified for complex object of type "%s" not found', $schemaId, $type->getName()));
+                }
+                $result->fromStorage = true;
+            } else {
+                $result->schema = new BinarySchema();
+            }
+            return $result;
+        }
+        $result->init(null);
+        $result->getType()->setId($typeId);
+        return $result;
+    }
+
+    public static function fromObject(object $object, ComplexObjectType $complexObjectType = null): BinaryTypeBuilder
+    {
+        if ($complexObjectType) {
+            return BinaryTypeBuilder::fromComplexObjectType($complexObjectType, $object);
+        } else {
+            $result = new BinaryTypeBuilder();
+            $result->fromComplexObject(new ComplexObjectType(), $object);
+            return $result;
+        }
+    }
+
+    public static function fromComplexObjectType(ComplexObjectType $complexObjectType, object $object): BinaryTypeBuilder
+    {
+        $result = new BinaryTypeBuilder();
+        $typeInfo = BinaryTypeStorage::getByComplexObjectType($complexObjectType);
+        if ($typeInfo) {
+            $result->type = $typeInfo[0];
+            $result->schema = $typeInfo[1];
+            $result->fromStorage = true;
+        } else {
+            $result->fromComplexObject($complexObjectType, $object);
+            BinaryTypeStorage::setByComplexObjectType($complexObjectType, $result->type, $result->schema);
+        }
+        return $result;
+    }
+    
+    public static function calcTypeName(ComplexObjectType $complexObjectType, object $object): string
+    {
+        $typeName = $complexObjectType->getIgniteTypeName();
+        if (!$typeName) {
+            $typeName = $object ? get_class($object) : null;
+        }
+        return $typeName;
+    }
+
+    public function getType(): BinaryType
+    {
+        return $this->type;
+    }
+
+    public function getTypeId(): int
+    {
+        return $this->type->getId();
+    }
+
+    public function getTypeName(): string
+    {
+        return $this->type->getName();
+    }
+
+    public function getSchema(): BinarySchema
+    {
+        return $this->schema;
+    }
+    
+    public function getSchemaId(): int
+    {
+        return $this->schema->getId();
+    }
+
+    public function getFields(): array
+    {
+        return $this->type->getFields();
+    }
+
+    public function getField(int $fieldId): ?BinaryField
+    {
+        return $this->type->getField($fieldId);
+    }
+
+    public function setField(string $fieldName, int $fieldTypeCode = 0): void
+    {
+        $fieldId = BinaryField::calculateId($fieldName);
+        if (!$this->type->hasField($fieldId) || !$this->schema->hasField($fieldId) ||
+            $this->type->getField($fieldId)->getTypeCode() !== $fieldTypeCode) {
+            $this->beforeModify();
+            $this->type->setField(new BinaryField($fieldName, $fieldTypeCode));
+            $this->schema->addField($fieldId);
+        }
+    }
+
+    public function removeField(string $fieldName): void
+    {
+        $fieldId = BinaryField::calculateId($fieldName);
+        if ($this->type->hasField($fieldId)) {
+            $this->beforeModify();
+            $this->type->removeField($fieldId);
+            $this->schema->removeField($fieldId);
+        }
+    }
+
+    public function finalize(BinaryCommunicator $communicator): void
+    {
+        $this->schema->finalize();
+        $communicator->getTypeStorage()->addType($this->type, $this->schema);
+    }
+
+    private function fromComplexObject(ComplexObjectType $complexObjectType, object $object): void
+    {
+        $typeName = BinaryTypeBuilder::calcTypeName($complexObjectType, $object);
+        $this->init($typeName);
+        $this->setFields($complexObjectType, $object);
+    }
+
+    private function init(?string $typeName): void
+    {
+        $this->type = new BinaryType($typeName);
+        $this->schema = new BinarySchema();
+    }
+
+    private function beforeModify(): void
+    {
+        if ($this->fromStorage) {
+            $this->type = $this->type->cloneType();
+            $this->schema = $this->schema->cloneSchema();
+            $this->fromStorage = false;
+        }
+    }
+
+    private function setFields(ComplexObjectType $complexObjectType, object $object): void
+    {
+        try {
+            $reflect = new \ReflectionClass($object);
+            $properties  = $reflect->getProperties(\ReflectionProperty::IS_PUBLIC);
+            foreach ($properties as $property) {
+                if ($property->isStatic()) {
+                    continue;
+                }
+                $fieldName = $property->getName();
+                $fieldType = $complexObjectType->getFieldType($fieldName);
+                if (!$fieldType) {
+                    $fieldValue = $property->getValue($object);
+                    $fieldType = BinaryUtils::calcObjectType($fieldValue);
+                }
+                $this->setField($fieldName, BinaryUtils::getTypeCode($fieldType));
+            }
+        } catch (\ReflectionException $e) {
+            BinaryUtils::serializationError(true, sprintf('class "%s" does not exist', get_class($object)));
+        }
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinaryTypeStorage.php b/src/Apache/Ignite/Internal/Binary/BinaryTypeStorage.php
new file mode 100644
index 0000000..05d53cc
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinaryTypeStorage.php
@@ -0,0 +1,123 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Ds\Map;
+use Apache\Ignite\Type\ComplexObjectType;
+
+class BinaryTypeStorage
+{
+    private $communicator;
+    private $types;
+    private static $complexObjectTypes = null;
+
+    public function __construct(BinaryCommunicator $communicator)
+    {
+        $this->communicator = $communicator;
+        $this->types = [];
+    }
+
+    public function addType(BinaryType $binaryType, BinarySchema $binarySchema): void
+    {
+        $typeId = $binaryType->getId();
+        $schemaId = $binarySchema->getId();
+        $storageType = $this->getStorageType($typeId);
+        if (!$storageType || !$storageType->hasSchema($schemaId)) {
+            $binaryType->addSchema($binarySchema);
+            if (!$storageType) {
+                $this->types[$typeId] = $binaryType;
+            } else {
+                $storageType->merge($binaryType, $binarySchema);
+            }
+            $this->putBinaryType($binaryType);
+        }
+    }
+
+    public function getType(int $typeId, int $schemaId = null): ?BinaryType
+    {
+        $storageType = $this->getStorageType($typeId);
+        if (!$storageType || $schemaId && !$storageType->hasSchema($schemaId)) {
+            $storageType = $this->getBinaryType($typeId);
+            if ($storageType) {
+                $this->types[$storageType->getId()] = $storageType;
+            }
+        }
+        return $storageType;
+    }
+    
+    public static function getByComplexObjectType(ComplexObjectType $complexObjectType): ?array
+    {
+        return BinaryTypeStorage::getComplexObjectTypes()->get($complexObjectType, null);
+    }
+
+    public static function setByComplexObjectType(ComplexObjectType $complexObjectType, BinaryType $type, BinarySchema $schema): void
+    {
+        if (!BinaryTypeStorage::getComplexObjectTypes()->hasKey($complexObjectType)) {
+            BinaryTypeStorage::getComplexObjectTypes()->put($complexObjectType, [$type, $schema]);
+        }
+    }
+
+    private static function getComplexObjectTypes(): Map
+    {
+        if (!BinaryTypeStorage::$complexObjectTypes) {
+            BinaryTypeStorage::$complexObjectTypes = new Map();
+        }
+        return BinaryTypeStorage::$complexObjectTypes;
+    }
+
+    private function getBinaryType(int $typeId): ?BinaryType
+    {
+        $binaryType = new BinaryType(null);
+        $binaryType->setId($typeId);
+        $this->communicator->send(
+            ClientOperation::GET_BINARY_TYPE,
+            function (MessageBuffer $payload) use ($typeId)
+            {
+                $payload->writeInteger($typeId);
+            },
+            function (MessageBuffer $payload) use (&$binaryType)
+            {
+                $exist = $payload->readBoolean();
+                if ($exist) {
+                    $binaryType->read($payload);
+                } else {
+                    $binaryType = null;
+                }
+            });
+        return $binaryType;
+    }
+
+    private function putBinaryType(BinaryType $binaryType): void
+    {
+        if (!$binaryType->isValid()) {
+            BinaryUtils::serializationError(true, sprintf('type "%d" can not be registered', $binaryType->getId()));
+        }
+        $this->communicator->send(
+            ClientOperation::PUT_BINARY_TYPE,
+            function (MessageBuffer $payload) use ($binaryType)
+            {
+                $binaryType->write($payload);
+            });
+    }
+
+    private function getStorageType(int $typeId): ?BinaryType
+    {
+        return array_key_exists($typeId, $this->types) ? $this->types[$typeId] : null;
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/BinaryUtils.php b/src/Apache/Ignite/Internal/Binary/BinaryUtils.php
new file mode 100644
index 0000000..ad0bf56
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/BinaryUtils.php
@@ -0,0 +1,438 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Ds\Map;
+use Ds\Set;
+use Brick\Math\BigDecimal;
+use Brick\Math\BigInteger;
+use Apache\Ignite\Exception\ClientException;
+use Apache\Ignite\Type\ObjectType;
+use Apache\Ignite\Type\MapObjectType;
+use Apache\Ignite\Type\CollectionObjectType;
+use Apache\Ignite\Type\ComplexObjectType;
+use Apache\Ignite\Type\ObjectArrayType;
+use Apache\Ignite\Data\Date;
+use Apache\Ignite\Data\Time;
+use Apache\Ignite\Data\Timestamp;
+use Apache\Ignite\Data\EnumItem;
+use Apache\Ignite\Data\BinaryObject;
+use Apache\Ignite\Internal\Utils\ArgumentChecker;
+
+class BinaryUtils
+{
+    const FLOAT_EPSILON = 0.00001;
+    public static $is32BitInt = PHP_INT_MAX === TypeInfo::MAX_INT_VALUE;
+
+    public static function getSize(int $typeCode): int
+    {
+        return TypeInfo::getTypeInfo($typeCode)->getSize();
+    }
+
+    public static function checkCompatibility($value, $type): void
+    {
+        if (!$type) {
+            return;
+        }
+        $typeCode = BinaryUtils::getTypeCode($type);
+        if ($value === null) {
+            if (!TypeInfo::getTypeInfo($typeCode)->isNullable()) {
+                BinaryUtils::typeCastError(ObjectType::NULL, $typeCode);
+            }
+            return;
+        } elseif (BinaryUtils::isStandardType($typeCode)) {
+            BinaryUtils::checkStandardTypeCompatibility($value, $typeCode, $type);
+            return;
+        }
+        $valueTypeCode = BinaryUtils::getTypeCode(BinaryUtils::calcObjectType($value));
+        if ($typeCode !== $valueTypeCode) {
+            BinaryUtils::typeCastError($valueTypeCode, $typeCode);
+        }
+    }
+
+    public static function isStandardType($typeCode): bool
+    {
+        return $typeCode !== ObjectType::BINARY_OBJECT &&
+            $typeCode !== ObjectType::COMPLEX_OBJECT;
+    }
+
+    public static function checkStandardTypeCompatibility($value, $typeCode, $type = null, $signed = true)
+    {
+        $valueType = BinaryUtils::getPhpTypeName($value);
+        switch ($typeCode) {
+            case ObjectType::BYTE:
+            case ObjectType::SHORT:
+            case ObjectType::INTEGER:
+                if (!is_integer($value)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                $typeInfo = TypeInfo::getTypeInfo($typeCode);
+                $min = $typeInfo->getMinValue();
+                $max = $typeInfo->getMaxValue();
+                if ($signed && ($min && $value < $min || $max && $value > $max) ||
+                    !$signed && ($value < 0 || $value > $max - $min)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::LONG:
+            case ObjectType::FLOAT:
+            case ObjectType::DOUBLE:
+                if (!is_integer($value) && !is_float($value)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::CHAR:
+                if (!is_string($value) || mb_strlen($value) !== 1) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::BOOLEAN:
+                if (!is_bool($value)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::STRING:
+                if (!is_string($value)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::UUID:
+                if (!BinaryUtils::isIndexedArray($value) ||
+                    count($value) !== BinaryUtils::getSize(ObjectType::UUID)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                foreach ($value as $element) {
+                    BinaryUtils::checkStandardTypeCompatibility($element, ObjectType::BYTE, null, false);
+                }
+                return;
+            case ObjectType::DATE:
+                if (!($value instanceof Date)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::ENUM:
+                if (!($value instanceof EnumItem)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::DECIMAL:
+                if (!($value instanceof BigDecimal)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::TIMESTAMP:
+                if (!($value instanceof Timestamp)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::TIME:
+                if (!($value instanceof Time)) {
+                    BinaryUtils::valueCastError($value, $typeCode);
+                }
+                return;
+            case ObjectType::BYTE_ARRAY:
+            case ObjectType::SHORT_ARRAY:
+            case ObjectType::INTEGER_ARRAY:
+            case ObjectType::LONG_ARRAY:
+            case ObjectType::FLOAT_ARRAY:
+            case ObjectType::DOUBLE_ARRAY:
+            case ObjectType::CHAR_ARRAY:
+            case ObjectType::BOOLEAN_ARRAY:
+            case ObjectType::STRING_ARRAY:
+            case ObjectType::UUID_ARRAY:
+            case ObjectType::DATE_ARRAY:
+            case ObjectType::OBJECT_ARRAY:
+            case ObjectType::ENUM_ARRAY:
+            case ObjectType::DECIMAL_ARRAY:
+            case ObjectType::TIMESTAMP_ARRAY:
+            case ObjectType::TIME_ARRAY:
+                if (!BinaryUtils::isIndexedArray($value)) {
+                    BinaryUtils::typeCastError($valueType, $typeCode);
+                }
+                return;
+            case ObjectType::MAP:
+                if (!($value instanceof Map) && !is_array($value)) {
+                    BinaryUtils::typeCastError($valueType, $typeCode);
+                }
+                return;
+            case ObjectType::COLLECTION:
+                $isSet = $type && CollectionObjectType::isSet($type->getSubType());
+                if (!($isSet && $value instanceof Set || BinaryUtils::isIndexedArray($value))) {
+                    BinaryUtils::typeCastError($valueType, $isSet ? 'set' : $typeCode);
+                }
+                return;
+            case ObjectType::NULL:
+                if ($value !== null) {
+                    BinaryUtils::typeCastError('not null', $typeCode);
+                }
+                return;
+            default:
+                $valueTypeCode = BinaryUtils::getTypeCode(BinaryUtils::calcObjectType($value));
+                if ($valueTypeCode === ObjectType::BINARY_OBJECT) {
+                    BinaryUtils::typeCastError($valueTypeCode, $typeCode);
+                }
+                return;
+        }
+    }
+
+    public static function checkTypesCompatibility($expectedType, int $actualTypeCode): void
+    {
+        if ($expectedType === null) {
+            return;
+        }
+        $expectedTypeCode = BinaryUtils::getTypeCode($expectedType);
+        if ($actualTypeCode === ObjectType::NULL) {
+            return;
+        } elseif ($expectedTypeCode === ObjectType::BINARY_OBJECT ||
+            $actualTypeCode === ObjectType::BINARY_OBJECT &&
+            $expectedTypeCode === ObjectType::COMPLEX_OBJECT) {
+            return;
+        } elseif ($actualTypeCode !== $expectedTypeCode) {
+            BinaryUtils::typeCastError($actualTypeCode, $expectedTypeCode);
+        }
+    }
+
+    public static function calcObjectType($object)
+    {
+        if (is_integer($object)) {
+            return ObjectType::INTEGER;
+        } elseif (is_float($object)) {
+            return ObjectType::DOUBLE;
+        } elseif (is_string($object)) {
+            return ObjectType::STRING;
+        } elseif (is_bool($object)) {
+            return ObjectType::BOOLEAN;
+        } elseif (is_array($object)) {
+            if (count($object) > 0) {
+                if (BinaryUtils::isIndexedArray($object)) {
+                    if ($object[0] !== null) {
+                        // indexed array
+                        return BinaryUtils::getArrayType(BinaryUtils::calcObjectType($object[0]));
+                    }
+                } else {
+                    // associative array
+                    return new MapObjectType();
+                }
+            } else {
+                BinaryUtils::noDefaultMapping("empty array");
+            }
+        } elseif ($object instanceof Time) {
+            return ObjectType::TIME;
+        } elseif ($object instanceof Timestamp) {
+            return ObjectType::TIMESTAMP;
+        } elseif ($object instanceof Date) {
+            return ObjectType::DATE;
+        } elseif ($object instanceof EnumItem) {
+            return ObjectType::ENUM;
+        } elseif ($object instanceof BigDecimal) {
+            return ObjectType::DECIMAL;
+        } elseif ($object instanceof Set) {
+            return new CollectionObjectType(CollectionObjectType::HASH_SET);
+        } elseif ($object instanceof Map) {
+            return new MapObjectType();
+        } elseif ($object instanceof BinaryObject) {
+            return ObjectType::BINARY_OBJECT;
+        } elseif (is_object($object)) {
+            return new ComplexObjectType();
+        }
+        BinaryUtils::noDefaultMapping(BinaryUtils::getPhpTypeName($object));
+        return null;
+    }
+
+    public static function getArrayType($elementType)
+    {
+        switch (BinaryUtils::getTypeCode($elementType)) {
+            case ObjectType::BYTE:
+                return ObjectType::BYTE_ARRAY;
+            case ObjectType::SHORT:
+                return ObjectType::SHORT_ARRAY;
+            case ObjectType::INTEGER:
+                return ObjectType::INTEGER_ARRAY;
+            case ObjectType::LONG:
+                return ObjectType::LONG_ARRAY;
+            case ObjectType::FLOAT:
+                return ObjectType::FLOAT_ARRAY;
+            case ObjectType::DOUBLE:
+                return ObjectType::DOUBLE_ARRAY;
+            case ObjectType::CHAR:
+                return ObjectType::CHAR_ARRAY;
+            case ObjectType::BOOLEAN:
+                return ObjectType::BOOLEAN_ARRAY;
+            case ObjectType::STRING:
+                return ObjectType::STRING_ARRAY;
+            case ObjectType::UUID:
+                return ObjectType::UUID_ARRAY;
+            case ObjectType::DATE:
+                return ObjectType::DATE_ARRAY;
+            case ObjectType::ENUM:
+                return ObjectType::ENUM_ARRAY;
+            case ObjectType::DECIMAL:
+                return ObjectType::DECIMAL_ARRAY;
+            case ObjectType::TIMESTAMP:
+                return ObjectType::TIMESTAMP_ARRAY;
+            case ObjectType::TIME:
+                return ObjectType::TIME_ARRAY;
+            case ObjectType::BINARY_OBJECT:
+                return new ObjectArrayType();
+            default:
+                return new ObjectArrayType($elementType);
+        }
+    }
+
+    public static function getArrayElementType($arrayType)
+    {
+        if ($arrayType instanceof ObjectArrayType) {
+            return $arrayType->getElementType();
+        } elseif ($arrayType === ObjectType::OBJECT_ARRAY) {
+            return null;
+        }
+        $info = TypeInfo::getTypeInfo($arrayType);
+        if (!$info || !$info->getElementTypeCode()) {
+            BinaryUtils::internalError();
+        }
+        return $info->getElementTypeCode();
+    }
+    
+    public static function getTypeCode($objectType): int
+    {
+        return $objectType instanceof ObjectType ? $objectType->getTypeCode() : $objectType;
+    }
+    
+    public static function getTypeName($objectType): string
+    {
+        if (is_string($objectType)) {
+            return $objectType;
+        }
+        $typeCode = BinaryUtils::getTypeCode($objectType);
+        $info = TypeInfo::getTypeInfo($typeCode);
+        return $info ? $info->getName() : 'type code ' . $typeCode;
+    }
+
+    public static function getPhpTypeName($object): string
+    {
+        if (is_array($object) && !BinaryUtils::isIndexedArray($object)) {
+            return 'associative array';
+        }
+        return gettype($object);
+    }
+
+    public static function checkObjectType($type, string $argName): void
+    {
+        if ($type === null || $type instanceof ObjectType) {
+            return;
+        }
+        ArgumentChecker::hasValueFrom($type, $argName, false, TypeInfo::getPrimitiveTypes());
+    }
+    
+    public static function floatEquals(float $val1, float $val2): bool
+    {
+        return abs($val1 - $val2) < BinaryUtils::FLOAT_EPSILON;
+    }
+
+    public static function getLongHex(BigInteger $value, bool $isNegative): string
+    {
+        $size = TypeInfo::getTypeInfo(ObjectType::LONG)->getSize();
+        if ($isNegative) {
+            $value = BigInteger::parse(str_pad('1', $size * 2 + 1, '0'), 16)->minus($value);
+        }
+        return str_pad($value->toBase(16), $size * 2, '0', STR_PAD_LEFT);
+    }
+
+    public static function hashCode(?string $str): int
+    {
+        $hash = 0;
+        $length = strlen($str);
+        if ($str && $length > 0) {
+            for ($i = 0; $i < $length; $i++) {
+                $hash = (($hash << 5) - $hash) + ord($str[$i]);
+                $hash &= 0xFFFFFFFF; // Convert to 32bit integer
+            }
+        }
+        return BinaryUtils::intVal32($hash);
+    }
+    
+    public static function hashCodeLowerCase(?string $str): int
+    {
+        return BinaryUtils::hashCode($str ? strtolower($str) : $str);
+    }
+
+    public static function contentHashCode(MessageBuffer $buffer, int $startPos, int $endPos): int
+    {
+        $hash = 1;
+        $length = $endPos - $startPos + 1;
+        $content = $buffer->getSlice($startPos, $length);
+        for ($i = 0; $i < $length; $i++) {
+            $hash = 31 * $hash + ord($content[$i]);
+            $hash &= 0xFFFFFFFF; // Convert to 32bit integer
+        }
+        return BinaryUtils::intVal32($hash);
+    }
+    
+    public static function intVal32(int $value): int
+    {
+        if (!BinaryUtils::$is32BitInt) {
+            $value = ($value & 0xFFFFFFFF);
+            if ($value & 0x80000000) {
+                $value = -((~$value & 0xFFFFFFFF) + 1);
+            }
+        }
+        return $value;
+    }
+
+    public static function internalError(string $message = null): void
+    {
+        throw new ClientException($message ? $message : 'Internal library error');
+    }
+
+    public static function unsupportedType($type): void
+    {
+        throw new ClientException(sprintf('Type %s is not supported', BinaryUtils::getTypeName($type)));
+    }
+
+    public static function noDefaultMapping($type): void
+    {
+        throw new ClientException(sprintf('%s has no default type mapping', BinaryUtils::getTypeName($type)));
+    }
+
+    public static function serializationError(bool $serialize, string $message = null): void
+    {
+        $msg = $serialize ? 'Complex object can not be serialized' : 'Complex object can not be deserialized';
+        if ($message) {
+            $msg = $msg . ': ' . $message;
+        }
+        throw new ClientException($msg);
+    }
+
+    public static function typeCastError($fromType, $toType): void
+    {
+        throw new ClientException(sprintf('Type "%s" can not be cast to %s',
+            BinaryUtils::getTypeName($fromType), BinaryUtils::getTypeName($toType)));
+    }
+
+    public static function valueCastError($value, $toType): void
+    {
+        throw new ClientException(sprintf('Value "%s" can not be cast to %s',
+            print_r($value, true), BinaryUtils::getTypeName($toType)));
+    }
+
+    private static function isIndexedArray(array $object): bool
+    {
+        return $object === array_values($object);
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/ClientOperation.php b/src/Apache/Ignite/Internal/Binary/ClientOperation.php
new file mode 100644
index 0000000..bfc6c17
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/ClientOperation.php
@@ -0,0 +1,64 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+class ClientOperation
+{
+    // Key-Value Queries
+    const CACHE_GET = 1000;
+    const CACHE_PUT = 1001;
+    const CACHE_PUT_IF_ABSENT = 1002;
+    const CACHE_GET_ALL = 1003;
+    const CACHE_PUT_ALL = 1004;
+    const CACHE_GET_AND_PUT = 1005;
+    const CACHE_GET_AND_REPLACE = 1006;
+    const CACHE_GET_AND_REMOVE = 1007;
+    const CACHE_GET_AND_PUT_IF_ABSENT = 1008;
+    const CACHE_REPLACE = 1009;
+    const CACHE_REPLACE_IF_EQUALS = 1010;
+    const CACHE_CONTAINS_KEY = 1011;
+    const CACHE_CONTAINS_KEYS = 1012;
+    const CACHE_CLEAR = 1013;
+    const CACHE_CLEAR_KEY = 1014;
+    const CACHE_CLEAR_KEYS = 1015;
+    const CACHE_REMOVE_KEY = 1016;
+    const CACHE_REMOVE_IF_EQUALS = 1017;
+    const CACHE_REMOVE_KEYS = 1018;
+    const CACHE_REMOVE_ALL = 1019;
+    const CACHE_GET_SIZE = 1020;
+    // Cache Configuration
+    const CACHE_GET_NAMES = 1050;
+    const CACHE_CREATE_WITH_NAME = 1051;
+    const CACHE_GET_OR_CREATE_WITH_NAME = 1052;
+    const CACHE_CREATE_WITH_CONFIGURATION = 1053;
+    const CACHE_GET_OR_CREATE_WITH_CONFIGURATION = 1054;
+    const CACHE_GET_CONFIGURATION = 1055;
+    const CACHE_DESTROY = 1056;
+    // SQL and Scan Queries
+    const QUERY_SCAN = 2000;
+    const QUERY_SCAN_CURSOR_GET_PAGE = 2001;
+    const QUERY_SQL = 2002;
+    const QUERY_SQL_CURSOR_GET_PAGE = 2003;
+    const QUERY_SQL_FIELDS = 2004;
+    const QUERY_SQL_FIELDS_CURSOR_GET_PAGE = 2005;
+    const RESOURCE_CLOSE = 0;
+    // Binary Types
+    const GET_BINARY_TYPE = 3002;
+    const PUT_BINARY_TYPE = 3003;
+}
diff --git a/src/Apache/Ignite/Internal/Binary/MessageBuffer.php b/src/Apache/Ignite/Internal/Binary/MessageBuffer.php
new file mode 100644
index 0000000..920df65
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/MessageBuffer.php
@@ -0,0 +1,307 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Apache\Ignite\Type\ObjectType;
+use Brick\Math\BigInteger;
+
+class MessageBuffer
+{
+    const BYTE_ZERO = 0;
+    const BYTE_ONE = 1;
+    const BUFFER_CAPACITY_DEFAULT = 256;
+
+    const PROTOCOL_STRING_ENCODING = 'UTF-8';
+
+    private $buffer;
+    private $position;
+    private $length;
+
+    private static $isLittleEndian;
+    private static $defaultEncoding;
+
+    public static function init(): void
+    {
+        MessageBuffer::$isLittleEndian = pack('L', 1) === pack('V', 1);
+        MessageBuffer::$defaultEncoding = ini_get('default_charset');
+    }
+    
+    public function __construct(int $capacity = MessageBuffer::BUFFER_CAPACITY_DEFAULT)
+    {
+        $this->buffer = '';
+        $this->position = 0;
+        $this->length = 0;
+        $this->ensureCapacity($capacity);
+    }
+    
+    public function getLength(): int
+    {
+        return $this->length;
+    }
+    
+    public function getBuffer(): string
+    {
+        return $this->getSlice(0, $this->getLength());
+    }
+    
+    public function getSlice(int $startPos, int $length): string
+    {
+        return substr($this->buffer, $startPos, $length);
+    }
+    
+    public function getPosition(): int
+    {
+        return $this->position;
+    }
+    
+    public function setPosition(int $position): void
+    {
+        $this->ensureCapacity($position);
+        $this->position = $position;
+    }
+    
+    public function append(string &$buffer): void
+    {
+        $this->buffer .= $buffer;
+        $this->length += strlen($buffer);
+    }
+
+    public function writeByte(int $value, $signed = true): void
+    {
+        $this->writeNumber($value, ObjectType::BYTE, $signed);
+    }
+
+    public function writeShort(int $value): void
+    {
+        $this->writeNumber($value, ObjectType::SHORT);
+    }
+
+    public function writeInteger(int $value): void
+    {
+        $this->writeNumber($value, ObjectType::INTEGER);
+    }
+
+    public function writeLong(float $value): void
+    {
+        $this->writeNumber($value, ObjectType::LONG);
+    }
+
+    public function writeFloat(float $value): void
+    {
+        $this->writeNumber($value, ObjectType::FLOAT);
+    }
+
+    public function writeDouble(float $value): void
+    {
+        $this->writeNumber($value, ObjectType::DOUBLE);
+    }
+
+    public function writeNumber($value, int $type, bool $signed = true): void
+    {
+        $size = TypeInfo::getTypeInfo($type)->getSize();
+        if ($type === ObjectType::LONG && BinaryUtils::$is32BitInt) {
+            // pack longs doesn't work on 32-bit versions of PHP
+            $strValue = strrev(hex2bin(BinaryUtils::getLongHex(BigInteger::of(abs($value)), $value < 0)));
+        } else {
+            $format = $this->getNumberFormat($type, $signed);
+            $strValue = pack($format, $value);
+            $this->convertEndianness($strValue, $type);
+        }
+        if (strlen($strValue) !== $size) {
+            BinaryUtils::unsupportedType(BinaryUtils::getTypeName($type));
+        }
+        $this->writeStr($strValue);
+    }
+
+    public function writeBoolean(bool $value): void
+    {
+        $this->writeByte($value ? MessageBuffer::BYTE_ONE : MessageBuffer::BYTE_ZERO);
+    }
+
+    public function writeChar(string $value): void
+    {
+        $this->writeShort(mb_ord($value));
+    }
+
+    public function writeString(string $value, bool $encode = true): void
+    {
+        if ($encode) {
+            $value = mb_convert_encoding($value, self::PROTOCOL_STRING_ENCODING, self::$defaultEncoding);
+        }
+        $length = strlen($value);
+        $this->writeInteger($length);
+        if ($length > 0) {
+            $this->writeStr($value);
+        }
+    }
+    
+    public function writeBuffer(MessageBuffer $buffer, int $startPos, int $length): void
+    {
+        $this->writeStr($buffer->buffer, $startPos, $length);
+    }
+
+    public function readByte(bool $signed = true): int
+    {
+        return $this->readNumber(ObjectType::BYTE, $signed);
+    }
+
+    public function readShort(): int
+    {
+        return $this->readNumber(ObjectType::SHORT);
+    }
+
+    public function readInteger(): int
+    {
+        return $this->readNumber(ObjectType::INTEGER);
+    }
+
+    public function readLong(): float
+    {
+        return $this->readNumber(ObjectType::LONG);
+    }
+
+    public function readFloat(): float
+    {
+        return $this->readNumber(ObjectType::FLOAT);
+    }
+
+    public function readDouble(): float
+    {
+        return $this->readNumber(ObjectType::DOUBLE);
+    }
+
+    public function readNumber(int $type, bool $signed = true)
+    {
+        $size = BinaryUtils::getSize($type);
+        $this->ensureSize($size);
+        $strValue = substr($this->buffer, $this->position, $size);
+        if ($type === ObjectType::LONG && BinaryUtils::$is32BitInt) {
+            // unpack longs doesn't work on 32-bit versions of PHP
+            $binValue = strrev($strValue);
+            $isNegative = ord($binValue[0]) & 0x80;
+            $hexValue = bin2hex($binValue);
+            $bigIntValue = BigInteger::parse($hexValue, 16);
+            if ($isNegative) {
+                $bigIntValue = BigInteger::parse(str_pad('1', $size * 2 + 1, '0'), 16)->minus($bigIntValue);
+            }
+            $value = $bigIntValue->toFloat();
+            if ($isNegative) {
+                $value = -$value;
+            }
+        } else {
+            $this->convertEndianness($strValue, $type);
+            $value = unpack($this->getNumberFormat($type, $signed), $strValue);
+            $value = $value[1];
+        }
+        $this->position += $size;
+        return $value;
+    }
+
+    public function readBoolean(): bool
+    {
+        return $this->readByte() === MessageBuffer::BYTE_ONE;
+    }
+
+    public function readChar(): string
+    {
+        return mb_chr($this->readShort());
+    }
+
+    public function readString(bool $decode = true): string
+    {
+        $bytesCount = $this->readInteger();
+        $this->ensureSize($bytesCount);
+        $result = substr($this->buffer, $this->position, $bytesCount);
+        if ($decode) {
+            $result = mb_convert_encoding($result, self::$defaultEncoding, self::PROTOCOL_STRING_ENCODING);
+        }
+        $this->position += $bytesCount;
+        return $result;
+    }
+
+    private function getNumberFormat(int $type, bool $signed): string
+    {
+        switch ($type) {
+            case ObjectType::BYTE:
+                return $signed ? 'c' : 'C';
+            case ObjectType::SHORT:
+                return $signed ? 's' : 'S';
+            case ObjectType::INTEGER:
+                return $signed ? 'l' : 'L';
+            case ObjectType::LONG:
+                return $signed ? 'q' : 'Q';
+            case ObjectType::FLOAT:
+                return 'g';
+            case ObjectType::DOUBLE:
+                return 'e';
+            default:
+                BinaryUtils::internalError();
+        }
+        return null;
+    }
+
+    private function convertEndianness(string &$value, int $type): void
+    {
+        if (!MessageBuffer::$isLittleEndian &&
+            ($type === ObjectType::SHORT ||
+             $type === ObjectType::INTEGER ||
+             $type === ObjectType::LONG)) {
+            $value = strrev($value);
+        }
+    }
+    
+    private function writeStr(string &$buffer, int $startPos = 0, int $length = -1): void
+    {
+        if ($length < 0) {
+            $length = strlen($buffer);
+        }
+        $this->ensureCapacity($length);
+        for ($i = 0; $i < $length; $i++) {
+            $this->buffer[$this->position + $i] = $buffer[$startPos + $i];
+        }
+        if ($this->position + $length > $this->length) {
+            $this->length = $this->position + $length;
+        }
+        $this->position += $length;
+    }
+    
+    private function ensureCapacity(int $size): void
+    {
+        if ($size <= 0) {
+            return;
+        }
+        $capacity = strlen($this->buffer);
+        $newCapacity = $capacity > 0 ? $capacity : $size;
+        while ($this->position + $size > $newCapacity) {
+            $newCapacity = $newCapacity * 2;
+        }
+        if ($capacity < $newCapacity) {
+            $this->buffer .= str_repeat('0', $newCapacity - $capacity);
+        }
+    }
+
+    private function ensureSize(int $size): void
+    {
+        if ($this->position + $size > $this->getLength()) {
+            BinaryUtils::internalError('Unexpected format of response');
+        }
+    }
+}
+
+MessageBuffer::init();
diff --git a/src/Apache/Ignite/Internal/Binary/Request.php b/src/Apache/Ignite/Internal/Binary/Request.php
new file mode 100644
index 0000000..2d22646
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/Request.php
@@ -0,0 +1,85 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Apache\Ignite\Type\ObjectType;
+
+class Request
+{
+    private $id;
+    private $opCode;
+    private $payloadWriter;
+    private $payloadReader;
+    private $isHandshake;
+    
+    private static $requestId = 0;
+            
+    public function __construct(int $opCode, ?callable $payloadWriter, callable $payloadReader = null, bool $isHandshake = false)
+    {
+        $this->id = Request::getRequestId();
+        $this->opCode = $opCode;
+        $this->payloadWriter = $payloadWriter;
+        $this->payloadReader = $payloadReader;
+        $this->isHandshake = $isHandshake;
+    }
+    
+    public function getId(): int
+    {
+        return $this->id;
+    }
+    
+    public function isHandshake(): bool
+    {
+        return $this->isHandshake;
+    }
+
+    public function getMessage(): MessageBuffer
+    {
+        $message = new MessageBuffer();
+        // Skip message length
+        $messageStartPos = BinaryUtils::getSize(ObjectType::INTEGER);
+        $message->setPosition($messageStartPos);
+        if ($this->opCode >= 0) {
+            // Op code
+            $message->writeShort($this->opCode);
+            // Request id
+            $message->writeLong($this->id);
+        }
+        if ($this->payloadWriter !== null) {
+            // Payload
+            call_user_func($this->payloadWriter, $message);
+        }
+        // Message length
+        $message->setPosition(0);
+        $message->writeInteger($message->getLength() - $messageStartPos);
+        return $message;
+    }
+    
+    public function getPayloadReader(): ?callable
+    {
+        return $this->payloadReader;
+    }
+    
+    private static function getRequestId(): int
+    {
+        $result = Request::$requestId;
+        Request::$requestId++;
+        return $result;
+    }
+}
diff --git a/src/Apache/Ignite/Internal/Binary/TypeInfo.php b/src/Apache/Ignite/Internal/Binary/TypeInfo.php
new file mode 100644
index 0000000..9ab4057
--- /dev/null
+++ b/src/Apache/Ignite/Internal/Binary/TypeInfo.php
@@ -0,0 +1,312 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace Apache\Ignite\Internal\Binary;
+
+use Apache\Ignite\Type\ObjectType;
+
+class TypeInfo
+{
+    const NAME = 'name';
+    const SIZE = 'size';
+    const MIN_VALUE = 'min';
+    const MAX_VALUE = 'max';
+    const MAX_UNSIGNED_VALUE = 'max_unsigned';
+    const NULLABLE = 'nullable';
+    const ELEMENT_TYPE_CODE = 'element_type';
+    const KEEP_ELEMENT_TYPE = 'keep_element_type';
+    const MAX_INT_VALUE = 2147483647;
+
+    private $properties;
+    
+    private static $info;
+    private static $primitiveTypes;
+    
+    public static function init(): void
+    {
+        TypeInfo::$info = array(
+            ObjectType::BYTE => new TypeInfo([
+                TypeInfo::NAME => 'byte',
+                TypeInfo::SIZE => 1,
+                TypeInfo::MIN_VALUE => -128,
+                TypeInfo::MAX_VALUE => 127,
+                TypeInfo::MAX_UNSIGNED_VALUE => 0x100,
+            ]),
+            ObjectType::SHORT => new TypeInfo([
+                TypeInfo::NAME => 'short',
+                TypeInfo::SIZE => 2,
+                TypeInfo::MIN_VALUE => -32768,
+                TypeInfo::MAX_VALUE => 32767,
+                TypeInfo::MAX_UNSIGNED_VALUE => 0x10000,
+            ]),
+            ObjectType::INTEGER => new TypeInfo([
+                TypeInfo::NAME => 'integer',
+                TypeInfo::SIZE => 4,
+                TypeInfo::MIN_VALUE => -2147483648,
+                TypeInfo::MAX_VALUE => TypeInfo::MAX_INT_VALUE,
+            ]),
+            ObjectType::LONG => new TypeInfo([
+                TypeInfo::NAME => 'long',
+                TypeInfo::SIZE => 8,
+            ]),
+            ObjectType::FLOAT => new TypeInfo([
+                TypeInfo::NAME => 'float',
+                TypeInfo::SIZE => 4,
+            ]),
+            ObjectType::DOUBLE => new TypeInfo([
+                TypeInfo::NAME => 'double',
+                TypeInfo::SIZE => 8,
+            ]),
+            ObjectType::CHAR => new TypeInfo([
+                TypeInfo::NAME => 'char',
+                TypeInfo::SIZE => 2,
+            ]),
+            ObjectType::BOOLEAN => new TypeInfo([
+                TypeInfo::NAME => 'boolean',
+                TypeInfo::SIZE => 1,
+            ]),
+            ObjectType::STRING => new TypeInfo([
+                TypeInfo::NAME => 'string',
+                TypeInfo::NULLABLE => true,
+            ]),
+            ObjectType::UUID => new TypeInfo([
+                TypeInfo::NAME => 'UUID',
+                TypeInfo::SIZE => 16,
+                TypeInfo::NULLABLE => true,
+            ]),
+            ObjectType::DATE => new TypeInfo([
+                TypeInfo::NAME => 'date',
+                TypeInfo::SIZE => 8,
+                TypeInfo::NULLABLE => true,
+            ]),
+            ObjectType::BYTE_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'byte array',
+                TypeInfo::NULLABLE => true,
+                TypeInfo::ELEMENT_TYPE_CODE => ObjectType::BYTE
+            ]),
+            ObjectType::SHORT_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'short array',
+                TypeInfo::NULLABLE => true,
+                TypeInfo::ELEMENT_TYPE_CODE => ObjectType::SHORT
+            ]),
+            ObjectType::INTEGER_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'integer array',
+                TypeInfo::NULLABLE => true,
+                TypeInfo::ELEMENT_TYPE_CODE => ObjectType::INTEGER
+            ]),
+            ObjectType::LONG_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'long array',
+                TypeInfo::NULLABLE => true,
+                TypeInfo::ELEMENT_TYPE_CODE => ObjectType::LONG
+            ]),
+            ObjectType::FLOAT_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'float array',
+                TypeInfo::NULLABLE => true,
+                TypeInfo::ELEMENT_TYPE_CODE => ObjectType::FLOAT
+            ]),
+            ObjectType::DOUBLE_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'double array',
+                TypeInfo::NULLABLE => true,
+                TypeInfo::ELEMENT_TYPE_CODE => ObjectType::DOUBLE
+            ]),
+            ObjectType::CHAR_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'char array',
+                TypeInfo::NULLABLE => true,
+                TypeInfo::ELEMENT_TYPE_CODE => ObjectType::CHAR
+            ]),
+            ObjectType::BOOLEAN_ARRAY => new TypeInfo([
+                TypeInfo::NAME => 'boolean array',
+                TypeInfo::NULLABLE => true,
... 6614 lines suppressed ...