PHPackages                             cheppers/gathercontent-client - 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. cheppers/gathercontent-client

ActiveLibrary[API Development](/categories/api)

cheppers/gathercontent-client
=============================

GatherContent client

v2.0.7(4y ago)1173.0k2[1 PRs](https://github.com/Cheppers/gathercontent-client/pulls)GPL-2.0-or-laterPHP

Since May 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Cheppers/gathercontent-client)[ Packagist](https://packagist.org/packages/cheppers/gathercontent-client)[ RSS](/packages/cheppers-gathercontent-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (8)Versions (11)Used By (0)

GatherContent REST client
=========================

[](#gathercontent-rest-client)

[![Build Status](https://camo.githubusercontent.com/f821c6bf92efb4bae03003f7f21c9eb41ad4f5b1af9940fac6abd18cac961d84/68747470733a2f2f7472617669732d63692e6f72672f43686570706572732f676174686572636f6e74656e742d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Cheppers/gathercontent-client)[![codecov](https://camo.githubusercontent.com/b4ac056b847b1dd9019833b2b73374b0ae44ddc0c41570cd6410aebab7e77bc6/68747470733a2f2f636f6465636f762e696f2f67682f43686570706572732f676174686572636f6e74656e742d636c69656e742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Cheppers/gathercontent-client)

Supported endpoints
-------------------

[](#supported-endpoints)

### Legacy

[](#legacy)

Compatible with `application/vnd.gathercontent.v0.5+json`

These endpoints are essential, so we kept the support for them in this new version. In the future these endpoints will be in the v2 API and we will replace them accordingly.

- [GET: /me](https://docs.gathercontent.com/0.5/reference#get-me) `$gc->meGet()`
- [GET: /accounts](https://docs.gathercontent.com/0.5/reference#get-accounts) `$gc->accountsGet()`
- [GET: /accounts/:account\_id](https://docs.gathercontent.com/0.5/reference#get-accountsaccount_id) `$gc->accountGet()`
- [GET: /projects](https://docs.gathercontent.com/0.5/reference#get-projects) `$gc->projectsGet()`
- [GET: /projects/:project\_id](https://docs.gathercontent.com/0.5/reference#get-project-by-id) `$gc->projectGet()`
- [POST: /projects](https://docs.gathercontent.com/0.5/reference#post-projects) `$gc->projectsPost()`
- [GET: /projects/:project\_id/statuses](https://docs.gathercontent.com/0.5/reference#get-project-statuses) `$gc->projectStatusesGet()`
- [GET: /projects/:project\_id/statuses/:status\_id](https://docs.gathercontent.com/0.5/reference#get-project-statuses-by-id) `$gc->projectStatusGet()`
- [POST: /items/:item\_id/choose\_status](https://docs.gathercontent.com/0.5/reference#post-item-choose_status) `$gc->itemChooseStatusPost()`

### Current

[](#current)

Compatible with `application/vnd.gathercontent.v2+json`

#### Items

[](#items)

- [GET: /projects/:project\_id/items](https://docs.gathercontent.com/reference#listitems) `$gc->itemsGet()`
- [GET: /items/:item\_id](https://docs.gathercontent.com/reference#getitem) `$gc->itemGet()`
- [POST: /projects/:project\_id/items](https://docs.gathercontent.com/reference#createitem) `$gc->itemPost()`
- [POST: /items/:item\_id/content](https://docs.gathercontent.com/reference#updateitemcontent) `$gc->itemUpdatePost()`
- [POST: /items/:item\_id/rename](https://docs.gathercontent.com/reference#renameitem) `$gc->itemRenamePost()`
- [POST: /items/:item\_id/move](https://docs.gathercontent.com/reference#moveitem) `$gc->itemMovePost()`
- [POST: /items/:item\_id/apply\_template](https://docs.gathercontent.com/reference#applytemplate) `$gc->itemApplyTemplatePost()`
- [POST: /items/:item\_id/disconnect\_template](https://docs.gathercontent.com/reference#disconnecttemplate) `$gc->itemDisconnectTemplatePost()`
- [POST: /items/:item\_id/duplicate](https://docs.gathercontent.com/reference#duplicate) `$gc->itemDuplicatePost()`

#### Templates

[](#templates)

- [GET: /projects/:project\_id/templates](https://docs.gathercontent.com/reference#listtemplates) `$gc->templatesGet()`
- [GET: /templates/:template\_id](https://docs.gathercontent.com/reference#gettemplate) `$gc->templateGet()`
- [POST: /projects/:project\_id/templates](https://docs.gathercontent.com/reference#createtemplate) `$gc->templatePost()`
- [DELETE: /templates/:template\_id/delete](https://docs.gathercontent.com/reference#deletetemplate) `$gc->templateDelete()`
- [POST: /templates/:template\_id/rename](https://docs.gathercontent.com/reference#renametemplate) `$gc->templateRenamePost()`
- [POST: /templates/:template\_id/duplicate](https://docs.gathercontent.com/reference#duplicatetemplate) `$gc->templateDuplicatePost()`

#### Structures

[](#structures)

- [GET: /structures/:structure\_uuid](https://docs.gathercontent.com/reference#getstructure) `$gc->structureGet()`
- [PUT: /structures/:structure\_uuid](https://docs.gathercontent.com/reference#alterstructure) `$gc->structureAlterPut()`
- [POST: /structures/:structure\_uuid/save\_as\_template](https://docs.gathercontent.com/reference#savestructureastemplate) `$gc->structureSaveAsTemplatePost()`

#### Folders

[](#folders)

- [GET: /folders](https://docs.gathercontent.com/reference#listfolders) `$gc->foldersGet()`
- [POST: /folders](https://docs.gathercontent.com/reference#createfolder) `$gc->folderPost()`
- [POST: /folders](https://docs.gathercontent.com/reference#renamefolder) `$gc->folderRenamePost()`
- [POST: /folders](https://docs.gathercontent.com/reference#movefolder) `$gc->folderMovePost()`
- [DELETE: /folders](https://docs.gathercontent.com/reference#trashordeletefolder) `$gc->folderDelete()`
- [POST: /folders](https://docs.gathercontent.com/reference#restorefolder) `$gc->folderRestorePost()`

Basic usage
-----------

[](#basic-usage)

To create the GatherContentClient simply pass in a Guzzle client in the constructor.

You will need:

- your e-mail address to log into GatherContent
- your [API key](https://docs.gathercontent.com/reference#authentication) from GatherContent

```
