PHPackages                             gosunilgo/apigee-client-php-pkg - 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. gosunilgo/apigee-client-php-pkg

ActiveLibrary

gosunilgo/apigee-client-php-pkg
===============================

Client library for connecting to the Apigee Edge API.

00PHP

Since Dec 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gosunilgo/apigee-client-php-pkg)[ Packagist](https://packagist.org/packages/gosunilgo/apigee-client-php-pkg)[ RSS](/packages/gosunilgo-apigee-client-php-pkg/feed)WikiDiscussions add-php8.1 Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Apigee Edge Client Library for PHP
==================================

[](#apigee-edge-client-library-for-php)

[![Build Status](https://github.com/apigee/apigee-client-php/actions/workflows/php-test-workflow.yml/badge.svg)](https://github.com/apigee/apigee-client-php/actions/workflows/php-test-workflow.yml)[![Code Coverage](https://camo.githubusercontent.com/2dcae2dc254f34930d9c962840a01bfbb9927541b881f00b0850f1c1d288f3f0/68747470733a2f2f636f6465636f762e696f2f67682f6170696765652f6170696765652d636c69656e742d7068702f6272616e63682f322e782f67726170682f62616467652e737667)](https://codecov.io/gh/apigee/apigee-client-php/branch/2.x)[![Latest Stable Version](https://camo.githubusercontent.com/45cf79198e39446463cb88b789615545d60dd012fc206ad3d48d0f28f7f64a19/68747470733a2f2f706f7365722e707567782e6f72672f6170696765652f6170696765652d636c69656e742d7068702f762f737461626c65)](https://packagist.org/packages/apigee/apigee-client-php)[![Total Downloads](https://camo.githubusercontent.com/209256b2700205e70d7b5649351711fc7a03335eecbcf822efe9ed0c8b9582ec/68747470733a2f2f706f7365722e707567782e6f72672f6170696765652f6170696765652d636c69656e742d7068702f646f776e6c6f616473)](https://packagist.org/packages/apigee/apigee-client-php)[![Minimum PHP Version](https://camo.githubusercontent.com/5b837c0ea28a82c831bf4c47f453e3d187776b9407dab996a705b32223ca2cae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230372e342d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![License](https://camo.githubusercontent.com/b12ef8eab463e676a0583bd9569d97f34d91ce7b6eee7219e30c6fe5e1b44a4b/68747470733a2f2f706f7365722e707567782e6f72672f6170696765652f6170696765652d636c69656e742d7068702f6c6963656e7365)](https://packagist.org/packages/apigee/apigee-client-php)

The Apigee API Client Library for PHP makes it easy to develop PHP clients that call the Apigee Edge Management API. The Apigee API Client Library for PHP enables you to interact with the API using objects instead of coding to handle the HTTP request and response calls directly.

Specifically, the Apigee API Client Library for PHP provides access to Apigee Edge Management APIs in the following categories:

- [API Products](https://apidocs.apigee.com/api/api-products-1)
- [Apps](https://apidocs.apigee.com/api/apps-0)
- [Apps: Company](https://apidocs.apigee.com/api/apps-company)
- [Apps: Developer](https://apidocs.apigee.com/api/apps-developer)
- [Companies](https://apidocs.apigee.com/api/companies-0)
- [Company App Keys](https://apidocs.apigee.com/api/company-app-keys-0)
- [Company Developers](https://apidocs.apigee.com/api/company-developers-0)
- [Developer App Keys](https://apidocs.apigee.com/api/developer-app-keys)
- [Developers](https://apidocs.apigee.com/api/developers-0)
- [Stats](https://apidocs.apigee.com/api/stats)

For more information about the Apigee Edge Management APIs, see [Getting started with the API Edge Management APIs](https://apidocs.apigee.com/api-reference/content/api-reference-getting-started)in the Apigee documentation.

The Apigee API Client Library for PHP, built using the HTTPlug library, provides an HTTP client implementation-independent library. You choose the client that best fits your project requirements.

If you need PHP &lt; 7.1 or Monetization API support please install the older [edge-php-sdk version](https://github.com/apigee/edge-php-sdk). We are planning to add Monetization API support to this library in the near future.

Edge for Private Cloud
----------------------

[](#edge-for-private-cloud)

[Core Persistent Services (CPS)](https://docs.apigee.com/api-platform/reference/cps) is not available on Private Cloud installations. The PHP API client supports pagination on listing API endpoints (ex.: [List Developers](https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/developers)). If CPS is not available the PHP API client simulates the pagination feature and it triggers an E\_USER\_NOTICE level error to let developers know that the paginated result is generated by PHP and not the Management API server. This notice can be suppressed in multiple ways. You can suppress it by changing PHP's `error_reporting` configuration to suppress *all* E\_NOTICE level errors with changing its value to `E_ALL | ~E_NOTICE` for example. You can also suppress only the notice generated by the PHP API client by setting the `APIGEE_EDGE_PHP_CLIENT_SUPPRESS_CPS_SIMULATION_NOTICE` environment variable value to a falsy value, for example: `APIGEE_EDGE_PHP_CLIENT_SUPPRESS_CPS_SIMULATION_NOTICE=1`.

Support for Apigee hybrid orgs: GA Release
------------------------------------------

[](#support-for-apigee-hybrid-orgs-ga-release)

Support for [Apigee hybrid API](https://docs.apigee.com/hybrid/reference-overview) has been added to this library and is now considered to be production ready. If you run into any problems, add an issue to our [GitHub issue queue](https://github.com/apigee/apigee-client-php/issues).

Installing the client library
-----------------------------

[](#installing-the-client-library)

You must install an HTTP client or adapter before you install the Apigee API Client Library for PHP. For a complete list of available clients and adapters, see [Clients &amp; Adapters](http://docs.php-http.org/en/latest/clients.html) in the PHP-HTTP documentation.

To install the client library using Guzzle 6, enter the following commands:

```
$ composer require php-http/guzzle6-adapter:^1.1.1
$ composer require apigee/apigee-client-php

```

Usage examples
--------------

[](#usage-examples)

### Basic API usage

[](#basic-api-usage)

```
