{"id":16390156,"url":"https://github.com/baachi/couchdb","last_synced_at":"2025-06-12T03:40:29.653Z","repository":{"id":2104969,"uuid":"3046372","full_name":"Baachi/CouchDB","owner":"Baachi","description":"CouchDB Client for PHP \u003e=5.5","archived":false,"fork":false,"pushed_at":"2018-04-16T06:25:16.000Z","size":167,"stargazers_count":12,"open_issues_count":11,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T04:35:06.603Z","etag":null,"topics":["couchdb-client","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Baachi.png","metadata":{"files":{"readme":"Readme.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-24T23:18:03.000Z","updated_at":"2019-02-20T05:48:19.000Z","dependencies_parsed_at":"2022-09-08T01:50:23.602Z","dependency_job_id":null,"html_url":"https://github.com/Baachi/CouchDB","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baachi%2FCouchDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baachi%2FCouchDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baachi%2FCouchDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Baachi%2FCouchDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Baachi","download_url":"https://codeload.github.com/Baachi/CouchDB/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221811386,"owners_count":16884305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["couchdb-client","php"],"created_at":"2024-10-11T04:35:05.766Z","updated_at":"2024-10-28T09:10:07.126Z","avatar_url":"https://github.com/Baachi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CouchDB #\nA CouchDB Client for \u003e=PHP 5.5 with event system.\n\nInspired by [Doctrine/MongoDB](https://github.com/Doctrine/mongodb) and [Doctrine/CouchDB](https://github.com/Doctrine/couchdb-odm)\n\n| Service           | Status                                                                                                                                                                                        |\n| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Travis CI         | [![Build Status](https://secure.travis-ci.org/Baachi/CouchDB.png)](http://travis-ci.org/Baachi/CouchDB)                                                                                       |\n| Scrutinizer       | [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/Baachi/CouchDB/badges/quality-score.png?s=5c5013c398de5097793c1210a87a6d94493006f2)](https://scrutinizer-ci.com/g/Baachi/CouchDB/) |\n| Code Coverage     | [![Code Coverage](https://scrutinizer-ci.com/g/Baachi/CouchDB/badges/coverage.png?s=61e18d0b5850e702442bef89fe66aee830a4ecd4)](https://scrutinizer-ci.com/g/Baachi/CouchDB/)                  |\n| SensioLabsInsight | [![SensioLabsInsight](https://insight.sensiolabs.com/projects/9a96763c-c938-48a6-a9fa-ac77efb7197d/mini.png)](https://insight.sensiolabs.com/projects/9a96763c-c938-48a6-a9fa-ac77efb7197d)   |\n| Style CI          | [![StyleCI](https://styleci.io/repos/3046372/shield)](https://styleci.io/repos/3046372)                                                                                                       |\n\n## Installation ##\n__Composer__\n\nYou can install CouchDB Client over composer. Add the following line into your ```composer.json``` file.\n\n```\n$ composer require bachi/couchdb\n```\n\n__Don't use composer?__\n\nStart to disover composer now! https://getcomposer.org\n\n## Usage ##\n\n### Initialize ###\n\n```php\n$client = new \\GuzzleHttp\\Client(['base_uri' =\u003e 'http://localhost:5984', 'http_errors' =\u003e false]);\n$connection = new \\CouchDB\\Connection($client);\n```\n\n### Creates a database ###\n\n```php\n$database = $conn-\u003ecreateDatabase('foobar');\n// or with magic method\n$database = $conn-\u003efoobar;\n```\n\n### Get a database instance ###\n\n```php\n$database = $conn-\u003eselectDatabase('foobar');\n// or with magic method\n$database = $conn-\u003efoobar;\n```\n### Delete a database ###\n\n```php\nif (true === $conn-\u003ehasDatabase('foobar')) {\n    $conn-\u003edropDatabase('foobar');\n}\n// or with magic methods\nif (isset($conn-\u003efoobar)){\n    unset($conn-\u003efoobar);\n}\n```\n\n## Unit Tests (PHPUnit) ##\nThe testsuite can you find in the ```tests``` folder.\n\nRun the testsuite:\n\n```\nphpunit\n```\n\nIt is green?\n\n## Credits ##\n\n * Markus Bachmann \u003cmarkus.bachmann@bachi.biz\u003e\n * [All contributors] (https://github.com/Baachi/CouchDB/contributors)\n\n## License ##\nCouchDB Client is released under the MIT License. See the bundled LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaachi%2Fcouchdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaachi%2Fcouchdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaachi%2Fcouchdb/lists"}