ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From isap...@apache.org
Subject [21/21] ignite git commit: IGNITE-7783: PHP thin client
Date Tue, 09 Oct 2018 14:47:36 GMT
IGNITE-7783: PHP thin client

This closes #4649

(cherry picked from commit 7d3ea1155fa26b56a814b0b236b3a343a8520694)


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/f28e4f3f
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/f28e4f3f
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/f28e4f3f

Branch: refs/heads/ignite-2.7-master
Commit: f28e4f3f980fc844a53901c539993fbf209beb92
Parents: 7c9bd23
Author: Igor Sapego <isapego@apache.org>
Authored: Tue Oct 9 16:57:05 2018 +0300
Committer: Igor Sapego <isapego@apache.org>
Committed: Tue Oct 9 17:46:50 2018 +0300

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


http://git-wip-us.apache.org/repos/asf/ignite/blob/f28e4f3f/modules/platforms/php/.gitignore
----------------------------------------------------------------------
diff --git a/modules/platforms/php/.gitignore b/modules/platforms/php/.gitignore
new file mode 100644
index 0000000..4f4acd3
--- /dev/null
+++ b/modules/platforms/php/.gitignore
@@ -0,0 +1,2 @@
+vendor/
+composer.lock
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/ignite/blob/f28e4f3f/modules/platforms/php/README.md
----------------------------------------------------------------------
diff --git a/modules/platforms/php/README.md b/modules/platforms/php/README.md
new file mode 100644
index 0000000..d6cd51d
--- /dev/null
+++ b/modules/platforms/php/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).


Mime
View raw message