PHPackages                             typhonius/acquia-php-sdk-v2 - 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. typhonius/acquia-php-sdk-v2

ActiveLibrary[API Development](/categories/api)

typhonius/acquia-php-sdk-v2
===========================

A PHP SDK for Acquia CloudAPI v2

3.7.3(8mo ago)222.8M↓17.9%28[8 issues](https://github.com/typhonius/acquia-php-sdk-v2/issues)[2 PRs](https://github.com/typhonius/acquia-php-sdk-v2/pulls)7MITPHPPHP ^8.0 | ^8.1 | ^8.2CI passing

Since Nov 25Pushed 3mo ago3 watchersCompare

[ Source](https://github.com/typhonius/acquia-php-sdk-v2)[ Packagist](https://packagist.org/packages/typhonius/acquia-php-sdk-v2)[ GitHub Sponsors](https://github.com/typhonius)[ RSS](/packages/typhonius-acquia-php-sdk-v2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (67)Used By (7)

Acquia PHP SDK for CloudAPI v2
==============================

[](#acquia-php-sdk-for-cloudapi-v2)

[![Build Status](https://github.com/typhonius/acquia-php-sdk-v2/actions/workflows/php.yml/badge.svg)](https://github.com/typhonius/acquia-php-sdk-v2/actions/workflows/php.yml)[![Total Downloads](https://camo.githubusercontent.com/45ed5be5510db3b92291f50a457aa16e2570f13f2460d6e360025e4d336ffe63/68747470733a2f2f706f7365722e707567782e6f72672f747970686f6e6975732f6163717569612d7068702d73646b2d76322f646f776e6c6f6164732e706e67)](https://packagist.org/packages/typhonius/acquia-php-sdk-v2)[![Coverage Status](https://camo.githubusercontent.com/0eb949315f6ff1b81db08391833280e8efb3a036113497177db40dff6823491b/68747470733a2f2f636f6465636f762e696f2f67682f747970686f6e6975732f6163717569612d7068702d73646b2d76322f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/typhonius/acquia-php-sdk-v2)[![Quality Status](https://camo.githubusercontent.com/ed4489951df8009b8f111536d5d3b345dd04b7c5b9950b7139c59201e3cda747/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f747970686f6e6975732f6163717569612d7068702d73646b2d76322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/typhonius/acquia-php-sdk-v2/)[![Mutation testing badge](https://camo.githubusercontent.com/afd424093609ff3ff2f5f80c50914b6b0356c88619d6652fc67245db7bb58b85/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d253246747970686f6e6975732532466163717569612d7068702d73646b2d76322532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/typhonius/acquia-php-sdk-v2/master)

[![License](https://camo.githubusercontent.com/fa7aee9479e8ec14781750b19c189ccdf7edca5f809e8eaa8f65eef69c357e5d/68747470733a2f2f706f7365722e707567782e6f72672f747970686f6e6975732f6163717569612d7068702d73646b2d76322f6c6963656e73652e706e67)](https://www.versioneye.com/user/projects/5a18bd670fb24f2125873c86#tab-dependencies)[![Latest Stable Version](https://camo.githubusercontent.com/9f80b9e5c3103781c1c385580202768ec0cbf7cc93d46cdd20bfadbcc2b9dc2c/68747470733a2f2f706f7365722e707567782e6f72672f747970686f6e6975732f6163717569612d7068702d73646b2d76322f762f737461626c652e706e67)](https://packagist.org/packages/typhonius/acquia-php-sdk-v2)[![Latest Unstable Version](https://camo.githubusercontent.com/69498661e506a3624d29f249ccbb74184e60f4c1383cde3b67d334ec757eee0c/68747470733a2f2f706f7365722e707567782e6f72672f747970686f6e6975732f6163717569612d7068702d73646b2d76322f762f756e737461626c652e706e67)](https://packagist.org/packages/typhonius/acquia-php-sdk-v2)

This library provides the capability to develop tooling which integrates with the [new version (2.0) of Cloud API](https://cloud.acquia.com/api-docs/).

The [original Acquia Cloud SDK](https://github.com/acquia/acquia-sdk-php) has been deprecated so build tools requiring modern PHP versions and packages should use this library.

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

[](#installation)

The SDK can be installed with [Composer](http://getcomposer.org) by adding this library as a dependency to your composer.json file.

```
{
    "require": {
        "typhonius/acquia-php-sdk-v2": "^2"
    }
}
```

Generating an API access token
------------------------------

[](#generating-an-api-access-token)

To generate an API access token, login to https://cloud.acquia.com, then visit https://cloud.acquia.com/#/profile/tokens, and click ***Create Token***.

- Provide a label for the access token, so it can be easily identified. Click ***Create Token***.
- The token has been generated, copy the api key and api secret to a secure place. Make sure you record it now: you will not be able to retrieve this access token's secret again.

Usage
-----

[](#usage)

Basic usage examples for the SDK.

```
