PHPackages                             apigee/edge - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. apigee/edge

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

apigee/edge
===========

Apigee Edge API is a set of objects that communicate with Apigee's Edge management server via REST calls to manage developers, apps, and other entities.

1.1.22(6y ago)142.4k12[4 issues](https://github.com/apigee/edge-php-sdk/issues)[4 PRs](https://github.com/apigee/edge-php-sdk/pulls)MITPHPPHP &gt;=7.1CI failing

Since Mar 14Pushed 6y ago27 watchersCompare

[ Source](https://github.com/apigee/edge-php-sdk)[ Packagist](https://packagist.org/packages/apigee/edge)[ Docs](http://github.com/apigee/edge-php-sdk)[ RSS](/packages/apigee-edge/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (4)Versions (33)Used By (0)

The 2.x version has moved
=========================

[](#the-2x-version-has-moved)

The newer 2.x version of this library has been released and is now available as [Apigee Edge Client Library for PHP](https://github.com/apigee/apigee-client-php/releases). This library is now in maintenance mode and is only accepting major bug fixes.

How to use the Apigee Edge PHP SDK
==================================

[](#how-to-use-the-apigee-edge-php-sdk)

The Apigee Edge Management PHP SDK makes it easy to write PHP modules that use the Apigee Edge management API. By using the Management PHP SDK, you can communicate with Apigee Edge to manage developers, apps, roles, and permissions in the same way as the Apigee Developer Services portal.

Prerequisites and Installation Requirements
-------------------------------------------

[](#prerequisites-and-installation-requirements)

### PHP Requirements

[](#php-requirements)

The Edge PHP SDK has the following prerequisites:

- PHP 7.1 or greater. This is required due to the SDK’s use of PHP namespaces and closures, and finally block.
- JSON support built into PHP. This is enabled in almost all default builds of PHP. Certain Linux distributions (such as Debian) may ship with JSON-C instead of the standard JSON, due to licensing restrictions; this is also acceptable.
- CURL support built into PHP.
- Composer, , should be installed and in your path.

### Installation of Dependencies

[](#installation-of-dependencies)

#### As part of a Composer-based project

[](#as-part-of-a-composer-based-project)

If your project is itself based on Composer, simply add `“apigee/edge”`to your project’s composer.json file and run `composer install --no-dev`. This should install the Edge PHP SDK as well as all its dependencies into your project’s `vendor` dir, and it will integrate them all with your project’s class autoloader. If you want to run the SDK’s unit tests, you should omit the `--no-dev` option.

#### Using Composer, but not as part of a Composer-based project

[](#using-composer-but-not-as-part-of-a-composer-based-project)

If you have installed Composer but choose not to use it to manage your project, you may register the Edge SDK and its dependencies as follows:

```
$ cd path/to/edge-sdk
$ composer install --no-dev

```

This will download and install all the dependencies. You will need to include `path/to/edge-sdk/vendor/autoload.php` in order to reap the benefits of having all your classes autoloaded.

#### Without Composer

[](#without-composer)

Installation without Composer is no longer supported.

Connecting to the Edge server
-----------------------------

[](#connecting-to-the-edge-server)

The core object used to configure your connection to Edge is Apigee\\Util\\OrgConfig. You can create one as follows:

```
