PHPackages                             jackhage/zanoxapi - 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. jackhage/zanoxapi

ActiveLibrary[API Development](/categories/api)

jackhage/zanoxapi
=================

Zanox API with composer support

024.5k↓50%PHP

Since May 5Pushed 12y ago1 watchersCompare

[ Source](https://github.com/JackPoint/api_client_php)[ Packagist](https://packagist.org/packages/jackhage/zanoxapi)[ RSS](/packages/jackhage-zanoxapi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

zanox API client in PHP (with composer support)
===============================================

[](#zanox-api-client-in-php-with-composer-support)

A) Requirements

```
1) Zanox credentials

   a) Your connect ID
   b) Your secret key for secure API calls
   c) Your public key (optional)

2) Environment

   a) PHP 5

```

B) Setup

```
1) Copy all files into your server location, where the client should be used
2) Make sure all file permissions are set correctly

```

C) Usage

```
1) Include the API client base into your code

        require_once 'ApiClient.php';

2) Instantiate a API client object

   The client can be invoked with three different protocols (XML, JSON SOAP)
   and two different version (2009-07-01, 2011-03-01). The
   default protocol is XML and the default version is 2011-03-01 if no
   parameter are given.

   Examples:

   a) Instantiate API client with default values

          $api = ApiClient::factory();

   b) Instantiate API client with JSON as protocol and default version 2011-03-01

          $api = ApiClient::factory(PROTOCOL_JSON, VERSION_DEFAULT);

3) Setup your credential information

   Setup

       $connectId = '__your_connect_id__';
       $secretKey = '__your_secrect_key__';

       $api->setConnectId($connectId);
       $api->setSecretKey($secretKey);

4) Make the API request

   Use the client object to make the client request to the Zanox API.

   a) API request for searchPrograms with XML as protocol

       $xml = $api->searchPrograms();
       print_r($xml);

   b) API request for searchPrograms with JSON as protocol

       $json = $api->searchPrograms();
       print_r($json);

```

D) Usage examples:

```
1) Get admedia

        $api = ApiClient::factory(PROTOCOL_XML, VERSION_DEFAULT);

        $api->setConnectId($connectId);
        $api->setSecretKey($secretKey);

        $programId      = 738;
        $region         = NULL;
        $format         = 8;
        $partnerShip    = NULL;
        $purpose        = NULL;
        $admediumType   = 'image';
        $categoryId     = NULL;
        $adspaceId      = NULL;
        $page           = 0;
        $items          = 10;

        $xml = $api->getAdmedia ($programId, $region, $format, $partnerShip,
                        $purpose, $admediumType, $categoryId, $adspaceId,
                        $page, $items);
        print_r($xml);

2) Search products

        $api = ApiClient::factory(PROTOCOL_XML, VERSION_DEFAULT);

        $api->setConnectId($connectId);
        $api->setSecretKey($secretKey);

        $query      = "auto";
        $searchType = 'phrase';
        $programs   = array(660,10,20,30);
        $region     = NULL;
        $categoryId = NULL;
        $programId  = array();
        $hasImages  = true;
        $minPrice   = 0;
        $maxPrice   = NULL;
        $adspaceId  = NULL;
        $page       = 0;
        $items      = 10;

        $xml = $api->searchProducts($query, $searchType, $region,
                        $categoryId, $programId, $hasImages, $minPrice,
                        $maxPrice, $adspaceId, $page, $items);
        print_r($xml);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1ee5cbfadd75f9957b3eec6ca4d5515161d8ad32dd016afb918b0596cebcb51?d=identicon)[jackpoint](/maintainers/jackpoint)

---

Top Contributors

[![misel228](https://avatars.githubusercontent.com/u/727668?v=4)](https://github.com/misel228 "misel228 (15 commits)")[![StefanMisch](https://avatars.githubusercontent.com/u/4732683?v=4)](https://github.com/StefanMisch "StefanMisch (11 commits)")[![JackPoint](https://avatars.githubusercontent.com/u/1968505?v=4)](https://github.com/JackPoint "JackPoint (5 commits)")[![MichaelSeidler](https://avatars.githubusercontent.com/u/1681267?v=4)](https://github.com/MichaelSeidler "MichaelSeidler (5 commits)")[![kr1sp1n](https://avatars.githubusercontent.com/u/64247?v=4)](https://github.com/kr1sp1n "kr1sp1n (3 commits)")[![fpietka](https://avatars.githubusercontent.com/u/150428?v=4)](https://github.com/fpietka "fpietka (1 commits)")

### Embed Badge

![Health badge](/badges/jackhage-zanoxapi/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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