{"id":46574,"date":"2018-09-25T00:00:00","date_gmt":"2018-09-25T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/blog\/getting-started-with-the-griddb-php-client\/"},"modified":"2025-11-13T12:54:37","modified_gmt":"2025-11-13T20:54:37","slug":"getting-started-with-the-griddb-php-client","status":"publish","type":"post","link":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/getting-started-with-the-griddb-php-client\/","title":{"rendered":"Getting Started with the GridDB PHP Client"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>GridDB has released a <em>database connector <\/em>for the PHP programming language. Like the Python, Ruby, and Go API&#8217;s for GridDB, it was built using the <a title=\"SWIG website\" href=\"http:\/\/www.swig.org\/\">SWIG<\/a> library. The connector supports versions of PHP 7 or higher, and can work on CentOS version 7.4 or higher.<br \/>\nPHP or\u00c2\u00a0<span class=\"ILfuVd NA6bn\">Hypertext Preprocessor<\/span> is an open-source programming language developed by Rasmus Lerdorf.<br \/>\nIn this post, we will go through common steps involved in setting up and testing a database connector for GridDB, in this case it will be for our <strong>PHP Client<\/strong>.<\/p>\n<div id=\"toc-block\" style=\"background: #f9f9f9 none repeat scroll 0 0; border: 1px solid #aaa; padding: 20px; width: auto; display: table; margin-bottom: 1em;\">\n<h5 id=\"toc\">Table of Contents<\/h5>\n<div class=\"toc_container\">\n<ul style=\"list-style-type: none !important;\">\n<li style=\"list-style-type: none;\">\n<ul style=\"list-style-type: none !important;\">\n<li>1 \u00c2\u00a0\u00c2\u00a0\u00c2\u00a0<a href=\"#setup-php\">PHP Client Setup and Installation<\/a><\/li>\n<li>2 \u00c2\u00a0\u00c2\u00a0 <a href=\"#connection-php\">Connecting to GridDB with the PHP Client<\/a><\/li>\n<li>3 \u00c2\u00a0\u00c2\u00a0 <a href=\"#row-schema\">Creating Row Schemas in PHP<\/a><\/li>\n<li>4\u00c2\u00a0 \u00c2\u00a0 <a href=\"#query-data\">Queries and Data Management<\/a><\/li>\n<li>5\u00c2\u00a0 \u00c2\u00a0 <a href=\"#refs\">References<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<h3 id=\"setup-php\">PHP Client Setup and Installation<\/h3>\n<p>Begin by cloning the github repository for the PHP Client.<\/p>\n<pre class=\"prettyprint\">$ git clone https:\/\/github.com\/griddb\/php_client.git\n<\/pre>\n<p>To build the PHP Client, you will need to have the <a title=\"C client Github Page\" href=\"https:\/\/github.com\/griddb\/c_client\">GridDB C Client<\/a> built and installed. You can follow this <a href=\"https:\/\/griddb.net\/en\/blog\/using-griddbs-cpythonruby-apis\/#c-intro\">blog post<\/a> on how to set up and test the C Client if you are not familiar.<\/p>\n<ul id=\"PHP-version-note\">\n<li><b>NOTE: <\/b>before you <code>make<\/code> and build the PHP client on your system, ensure that you have PHP <b>version 7 or higher<\/b>. You can follow instructions on this <a title=\"Installing PHP 7 on Centos 7\" href=\"https:\/\/linuxize.com\/post\/install-php-7-on-centos-7\/\">page<\/a> which explains how to get and configure PHP version 7.<\/li>\n<\/ul>\n<p>Now that you have obtained the source code from Github, you can simply follow the instructions in the <code>README<\/code> on the PHP Client\u00e2\u20ac\u2122s <a title=\"PHP client Github repository\" href=\"https:\/\/github.com\/griddb\/php_client\">Github page<\/a>.<\/p>\n<h3 id=\"connection-php\">Connecting to GridDB with the PHP Client<\/h3>\n<p>If you wish to connect to GridDB in a PHP program, simply import the PHP API with: <code> include('griddb_php_client.php');<\/code> The name of the GridDB package for PHP is <code>StoreFactory<\/code>.<br \/>\nFrom there you can obtain an instance of it using <code>get_default();<\/code> and connect it to your GridDB cluster with the factory instance&#8217;s <code>-&gt;get_store<\/code> method. The parameters you give this method are a <code>array(<\/code>object. The elements in the array are simply the configuration fields you want to specify to connect to GridDB.<br \/>\nNote that the port\u00c2\u00a0<b>must be specified as an integer<\/b>\u00c2\u00a0while all the other database configuration values like host or cluster name can be strings.<\/p>\n<pre class=\"prettyprint\">&lt;?php\n  include('griddb_php_client.php');\n  $factory = StoreFactory::get_default();\n  $update = true;\n  try {\n      \/\/Get GridStore object\n      $gridstore = $factory-&gt;get_store(array(\"notificationAddress\" =&gt; $argv[1],\n                        \"notificationPort\" =&gt; $argv[2],\n                        \"clusterName\" =&gt; $argv[3],\n                        \"user\" =&gt; $argv[4],\n                        \"password\" =&gt; $argv[5]\n                    ));\n    } catch(GSException $e){\n        echo($e-&gt;what().\"n\");\n        echo($e-&gt;get_code().\"n\");\n    }\n?&gt;\n<\/pre>\n<h3 id=\"row-schema\">Creating Row Schemas in PHP<\/h3>\n<p>Schemas for containers and rows can be created using arrays with GridDB API types.<br \/>\nYou can simply use <i>two-dimensional array<\/i>\u00c2\u00a0of interfaces to map the column types for your container. From there you can create a container schema (<code>array(array())<\/code>) by using <code>-&gt;put_container()<\/code> method. You can use and insert these\u00c2\u00a0<i>schemas<\/i>\u00c2\u00a0to create containers.<br \/>\n<b>Rows<\/b>\u00c2\u00a0can be modeled using GridDB API specific functions. To create a row just create a row object (<code> $row = $ts-&gt;create_row();<\/code>) and then set each field using the GridDB API functions,\u00c2\u00a0and have each index mapped to each corresponding value.<br \/>\nFor example, if in a container the second column stores a boolean with the value of <code>false<\/code>, then the value should be mapped as <code>$row-&gt;set_field_by_bool(1, false);<\/code>.<\/p>\n<pre class=\"prettyprint\">\/\/ Creating container info\n#Create ContainerInfo\n        $conInfo =\n\/\/ Creating schema for our TimeSeries Container\n\/\/ The first column is always the row key\n#Create TimeSeries\n        $ts = $gridstore-&gt;put_container(\"point01\", array(array(\"timestamp\" =&gt; GS_TYPE_TIMESTAMP),\n                        array(\"active\" =&gt; GS_TYPE_BOOL),\n                        array(\"voltage\" =&gt; GS_TYPE_DOUBLE)),\n                        GS_CONTAINER_TIME_SERIES);\n        #Create and set row data\n        $row = $ts-&gt;create_row();\n        $row-&gt;set_field_by_timestamp(0, TimestampUtils::current());\n        $row-&gt;set_field_by_bool(1, false);\n        $row-&gt;set_field_by_double(2, 100);\n        #Put row to timeseries with current timestamp\n        $ts-&gt;put_row($row);\n<\/pre>\n<p>You can also obtain a\u00c2\u00a0<b>Row<\/b>\u00c2\u00a0with a simple call to the <code>get_next();<\/code> method on the container with the name of the row object. As mentioned before, a row is created using GridDB\u00c2\u00a0 API methods, all one needs to do to access the column value is to reference the\u00c2\u00a0<i>row-index<\/i>\u00c2\u00a0of the column.<\/p>\n<pre class=\"prettyprint\">        \/\/Create Collection\n        $col = $gridstore-&gt;put_container(\"col01\", array(array(\"name\" =&gt; GS_TYPE_STRING),\n                  array(\"status\" =&gt; GS_TYPE_BOOL),\n                  array(\"count\" =&gt; GS_TYPE_LONG),\n                  array(\"lob\" =&gt; GS_TYPE_BLOB)),\n                  GS_CONTAINER_COLLECTION);\n        \/\/Change auto commit mode to false\n        $col-&gt;set_auto_commit(false);\n        \/\/Set an index on the Row-key Column\n        $col-&gt;create_index(\"name\", GS_INDEX_FLAG_DEFAULT);\n        \/\/Set an index on the Column\n        $col-&gt;create_index(\"count\", GS_INDEX_FLAG_DEFAULT);\n        \/\/Create and set row data\n        $row = $col-&gt;create_row(); \/\/Create row for refer\n        $row-&gt;set_field_by_string(0, \"name01\");\n        $row-&gt;set_field_by_bool(1, False);\n        $row-&gt;set_field_by_long(2, 1);\n        $row-&gt;set_field_by_blob(3, \"ABCDEFGHIJ\");\n        \/\/Put row: RowKey is \"name01\"\n        $col-&gt;put_row($row);\n        $col-&gt;commit();\n        $row2 = $col-&gt;create_row(); \/\/Create row for refer\n        $col-&gt;get_row_by_string(\"name01\", True, $row2); \/\/Get row with RowKey \"name01\"\n        $col-&gt;delete_row_by_string(\"name01\"); \/\/Remove row with RowKey \"name01\"\n        \/\/Put row: RowKey is \"name02\"\n        $col-&gt;put_row_by_string(\"name02\", $row);\n        $col-&gt;commit();\n        \/\/Create normal query\n        $query = $col-&gt;query(\"select * where name = 'name02'\");\n        \/\/Execute query\n        $rrow = $col-&gt;create_row();\n        $rs = $query-&gt;fetch($update);\n        while ($rs-&gt;has_next()){\n            $rs-&gt;get_next($rrow);\n            $name = $rrow-&gt;get_field_as_string(0);\n            $status = $rrow-&gt;get_field_as_bool(1);\n            $count = $rrow-&gt;get_field_as_long(2) + 1;\n            $lob = $rrow-&gt;get_field_as_blob(3);\n            echo(\"Person: name=$name status=\");\n            echo $status ? 'true' : 'false';\n            echo(\" count=$count lob=$lobn\");\n            \/\/Update row\n            $rrow-&gt;set_field_by_long(2, $count);\n            $rs-&gt;update_current($rrow);\n        }\n        \/\/End transaction\n        $col-&gt;commit();\n<\/pre>\n<h3 id=\"query-data\">Queries and Data Management<\/h3>\n<p>Once you have your containers populated with data and inserted into GridDB, you are ready to query and fetch your data. Similar to the Python or Java APIs, all you need to is to construct a\u00c2\u00a0<b>Query object<\/b>\u00c2\u00a0(by using the query method from a container object <code>$query = $ts-&gt;query(\"select * \");<\/code>) with the specific query you would like to issue to your container. Once that is done, simply fetch the query\u00e2\u20ac\u2122s results and store it in the query object.<\/p>\n<ul>\n<li><b>Note: <\/b> if you want to select specific rows to update, you must set the <i>commit-mode<\/i> of the container you are trying update to <i>false<\/i>.<\/li>\n<\/ul>\n<p>Once you have finished with updating row values, you can simply <code>-&gt;commit();<\/code> the changes.<\/p>\n<h3>Conclusion<\/h3>\n<p>It should now be quite easy to connect and manage your GridDB cluster using PHP. With all the various utilities offered by the GridDB PHP Client,\u00c2\u00a0storing data and developing high-performance PHP applications with GridDB should now be possible.<\/p>\n<h3 id=\"refs\">References<\/h3>\n<ul>\n<li>The source code for the GridDB PHP client can be found on the <a href=\"https:\/\/github.com\/griddb\/php_client\" title=\"PHP client Github Page\">official Github repository<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction GridDB has released a database connector for the PHP programming language. Like the Python, Ruby, and Go API&#8217;s for GridDB, it was built using the SWIG library. The connector supports versions of PHP 7 or higher, and can work on CentOS version 7.4 or higher. PHP or\u00c2\u00a0Hypertext Preprocessor is an open-source programming language developed [&hellip;]<\/p>\n","protected":false},"author":776,"featured_media":25790,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[121],"tags":[],"class_list":["post-46574","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Getting Started with the GridDB PHP Client | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"Introduction GridDB has released a database connector for the PHP programming language. Like the Python, Ruby, and Go API&#039;s for GridDB, it was built using\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started with the GridDB PHP Client | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"Introduction GridDB has released a database connector for the PHP programming language. Like the Python, Ruby, and Go API&#039;s for GridDB, it was built using\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-25T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-13T20:54:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2018\/09\/blog_title_30.png\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"490\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Courtney Maroney\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Courtney Maroney\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/\"},\"author\":{\"name\":\"Courtney Maroney\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/9f15d0ca4400fd65ce66eb977d088303\"},\"headline\":\"Getting Started with the GridDB PHP Client\",\"datePublished\":\"2018-09-25T07:00:00+00:00\",\"dateModified\":\"2025-11-13T20:54:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/\"},\"wordCount\":683,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/\",\"url\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/\",\"name\":\"Getting Started with the GridDB PHP Client | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"datePublished\":\"2018-09-25T07:00:00+00:00\",\"dateModified\":\"2025-11-13T20:54:37+00:00\",\"description\":\"Introduction GridDB has released a database connector for the PHP programming language. Like the Python, Ruby, and Go API's for GridDB, it was built using\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"contentUrl\":\"\/wp-content\/uploads\/2018\/09\/blog_title_30.png\",\"width\":870,\"height\":490},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/9f15d0ca4400fd65ce66eb977d088303\",\"name\":\"Courtney Maroney\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/93d4237270f1c2eb5fd2616fbe26aa76d924353f32506f64f746b84d726a54e3?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/93d4237270f1c2eb5fd2616fbe26aa76d924353f32506f64f746b84d726a54e3?s=96&d=mm&r=g\",\"caption\":\"Courtney Maroney\"},\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/author\/courtney\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Getting Started with the GridDB PHP Client | GridDB: Open Source Time Series Database for IoT","description":"Introduction GridDB has released a database connector for the PHP programming language. Like the Python, Ruby, and Go API's for GridDB, it was built using","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/","og_locale":"en_US","og_type":"article","og_title":"Getting Started with the GridDB PHP Client | GridDB: Open Source Time Series Database for IoT","og_description":"Introduction GridDB has released a database connector for the PHP programming language. Like the Python, Ruby, and Go API's for GridDB, it was built using","og_url":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2018-09-25T07:00:00+00:00","article_modified_time":"2025-11-13T20:54:37+00:00","og_image":[{"width":870,"height":490,"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2018\/09\/blog_title_30.png","type":"image\/png"}],"author":"Courtney Maroney","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"Written by":"Courtney Maroney","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/"},"author":{"name":"Courtney Maroney","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/9f15d0ca4400fd65ce66eb977d088303"},"headline":"Getting Started with the GridDB PHP Client","datePublished":"2018-09-25T07:00:00+00:00","dateModified":"2025-11-13T20:54:37+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/"},"wordCount":683,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","articleSection":["Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/","url":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/","name":"Getting Started with the GridDB PHP Client | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","datePublished":"2018-09-25T07:00:00+00:00","dateModified":"2025-11-13T20:54:37+00:00","description":"Introduction GridDB has released a database connector for the PHP programming language. Like the Python, Ruby, and Go API's for GridDB, it was built using","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/blog\/getting-started-with-the-griddb-php-client\/#primaryimage","url":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","contentUrl":"\/wp-content\/uploads\/2018\/09\/blog_title_30.png","width":870,"height":490},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/9f15d0ca4400fd65ce66eb977d088303","name":"Courtney Maroney","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/93d4237270f1c2eb5fd2616fbe26aa76d924353f32506f64f746b84d726a54e3?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/93d4237270f1c2eb5fd2616fbe26aa76d924353f32506f64f746b84d726a54e3?s=96&d=mm&r=g","caption":"Courtney Maroney"},"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/author\/courtney\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts\/46574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/users\/776"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/comments?post=46574"}],"version-history":[{"count":1,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts\/46574\/revisions"}],"predecessor-version":[{"id":51264,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts\/46574\/revisions\/51264"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/media\/25790"}],"wp:attachment":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/media?parent=46574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/categories?post=46574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/tags?post=46574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}