PHP code example of griddb / php-client
1. Go to this page and download the library: Download griddb/php-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
griddb / php-client example snippets
composer
{
""griddb/php-client": "~0.0.3"
},
"scripts": {
"post-install-cmd": [
"cd vendor/griddb/php-client && make"
],
"post-update-cmd": [
"cd vendor/griddb/php-client && make"
]
},
"autoload": {
"files": ["vendor/griddb/php-client/griddb_php_client.php"]
}
}
$ cp vendor/griddb/php-client/sample/sample1.php .
$ php sample1.php <GridDB notification address> <GridDB notification port>
<GridDB cluster name> <GridDB user> <GridDB password>
-->Person: name=name02 status=false count=2 lob=ABCDEFGHIJ