Connecting PHP to PDMWorks

Anyone tried to connect PHP to PDMWorks?

Any snippets to do the job will be highly appreciated.

Thanks in advance.SolidworksApi macros