General PHP library for wireWAX