PHPackages                             didww/php-sdk - 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. didww/php-sdk

AbandonedArchivedLibrary[API Development](/categories/api)

didww/php-sdk
=============

DIDWW API 2 PHP SDK

0.1.1(10y ago)44.0k9[1 issues](https://github.com/didww/php-sdk/issues)PHPPHP &gt;=5.3

Since Feb 17Pushed 7y ago2 watchersCompare

[ Source](https://github.com/didww/php-sdk)[ Packagist](https://packagist.org/packages/didww/php-sdk)[ RSS](/packages/didww-php-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (4)Used By (0)

### ⚠️ Unmaintained ⚠️

[](#warning-unmaintained-warning)

API 2 is in maintenance mode

Consider to switch to API 3

DIDWW API 2 client for PHP 5.3

[![Build Status](https://camo.githubusercontent.com/4378dd37dbfc5855ffd3ea5c3ee5c9a5789e6ec4030521e340cdef24b3f485f0/68747470733a2f2f7472617669732d63692e6f72672f64696477772f7068702d73646b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/didww/php-sdk)[![Coverage Status](https://camo.githubusercontent.com/49330b30ecb2e894d66b07937df7b445121de98f8b66d74cbb9c11c6e95f4ad2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f64696477772f7068702d73646b2f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/didww/php-sdk?master)

About DIDWW API 2.0 !
---------------------

[](#about-didww-api-20-)

The DIDWW API is available free of charge to resellers and no licensing costs are applicable. In addition, no setup fees are payable to DIDWW for services purchased via this API, adding to the attractiveness and flexibility of this model from a business perspective.

Read more [http://open.didww.com/index.php/DIDWW\_API\_2.0](http://open.didww.com/index.php/DIDWW_API_2.0)

Usage
-----

[](#usage)

### Connection initialization

[](#connection-initialization)

```
    $userName = "user@gmail";
    $password = "44AEIRTCH5NE2MAPDXYGKHJHH";
    $testMode = false;
    use Didww\API2\ApiCredentials, Didww\API2\ApiClient as Client;
    Client::setCredentials(new ApiCredentials($userName,$password,$testMode));
    Client::setDebug(false);
```

### Create DID number

[](#create-did-number)

```
    use Didww\API2\Order;
    use Didww\API2\MappingToGtalk;

    $order = new Order();
    $order->setMapData(new MappingToGtalk("googlemail@gmail.com"));
    $order->setCustomerId(81);
    $order->setCountryIso("IL");
    $order->setCityId(908);
    $order->setCityPrefix(8);
    $order->setPeriod(1);
    $number = $order->createNumber();
```

### Change Mapping

[](#change-mapping)

```
    use Didww\API2\MappingToGtalk;
    $order->updateMapping(new MappingToGtalk("anothergooglemail@gmail.com"));
```

### Customer balance list

[](#customer-balance-list)

```
    use Didww\API2\Balance;
    $balances =  Balance::getBalanceList();
```

### Working with balance

[](#working-with-balance)

```
    $balance = new Balance();
    $balance->setCustomerId(81);
    $balance->synchronizePrepaidBalance();
    echo $balance->getPrepaidBalance();
    $balance->removeFunds(10);
    $balance->addFunds(20);
```

### CDR and CDR charges

[](#cdr-and-cdr-charges)

```
    use Didww\API2\CDR;
    use Didww\API2\CDRInvoice;
    use Didww\API2\CDRCollection;

    $invoice = new CDRInvoice();
    $invoice->setCustomerId(81);
    $invoice->setFromDate('2012-01-01');
    $invoice->setToDate('2012-01-31');

    $invoice->load();
    echo $invoice->getAmount();

    $cdrs = new CDRCollection();
    $cdrs->setFromDate('2012-01-01');
    $cdrs->setToDate('2012-03-01');
    $cdrs->setCustomerId(85);
    $cdrs->load();
```

### Regions

[](#regions)

```
    use Didww\API2\Country;
    $countries = Country::getAll();
```

### Cities

[](#cities)

```
 use Didww\API2\Country;
 $country = new Country(array('country_iso'=>'US'));
 $country->loadCities()->getCities();
```

And much more....

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.5% of commits — single point of failure

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 ~651 days

Total

2

Last Release

3910d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/648944?v=4)[Igor Gonchar](/maintainers/gigorok)[@gigorok](https://github.com/gigorok)

---

Top Contributors

[![Fivell](https://avatars.githubusercontent.com/u/120269?v=4)](https://github.com/Fivell "Fivell (13 commits)")[![gigorok](https://avatars.githubusercontent.com/u/648944?v=4)](https://github.com/gigorok "gigorok (2 commits)")[![abreeden](https://avatars.githubusercontent.com/u/8678640?v=4)](https://github.com/abreeden "abreeden (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

### Embed Badge

![Health badge](/badges/didww-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/didww-php-sdk/health.svg)](https://phpackages.com/packages/didww-php-sdk)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.5M7](/packages/exsyst-swagger)[lucasdotvin/laravel-soulbscription

A straightforward interface to handle subscriptions and features consumption.

709209.3k](/packages/lucasdotvin-laravel-soulbscription)[pimax/fb-messenger-php

Facebook Messenger Bot PHP API

313188.5k2](/packages/pimax-fb-messenger-php)

PHPackages © 2026

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