dev-master
9999999-devPHP Client for NM B2B Web services
GPL-3.0-or-later
The Requires
- php ^7.0
- ext-soap *
The Development Requires
by Bruno Spyckerelle
Wallogit.com
2017 © Pedro Peláez
PHP Client for 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)
To install run composer require dgac/nmb2b-phpclient, (*4)
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
);
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()
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(); }
Get current version of NM services., (*7)
$client->airspaceServices()->getNMVersion(); //returns "21.5.0"
PHP Client for NM B2B Web services
GPL-3.0-or-later