{"id":1761,"date":"2014-12-16T18:48:38","date_gmt":"2014-12-16T18:48:38","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=1761"},"modified":"2025-06-13T23:51:57","modified_gmt":"2025-06-14T06:51:57","slug":"php-sdk-200-developer-preview","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/","title":{"rendered":"PHP SDK 2.0.0 Developer Preview"},"content":{"rendered":"<p>Over the past few months, the SDK development team has been working on defining a new interface for interacting with the SDKs, dubbed SDK 2.0 (not directly related to PHP SDK 2.0.0 which merely happens to implement a large portion of that specification). The existing SDKs were all designed around existing interfaces that were targeted towards the memcached project, and as such were very cache oriented and no longer effectively reflected the more document oriented nature of Couchbase Server 2.0. As such, we set out to define a new, more modern interface which would better model those traits.<\/p>\n<p>Alongside this effort to revamp the overall SDK interface, the PHP SDK needed some love and attention, and so we got o work on revamping the PHP SDK itself. This ended up consisting of a complete rewrite from the ground up, and with this I am now happy to pass this on to developers to try hopefully receive some feedback.<\/p>\n<h2>New Features<\/h2>\n<h3>The API<\/h3>\n<p>Because of the ancient roots of the previous PHP SDK, there were unfortunately a great deal of intricacies with the behaviour of various functions, such as odd parameter ordering, inconsistent options between similar functions and duplication of behaviour. We now implement a uniform interface, here are a couple of quick examples of the new APIs.<\/p>\n<p>Opening a bucket:<\/p>\n<div class=\"highlight highlight-php\" style=\"border: 0px;font-family: Helvetica, arial, freesans, clean, sans-serif;line-height: 28.33333396911621px\">\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace\">$cb = new CouchbaseCluster();<br \/>$db = $cb-&gt;openBucket(&#8216;default&#8217;);<\/div>\n<\/div>\n<\/div>\n<p>Insert a document:<\/p>\n<div class=\"highlight highlight-php\" style=\"border: 0px;font-family: Helvetica, arial, freesans, clean, sans-serif;line-height: 28.33333396911621px\">\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace\">$db-&gt;insert(&#8216;test_key&#8217;, &#8216;some value&#8217;);<\/div>\n<\/div>\n<\/div>\n<p>Retrieving a document (not that the result of the operation is a Result object, with the document value stored in the\u00a0value\u00a0property):<\/p>\n<div class=\"highlight highlight-php\" style=\"border: 0px;font-family: Helvetica, arial, freesans, clean, sans-serif;line-height: 28.33333396911621px\">\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace\">$result = $db-&gt;get(&#8216;test_key&#8217;);<\/div>\n<\/div>\n<\/div>\n<p>Handling errors is also now consistent and reliable across all API calls.<\/p>\n<div class=\"highlight highlight-php\" style=\"border: 0px;font-family: Helvetica, arial, freesans, clean, sans-serif;line-height: 28.33333396911621px\">\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace\">\u00a0 \u00a0 try {<br \/>\u00a0 \u00a0 \u00a0 \u00a0 $result = $db-&gt;get(&#8216;test_key&#8217;);<br \/>\u00a0 \u00a0 } catch (Exception $e) {<br \/>\u00a0 \u00a0 \u00a0 \u00a0 \/\/ Exception object with message,code properties.<br \/>\u00a0 \u00a0 }<\/div>\n<\/div>\n<\/div>\n<h3>Transcoder support<\/h3>\n<p>We have also added full transcoder support, allowing you to provide custom serialization and deserialization strategies for any non-standard types you are using in your environment.<\/p>\n<p>To see some examples of this, take a look at the transcoders example (<a href=\"https:\/\/github.com\/couchbaselabs\/php-couchbase\/blob\/master\/examples\/transcoders\/index.php\" rel=\"noreferrer\">https:\/\/github.com\/couchbaselabs\/php-couchbase\/blob\/master\/examples\/transcoders\/index.php<\/a>), or alternatively take a look at the Couchbase.class.php wrapper class (in the source root) where you will find the libraries default transcoders.<\/p>\n<h2>Documentation<\/h2>\n<p>The documentation describing the full API is available to peruse here:<\/p>\n<p><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-docs\/\" rel=\"noreferrer\">https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-docs\/<\/a><\/p>\n<h2>Get It<\/h2>\n<p>If you are on a linux system, to install the developer preview version of the library, simply grab the source code linked below, then build and install it:<\/p>\n<div class=\"highlight highlight-bash\" style=\"border: 0px;font-family: Helvetica, arial, freesans, clean, sans-serif;line-height: 28.33333396911621px\">\n<div class=\"geshifilter\">\n<div class=\"text geshifilter-text\" style=\"font-family:monospace\">phpize<br \/>.\/configure &#8211;enable-couchbase<br \/>make <strong>&amp;&amp;<\/strong> make install<\/div>\n<\/div>\n<\/div>\n<p>If you are on a Windows system, you can opt to download the tarball and build the source yourself. Or alternatively there are links to the popular build types below as well.<\/p>\n<div class=\"responsive-table\">\n<table style=\"font-family:helvetica,arial,freesans,clean,sans-serif;line-height:28.33333396911621px;margin:15px 0px;overflow:auto;width:100%\">\n<thead>\n<tr>\n<th>Build<\/th>\n<th>Download<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Source Code<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.3 NTS vc9 x86<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.3-nts-vc9-x86.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.3-nts-vc9-x86.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.3 ZTS vc9 x86<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.3-zts-vc9-x86.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.3-zts-vc9-x86.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.4 NTS vc9 x86<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.4-nts-vc9-x86.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.4-nts-vc9-x86.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.4 ZTS vc9 x86<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.4-zts-vc9-x86.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.4-zts-vc9-x86.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.5 NTS vc11 x64<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.5-nts-vc11-x64.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.5-nts-vc11-x64.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.5 ZTS vc11 x64<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.5-zts-vc11-x64.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.5-zts-vc11-x64.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.5 NTS vc11 x86<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.5-nts-vc11-x86.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.5-nts-vc11-x86.zip<\/a><\/td>\n<\/tr>\n<tr>\n<td>Windows PHP 5.5 ZTS vc11 x86<\/td>\n<td><a href=\"https:\/\/sdk-snapshots.couchbase.com\/php\/php_couchbase-2.0.0dp1-5.5-zts-vc11-x86.zip\" rel=\"noreferrer\">php_couchbase-2.0.0dp1-5.5-zts-vc11-x86.zip<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>NOTE: You MUST have libcouchbase installed prior to the installation of the php extension.<\/p>\n<p>If you encounter any issues, please post directly to the Couchbase Communities site at\u00a0<a href=\"https:\/\/www.couchbase.com\/communities\/php\/\" rel=\"noreferrer\">https:\/\/www.couchbase.com\/communities\/php<\/a>. Additionally, bugs can be reported directly through our issues tracker available here:\u00a0<a href=\"https:\/\/www.couchbase.com\/issues\/browse\/PCBC\/\" rel=\"noreferrer\">https:\/\/www.couchbase.com\/issues\/browse\/PCBC<\/a><\/p>\n<p>I hope you enjoy!<\/p>\n<p>Cheers! Brett<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the past few months, the SDK development team has been working on defining a new interface for interacting with the SDKs, dubbed SDK 2.0 (not directly related to PHP SDK 2.0.0 which merely happens to implement a large portion [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[9408],"tags":[1393,1316],"ppma_author":[9004],"class_list":["post-1761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-api","tag-error-handling"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.8 (Yoast SEO v25.8) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP SDK 2.0.0 Developer Preview - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP SDK 2.0.0 Developer Preview\" \/>\n<meta property=\"og:description\" content=\"Over the past few months, the SDK development team has been working on defining a new interface for interacting with the SDKs, dubbed SDK 2.0 (not directly related to PHP SDK 2.0.0 which merely happens to implement a large portion [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-12-16T18:48:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T06:51:57+00:00\" \/>\n<meta name=\"author\" content=\"Brett Lawson, Principal Software Engineer, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brett Lawson, Principal Software Engineer, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/\"},\"author\":{\"name\":\"Brett Lawson, Principal Software Engineer, Couchbase\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/5cfc2fbf25776be2a027a474562be02f\"},\"headline\":\"PHP SDK 2.0.0 Developer Preview\",\"datePublished\":\"2014-12-16T18:48:38+00:00\",\"dateModified\":\"2025-06-14T06:51:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/\"},\"wordCount\":625,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"keywords\":[\"API\",\"Error handling\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/\",\"name\":\"PHP SDK 2.0.0 Developer Preview - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2014-12-16T18:48:38+00:00\",\"dateModified\":\"2025-06-14T06:51:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP SDK 2.0.0 Developer Preview\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/5cfc2fbf25776be2a027a474562be02f\",\"name\":\"Brett Lawson, Principal Software Engineer, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/ee3586f0c112c20e863af447d44dec8f\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6aec1ba24ef7558a248dcde7b7a18b15b06e2885b24b663906a448634066c1c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6aec1ba24ef7558a248dcde7b7a18b15b06e2885b24b663906a448634066c1c4?s=96&d=mm&r=g\",\"caption\":\"Brett Lawson, Principal Software Engineer, Couchbase\"},\"description\":\"Brett Lawson is a Principal Software Engineer at Couchbase. Brett is responsible for the design and development of the Couchbase Node.js and PHP clients as well as playing a role in the design and development of the C library, libcouchbase.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/author\/brett-lawson\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"PHP SDK 2.0.0 Developer Preview - The Couchbase Blog","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:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/","og_locale":"en_US","og_type":"article","og_title":"PHP SDK 2.0.0 Developer Preview","og_description":"Over the past few months, the SDK development team has been working on defining a new interface for interacting with the SDKs, dubbed SDK 2.0 (not directly related to PHP SDK 2.0.0 which merely happens to implement a large portion [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/","og_site_name":"The Couchbase Blog","article_published_time":"2014-12-16T18:48:38+00:00","article_modified_time":"2025-06-14T06:51:57+00:00","author":"Brett Lawson, Principal Software Engineer, Couchbase","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Brett Lawson, Principal Software Engineer, Couchbase","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/"},"author":{"name":"Brett Lawson, Principal Software Engineer, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/5cfc2fbf25776be2a027a474562be02f"},"headline":"PHP SDK 2.0.0 Developer Preview","datePublished":"2014-12-16T18:48:38+00:00","dateModified":"2025-06-14T06:51:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/"},"wordCount":625,"commentCount":2,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","keywords":["API","Error handling"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/","url":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/","name":"PHP SDK 2.0.0 Developer Preview - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2014-12-16T18:48:38+00:00","dateModified":"2025-06-14T06:51:57+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/php-sdk-200-developer-preview\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP SDK 2.0.0 Developer Preview"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/5cfc2fbf25776be2a027a474562be02f","name":"Brett Lawson, Principal Software Engineer, Couchbase","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/ee3586f0c112c20e863af447d44dec8f","url":"https:\/\/secure.gravatar.com\/avatar\/6aec1ba24ef7558a248dcde7b7a18b15b06e2885b24b663906a448634066c1c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6aec1ba24ef7558a248dcde7b7a18b15b06e2885b24b663906a448634066c1c4?s=96&d=mm&r=g","caption":"Brett Lawson, Principal Software Engineer, Couchbase"},"description":"Brett Lawson is a Principal Software Engineer at Couchbase. Brett is responsible for the design and development of the Couchbase Node.js and PHP clients as well as playing a role in the design and development of the C library, libcouchbase.","url":"https:\/\/www.couchbase.com\/blog\/author\/brett-lawson\/"}]}},"authors":[{"term_id":9004,"user_id":31,"is_guest":0,"slug":"brett-lawson","display_name":"Brett Lawson, Principal Software Engineer, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/6aec1ba24ef7558a248dcde7b7a18b15b06e2885b24b663906a448634066c1c4?s=96&d=mm&r=g","author_category":"","last_name":"Lawson","first_name":"Brett","job_title":"","user_url":"","description":"Brett Lawson is a Principal Software Engineer at Couchbase. Brett is responsible for the design and development of the Couchbase Node.js and PHP clients as well as playing a role in the design and development of the C library, libcouchbase."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/1761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=1761"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/1761\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=1761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=1761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=1761"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=1761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}