Hi,
I wrote a PHP extension that wrap libonion[oled, pwm, relay]exp.
https://github.com/kea/Onion-Omega-Php-extension
Here you can find the compiled version omega.so
Copy the extension to your omega device and test it with one of the 3 php test files that you can find in the repository above.
$ scp omega.so root@omega-XXX.local:
$ scp test_relay.php root@omega-XXX.local:
$ ssh root@omega-XXX.local:
root@Omega-XXXX:~$ opkg install php5-cli
root@Omega-XXXX:~$ php-cli -d extension=/root/omega.so test_relay.php
If you like it, I'll add documentation and helper classes.
Any feedback is greatly appreciated!