PHP support added to IVEF SDK

PHP support added to the IVEF SDK

The trunk of the IVEF SDK now supports PHP as programming language. With the same ease as in the other languages, you can now create a PHP environment that supports IVEF.

PHP is particularly useful when using a REST protocol over HTTP to integrate the IVEF traffic image in a SOA architecture.

e.g. reading an IVEF traffic image from file can be done in just a few lines:

// get the data

$input = file_get_contents(“php://stdin”);

// parse it

$parser = new Parser();

$result = $parser->parseXMLMessage($input);

 

And creating an IVEF message is quite simple too:

$MSG_IVEF->toXML();

 

PHP adds a powerful language to the software development kit, which allows rapid development and high level exchange of the traffic image.

Important limitations

There are two main differences between the PHP version and the Qt/Java/Objc version of the library:

  1. *The PHP version of the library makes no effort to compensate for compatibility due to errors in previous versions (e.g. Qt/Java/Objc versions can handle illegal timestamps that could originate from previous versions of the same library)
  2. *The PHP version of the library handles only complete XML messages and not partial messages as the Qt/Java/Objc versions do. This is because PHP by definition is a stateless protocol and not a streaming protocol. It is highly unlikely that XML messages will arrive at the PHP parser in snippets.

PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed forweb development to produce dynamic web pages.

As a general-purpose programming language, PHP code is processed by an interpreter application in command-line mode performing desired operating system operations and producing program output on its standard output channel. It may also function as a graphical application. PHP is available as a processor for most modern web servers and as standalone interpreter on mostoperating systems andcomputing platforms.

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.