#!/usr/bin/php -q Getting databases infos : $databases = $client->listDatabases(); Database list fetched : Array ( [0] => albums [1] => students [2] => test [3] => books [4] => catalog-a [5] => catalog-b [6] => catalog-c [7] => mycouchshop [8] => _users ) Creating database http://ben:ben1@localhost:5984/example: $result = $client->createDatabase(); Database successfully created. CouchDB sent the response :stdClass Object ( [ok] => 1 ) Just to see exceptions, we try to create the database (that already exist...) We issued the request, but couch server returned an error. We can have HTTP Status code returned by couchDB using $e->getCode() : 412 We can have error message returned by couchDB using $e->getMessage() : Precondition Failed - The database could not be created, the file already exists. (PUT /example []) Finally, we can have CouchDB's complete response body using $e->getBody() : stdClass Object ( [error] => file_exists [reason] => The database could not be created, the file already exists. ) Getting database informations Database informations : stdClass Object ( [db_name] => example [doc_count] => 0 [doc_del_count] => 0 [update_seq] => 0 [purge_seq] => 0 [compact_running] => [disk_size] => 79 [instance_start_time] => 1381725471231214 [disk_format_version] => 5 [committed_update_seq] => 0 ) Displaying database disk usage using $db_infos->disk_size: 79 bytes Deleting database Database deleted. CouchDB response: stdClass Object ( [ok] => 1 ) To learn more database features : http://github.com/dready92/PHP-on-Couch/blob/master/doc/couch_client-database.md