2017-25 © Pedro Peláez
 

library nmb2b-phpclient

PHP Client for NM B2B Web services

image

dgac/nmb2b-phpclient

PHP Client for NM B2B Web services

  • Thursday, May 24, 2018
  • by BrunoSpy
  • Repository
  • 2 Watchers
  • 1 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 36 % Grown

The README.md

PHP Client for NM B2B Services

pipeline status coverage report, (*1)

NM B2B Web Services

http://www.eurocontrol.int/service/network-manager-business-business-b2b-web-services, (*2)

Supported versions : 25.0 - 26.0 - 27.0, (*3)

Requirements

  • PHP >= 8.0

Installation

Composer

To install run composer require dgac/nmb2b-phpclient, (*4)

Configuration

use DSNA\NMB2BDriver\NMB2BClient;

//only add path to services you intend to use
$client = new NMB2BClient(
    "path to certificate", 
    "passphrase", 
    array(
        "airspaceservices" => "path to airspace services wsdl file",
        "flowservices" => "path to flow services wsdl file"
    )
);

//with a proxy :
$options = [
   'proxy_host' => '192.x.x.x',
   'proxy_port' => '8080'
];

$client = new NMB2BClient(
    "path to certificate", 
    "passphrase", 
    array(
        "airspaceservices" => "path to airspace services wsdl file",
        "flowservices" => "path to flow services wsdl file"
    ),
    $options
);

Usage

Example 1

Retrieve EAUP Chain from Airspace Services, (*5)

$eaupchain = $client->airspaceServices()->retrieveEAUPChain(new \DateTime('now'));

//Get last AUP sequence number published before 0600 UTC
$seq = $eaupchain->getAUPSequenceNumber()

Example 2

Retrieve regulations for a specified TV, (*6)


$start = new \DateTime('2018-04-18 00:00:00'); $end = new \DateTime('2018-04-18 23:59:59'); $result = $client->flowServices()->queryRegulations($start, $end, 'LF*'); foreach($result->getRegulations() as $regulation) { $name = $regulation->getRegulationName(); }

Example 3

Get current version of NM services., (*7)

$client->airspaceServices()->getNMVersion(); //returns "21.5.0"

The Versions

24/05 2018

dev-master

9999999-dev

PHP Client for NM B2B Web services

  Sources   Download

GPL-3.0-or-later

The Requires

  • ext-soap *
  • php ^7.1

 

The Development Requires

by Bruno Spyckerelle

24/05 2018

v0.2.2

0.2.2.0

PHP Client for NM B2B Web services

  Sources   Download

GPL-3.0-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Bruno Spyckerelle

24/05 2018

v0.2.1

0.2.1.0

PHP Client for NM B2B Web services

  Sources   Download

GPL-3.0-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Bruno Spyckerelle

24/05 2018

v0.2.0

0.2.0.0

PHP Client for NM B2B Web services

  Sources   Download

GPL-3.0-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Bruno Spyckerelle

23/05 2018

v0.1.0

0.1.0.0

PHP Client for NM B2B Web services

  Sources   Download

GPL-3.0-or-later

The Requires

  • php ^7.1
  • ext-soap *

 

The Development Requires

by Bruno Spyckerelle