Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,6 @@ PHP Client library for Bandwidth's Phone Number Dashboard (AKA: Dashboard, Iris)
=========================================================
[![Build Status](https://travis-ci.org/Bandwidth/php-bandwidth-iris.svg?branch=master)](https://travis-ci.org/Bandwidth/php-bandwidth-iris)

## Release Notes

| Version | Notes |
|:---|:---|
| 2.0.0 | Fixed incompatibilities with Bandwidth's Dashboard API Create Site function that required breaking changes. Versions less than 2.0.0 are not guaranteed to work with Bandwidth's Dashboard API. |
| 2.0.1 | Added `ActualFocDate` to Portins model |
| 2.0.2 | Fixed HTTP method for `set_tn_options` to `PUT` |
| 2.0.3 | Fixed HTTP request for `set_tn_options` to the correct XML object |
| 2.0.4 | Added `localVanity` to `availableNumbers` |
| 2.0.5 | Added `NewBillingTelephoneNumber` to `Portins` model |
| 2.0.6 | Build `ReportsModel` functionality |
| 2.0.7 | Fixed error handling for Errors fields |
| 2.0.8 | Fixed rate center check |
| 2.1.0 | Added `importTnOrders`, `removeImportedTnOrders`, `inserviceNumbers`, and `importTnChecker` endpoints |
| 2.2.0 | Added `csrs` endpoints |
| 2.3.0 | Added `loas` endpoints for ImportTnOrders |
| 2.4.0 | Added Emergency Calling Notification, Emergeny Notification Group, Emergency Notification Endpoint, and Alternate End User Identity methods |
| 2.5.0 | Added `PortOutPasscode` for TnOption orders |
| 2.5.1 | Fixed grabbing of response header for file uploads |
| 3.0.0 | Updated to guzzle 7. This version no longer supports verisons of PHP less than 7.2. Older versions of this package will still work on PHP versions less than 7.2 |
| 3.1.0 | Added application management |
| 3.2.0 | Update SipPeerTelephoneNumber to enable/disabe SMS |
| 3.3.0 | Added PortOutStatus, ActualFocDate, and SPID to the portout model |
| 3.3.1 | Updated the portins update method to clear the ActualFocDate field |
| 3.3.2 | Updated the portins set_activation_status method use a PUT method |

## Supported PHP Versions

| Version | Support Level |
Expand Down
5 changes: 5 additions & 0 deletions core/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@

namespace Iris;

use AllowDynamicProperties;
use GuzzleHttp\Exception\ClientException;
use SimpleXMLElement;

#[AllowDynamicProperties]
class ResponseException extends \Exception
{

}

#[AllowDynamicProperties]
abstract class iClient
{
abstract function get($url, $options);
Expand Down Expand Up @@ -122,6 +125,8 @@ protected function array2xml($arr, &$xml)
}
}


#[AllowDynamicProperties]
final class Client extends iClient
{

Expand Down
3 changes: 3 additions & 0 deletions src/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
class Account extends RestEntry {
public function __construct($account_id, $client=Null, $namespace='accounts')
{
Expand Down
3 changes: 3 additions & 0 deletions src/AddressModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
class Address {
use BaseModel;

Expand Down
6 changes: 6 additions & 0 deletions src/BaseModel.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<?php

namespace Iris;
use AllowDynamicProperties;

#[AllowDynamicProperties]
class FieldRequiredException extends \Exception {
public function __construct($key) {
$this->key = $key;
parent::__construct("Field {$this->key} is required.");
}
}


#[AllowDynamicProperties]
class FieldValidateInArrayException extends \Exception {
public function __construct($key, $arr) {
$this->key = $key;
Expand All @@ -17,6 +21,8 @@ public function __construct($key, $arr) {
}
}


#[AllowDynamicProperties]
class FieldNotExistsException extends \Exception {
public function __construct($key) {
$this->key = $key;
Expand Down
4 changes: 4 additions & 0 deletions src/BillingReports.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
class BillingReports extends RestEntry
{
public function __construct($parent)
Expand Down Expand Up @@ -68,6 +71,7 @@ public function request($data)
}
}

#[AllowDynamicProperties]
class BillingReport extends RestEntry
{
use BaseModel;
Expand Down
3 changes: 3 additions & 0 deletions src/CityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class Cities extends RestEntry{
public function __construct($client)
{
Expand Down
4 changes: 4 additions & 0 deletions src/CoveredRateCenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class CoveredRateCenters extends RestEntry{
public function __construct($client)
{
Expand Down Expand Up @@ -41,6 +44,7 @@ public function get_relative_namespace() {
}
}

#[AllowDynamicProperties]
final class CoveredRateCenter extends RestEntry{
use BaseModel;

Expand Down
4 changes: 4 additions & 0 deletions src/DisconnectsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
class Disconnects extends RestEntry{
public function __construct($parent) {
$this->parent = $parent;
Expand Down Expand Up @@ -61,6 +64,7 @@ public function get_appendix() {
}


#[AllowDynamicProperties]
class Disconnect extends RestEntry {
use BaseModel;

Expand Down
5 changes: 5 additions & 0 deletions src/DldaModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class Dldas extends RestEntry{

public function __construct($parent) {
Expand Down Expand Up @@ -58,6 +61,8 @@ public function create($data, $save = true) {
}
}


#[AllowDynamicProperties]
final class Dlda extends RestEntry{
use BaseModel;

Expand Down
5 changes: 5 additions & 0 deletions src/HostsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
class Hosts {
use BaseModel;

Expand All @@ -15,6 +18,8 @@ public function __construct($data) {
}
}


#[AllowDynamicProperties]
class Host {
use BaseModel;

Expand Down
5 changes: 5 additions & 0 deletions src/LidbModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class Lidbs extends RestEntry{

public function __construct($parent) {
Expand Down Expand Up @@ -58,6 +61,8 @@ public function get_appendix() {
}
}


#[AllowDynamicProperties]
final class Lidb extends RestEntry{
use BaseModel;

Expand Down
5 changes: 5 additions & 0 deletions src/LsrorderModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class Lsrorders extends RestEntry{

public function __construct($parent) {
Expand Down Expand Up @@ -52,6 +55,8 @@ public function create($data) {
}
}


#[AllowDynamicProperties]
final class Lsrorder extends RestEntry{
use BaseModel;

Expand Down
6 changes: 6 additions & 0 deletions src/NotesModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

namespace Iris;

use AllowDynamicProperties;

/**
*
*/

#[AllowDynamicProperties]
class Notes extends RestEntry {
public function __construct($parent) {
$this->parent = $parent;
Expand Down Expand Up @@ -53,6 +57,8 @@ public function get_appendix() {
* @property string $Description
* @property string $LastDateModifier
*/

#[AllowDynamicProperties]
class Note extends RestEntry {
use BaseModel;

Expand Down
5 changes: 5 additions & 0 deletions src/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class Orders extends RestEntry{

public function __construct($parent) {
Expand Down Expand Up @@ -57,6 +60,8 @@ public function create($data, $save = true) {
}
}


#[AllowDynamicProperties]
final class Order extends RestEntry{
use BaseModel;

Expand Down
5 changes: 5 additions & 0 deletions src/PortinsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
class Portins extends RestEntry {
public function __construct($account) {
$this->parent = $account;
Expand Down Expand Up @@ -67,6 +70,8 @@ public function get_appendix() {
}
}


#[AllowDynamicProperties]
class Portin extends RestEntry {
use BaseModel;

Expand Down
5 changes: 5 additions & 0 deletions src/PortoutModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class Portouts extends RestEntry{

public function __construct($parent) {
Expand Down Expand Up @@ -65,6 +68,8 @@ public function get_appendix() {

}


#[AllowDynamicProperties]
class Portout extends RestEntry {
use BaseModel;

Expand Down
3 changes: 3 additions & 0 deletions src/RateCenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class RateCenter extends RestEntry{
public function __construct($client)
{
Expand Down
7 changes: 7 additions & 0 deletions src/ReportsInstanceModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

namespace Iris;

use AllowDynamicProperties;

#[AllowDynamicProperties]
final class InstanceParameters {
use BaseModel;

Expand All @@ -24,6 +27,8 @@ public function __construct($data) {
}
}


#[AllowDynamicProperties]
final class InstanceParameter {
use BaseModel;

Expand All @@ -36,6 +41,8 @@ public function __construct($data) {
}
}


#[AllowDynamicProperties]
final class ReportInstance extends RestEntry{
use BaseModel;

Expand Down
Loading