Download the PHP package acquia/content-hub-php without Composer
On this page you can find all versions of the php package acquia/content-hub-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download acquia/content-hub-php
More information about acquia/content-hub-php
Files in acquia/content-hub-php
Package content-hub-php
Short Description A PHP Client library to consume the Acquia Content Hub API.
License MIT
Homepage https://github.com/acquia/content-hub-php
Informations about the package content-hub-php
Acquia Content Hub Client for PHP
A PHP Client library to consume the Acquia Content Hub API.
Version Information
0.6.x
branch: Uses guzzle version~5.0
. Drupal 7 content hub module 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
Install the latest version with Composer:
Usage
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.
Add a webhook receiver endpoint
Content Hub sends push notifications and status messages for asynchronous operations via webhooks. Even if your application doesn't require near-real-time content updates, you should implement a webhook receiver endpoint so that you have visibility into what is happening during asynchronous operations.
Creating entities
Reading entities
Updating entities
Deleting entities
Running Tests
To better facilitate running tests, this library is now equipped with a Makefile with the following targets:
(running make help
also shows this information)
- install: To install the dependencies
- example: make install
- method_test file=path/to/test/file: To run a specific test
- example: make method_test method=testFromJSONStringCreation file=test/CDFObjectTest.php
- file_test file=path/to/test/file: To run a specific test
- example: make file_test file=test/CDFObjectTest.php
- dir_tests dir=path/to/test-directory: To run all the tests inside a directory
- example: make dir_tests test
- all_tests: To run all Unit Tests
- example: make all_tests
- coverage: To create test coverage for the Unit Tests
- example: make coverage
- infection: To run infection on the existing tests
- example: make infection
All versions of content-hub-php with dependencies
ext-json Version *
php Version >=7.4
psr/log Version >=1.0
guzzlehttp/guzzle Version >=6.5
symfony/event-dispatcher Version >=4.4
symfony/http-foundation Version >=4.4
symfony/serializer Version >=4.4