PHPackages                             acquia/content-hub-php - 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. acquia/content-hub-php

ActiveLibrary[API Development](/categories/api)

acquia/content-hub-php
======================

A PHP Client library to consume the Acquia Content Hub API.

3.9.0(5mo ago)102.1M↓17.7%23MITPHPPHP &gt;=7.4

Since May 3Pushed 5mo ago18 watchersCompare

[ Source](https://github.com/acquia/content-hub-php)[ Packagist](https://packagist.org/packages/acquia/content-hub-php)[ Docs](https://github.com/acquia/content-hub-php)[ RSS](/packages/acquia-content-hub-php/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (17)Versions (146)Used By (0)

Acquia Content Hub Client for PHP
=================================

[](#acquia-content-hub-client-for-php)

[![Build Status](https://camo.githubusercontent.com/b859ba0ebc2c0365b152b37e875d1d981ad937e217af5404932c3af01654bb6f/68747470733a2f2f7472617669732d63692e6f72672f6163717569612f636f6e74656e742d6875622d7068702e737667)](https://travis-ci.org/acquia/content-hub-php)

A PHP Client library to consume the Acquia Content Hub API.

Version Information
-------------------

[](#version-information)

- `0.6.x` branch: Uses guzzle version `~5.0`. Drupal 7 [content hub module](https://docs.acquia.com/content-hub) depends upon builds against this branch.
- `master` branch: Uses guzzle version `~6.0`. Drupal 8 content hub work, that is in progress at the moment, depends upon builds against this branch.

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

[](#installation)

Install the latest version with [Composer](https://getcomposer.org/):

```
$ composer require acquia/content-hub-php
```

Usage
-----

[](#usage)

#### Register the application

[](#register-the-application)

Applications must register themselves with Content Hub so that they are assigned a unique identifier. The identifier is required by most API endpoints and is used as the "origin" of entities that are created by the application and published to the hub.

```
