PHPackages                             hedii/zotero-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hedii/zotero-api

ActiveLibrary[API Development](/categories/api)

hedii/zotero-api
================

A php wrapper for zotero web api.

1.1.0(9y ago)1334.4k6[2 issues](https://github.com/hedii/zotero-api/issues)[1 PRs](https://github.com/hedii/zotero-api/pulls)MITPHPPHP &gt;=5.6

Since Jul 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hedii/zotero-api)[ Packagist](https://packagist.org/packages/hedii/zotero-api)[ Docs](https://github.com/hedii/zotero-api)[ RSS](/packages/hedii-zotero-api/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/5c488ca7b0fa50d9c37778dccae049874d5b1f4dac062c75058e2d279858ad2b/68747470733a2f2f7472617669732d63692e6f72672f68656469692f7a6f7465726f2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hedii/zotero-api)

Zotero Api
==========

[](#zotero-api)

A php wrapper for zotero web api.

Table of contents
-----------------

[](#table-of-contents)

- [Table of contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
    - [Instantiation](#instantiation)
    - [User and group libraries](#user-and-group-libraries)
    - [Items](#items)
        - [Multiple items](#multiple-items)
        - [Single item](#single-item)
        - [Top level items](#top-level-items)
        - [Items in the trash](#items-in-the-trash)
        - [Child items](#child-items)
        - [Item tags](#item-tags)
    - [Collections](#collections)
        - [Multiple collections](#multiple-collections)
        - [Single collection](#single-collection)
        - [Items in a collection](#items-in-a-collection)
        - [Top level items in a collection](#top-level-items-in-a-collection)
        - [Collection tags](#collection-tags)
        - [Sub collections](#sub-collections)
    - [Versions](#versions)
    - [Tags](#tags)
    - [Searches](#searches)
        - [Multiple searches](#multiple-searches)
        - [Single search](#single-search)
    - [Key](#key)
    - [Groups](#groups)
    - [Sorting and pagination](#sorting-and-pagination)
        - [Sorting](#sorting)
        - [Direction](#direction)
        - [Limit](#limit)
        - [Start](#start)
    - [Request timeout](#request-timeout)
    - [Connection timeout](#connection-timeout)
    - [**Sending a request and getting a response**](#sending-a-request-and-getting-a-response)
        - [Sending the request](#sending-the-request)
        - [Response body](#response-body)
        - [Response json](#response-json)
        - [Response headers](#response-headers)
        - [Response status code](#response-status-code)
        - [Response reason phrase](#response-reason-phrase)
    - [Raw query](#raw-query)
- [Examples](#examples)
- [Testing](#testing)
- [License](#license)

Installation
------------

[](#installation)

Install via [composer](https://getcomposer.org/doc/00-intro.md)

```
composer require hedii/zotero-api
```

Usage
-----

[](#usage)

### Instantiation

[](#instantiation)

ZoteroApi has to be instantiated with an api key. You can generate a zotero api key [here](https://www.zotero.org/settings/keys) if you have an account on zotero.org.

```
