PHPackages                             zenddevops/webapi - 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. zenddevops/webapi

ActiveLibrary[API Development](/categories/api)

zenddevops/webapi
=================

Provides easy access to Zend Server API

1.3(12y ago)813.8k11BSD-3-ClausePHPPHP &gt;=5.3.3

Since Sep 20Pushed 1y ago17 watchersCompare

[ Source](https://github.com/zend-patterns/ZendServerWebApiModule)[ Packagist](https://packagist.org/packages/zenddevops/webapi)[ RSS](/packages/zenddevops-webapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (15)Versions (11)Used By (0)

ZendServerWebApi
================

[](#zendserverwebapi)

ZF2 module that ease Zend Server API usage

Zend Framework 2 API
--------------------

[](#zend-framework-2-api)

To use a Zend Server API, call the APIManager form the service locator :

```
$apiManager = $serviceLocator->get('zend_server_api');

```

And then send the request and retrieve the response like this :

```
$apiResponse = $apiManager->apiMethodName();

```

Where ApiMethodName is the API method : getNotifications, cacheClear, etc.... see Zend Server Web API documentation. $apiResponse will be ApiResponse instance and can be used a SimpleXMLElement to get XML Data. By exemple the clusterGetServerStatus method will return a response in which you can acces data like that :

```
$nodeCount = $apiResponse->responseData->serverList->count(); //To know the number a nodes in the cluster
$serverStatus = $apiResponse->responseData->serverList->serverInfo[0]->status // To know the status of the first node

```

API Request parameters POST or GET can be passed to the ApiManger by using an array :

```
$response = $apiManager->auditGetList(array(
        'limit' => 5,
        'order' => 'creation_time',
        'direction' => 'DESC'
    ));

```

Setting
-------

[](#setting)

You can set a default configuration of your environment in the zendserverwebapi.conf.php file under the 'zsapi' key:

```
'zsapi' => array (
    //Configuratin of the HTTP client that will connect to the Zend Server
    'client' => array (
        'adapter' => 'Zend\Http\Client\Adapter\Curl',
    ),
    // Target - the Zend Server you want to reach through API
    'target' => new ArrayObject(array (
        'zsurl' => 'http://localhost:10081', //
        'zskey' => '',
        'zssecret' => '',
        'zsversion' => '6.1',
)),

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~48 days

Total

5

Last Release

4420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/485961688a67e0665c736ef09df029cc42b775958f2920c4344b8808ef227336?d=identicon)[slaff](/maintainers/slaff)

![](https://www.gravatar.com/avatar/8b1c80740d56060fab59656e9c14136f96439e9999af028f0d61852924de3607?d=identicon)[sophpie](/maintainers/sophpie)

![](https://www.gravatar.com/avatar/c998821fe8d72cd577897a7ab744c2c742cc6bc46952967f14fd3d8b69ea15ec?d=identicon)[perforce-sp](/maintainers/perforce-sp)

---

Top Contributors

[![slaff](https://avatars.githubusercontent.com/u/247452?v=4)](https://github.com/slaff "slaff (9 commits)")[![slav-at-attachix](https://avatars.githubusercontent.com/u/117992494?v=4)](https://github.com/slav-at-attachix "slav-at-attachix (7 commits)")[![perforce-sp](https://avatars.githubusercontent.com/u/49441849?v=4)](https://github.com/perforce-sp "perforce-sp (3 commits)")[![afroyd](https://avatars.githubusercontent.com/u/462367?v=4)](https://github.com/afroyd "afroyd (2 commits)")[![kher](https://avatars.githubusercontent.com/u/6650040?v=4)](https://github.com/kher "kher (2 commits)")[![rainviigipuu](https://avatars.githubusercontent.com/u/161777?v=4)](https://github.com/rainviigipuu "rainviigipuu (2 commits)")[![zvikazend](https://avatars.githubusercontent.com/u/4850149?v=4)](https://github.com/zvikazend "zvikazend (1 commits)")[![HeikoGH](https://avatars.githubusercontent.com/u/9819069?v=4)](https://github.com/HeikoGH "HeikoGH (1 commits)")[![fwwarr-zoop](https://avatars.githubusercontent.com/u/15040848?v=4)](https://github.com/fwwarr-zoop "fwwarr-zoop (1 commits)")[![swilczynski](https://avatars.githubusercontent.com/u/1162359?v=4)](https://github.com/swilczynski "swilczynski (1 commits)")[![YonmaN](https://avatars.githubusercontent.com/u/1409846?v=4)](https://github.com/YonmaN "YonmaN (1 commits)")[![mkherlakian](https://avatars.githubusercontent.com/u/1141190?v=4)](https://github.com/mkherlakian "mkherlakian (1 commits)")

---

Tags

zf2zend server

### Embed Badge

![Health badge](/badges/zenddevops-webapi/health.svg)

```
[![Health](https://phpackages.com/badges/zenddevops-webapi/health.svg)](https://phpackages.com/packages/zenddevops-webapi)
```

###  Alternatives

[zf-commons/zfc-user

A generic user registration and authentication module for ZF2. Supports Zend\\Db and Doctrine2.

4851.1M70](/packages/zf-commons-zfc-user)[socalnick/scn-social-auth

Uses the HybridAuth PHP library to Enable authentication via Google, Facebook, Twitter, Yahoo!, etc for the ZfcUser ZF2 module.

21974.2k3](/packages/socalnick-scn-social-auth)[davidhavl/dherrorlogging

Full featured error logging module for ZF2/ZF3 application

1924.5k](/packages/davidhavl-dherrorlogging)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
