Pure WBXML encoding for PHP?

Is there a native PHP wbxml API that can be used independently? Perhaps a downloadable module?

I saw pecl implementations, but I was not able to successfully work with assemblies on win32 platforms.

+7
php platform-independent wbxml
source share
2 answers

I am not an expert, but I found out that there were two options.

One library you came across.

Two, I found the WBXML encoder and decoder classes in the Horde of all places. They can give you a starting point, and since they are open source, they can satisfy your needs pretty well. Here is the link where I found them.

http://phpxref.com/xref/horde/lib/XML/WBXML/index.html

+2
source share

I do not know a huge amount about WBXML, but from the fact that I can compile an XML file in it in binary format in it. I suggest that in the simplest case, you can use XML modules, such as simpleXML, to create your XML document, output it as a string, and then use PHP built-in to the file processing functions (fopen, fwrite, etc. ) To output a string as binary data to a file. To reverse the process, download the file as a string and parse SimpleXML.

However, without knowing the specific details of the WBXML format, I am sure there are more. You will also need to implement the necessary code yourself, but since you could implement it in PHP itself, which should make cross-platform portability a little easier.

In fact, I do not answer as such, but I hope that you will go in the right direction.

0
source share

All Articles