There is not only PHP API interface but direct SSH command execution from PHP too.
Refer to wiki:
http://wiki.mikrotik.com/wiki/Use_SSH_t ... key_login)
and
http://wiki.mikrotik.com/wiki/Traffic-flow
Example command:
[admin@mikrotik] /interface wireless registration-table> /interface wireless registration-table {:foreach i in=[find] do={:put ("signal-strenght=".[get $i signal-strength]." radio-name=".[get $i radio-name]." tx-rate=".[get $i tx-rate]);}}
signal-strenght=-60dBm@6Mbps radio-name=001D0FB0EE4D tx-rate=48Mbps
signal-strenght=-65dBm@6Mbps radio-name=001D0FB0ECE4 tx-rate=36Mbps
signal-strenght=-58dBm@6Mbps radio-name=0019E08B7D35 tx-rate=54Mbps
signal-strenght=-74dBm@6Mbps radio-name=000B6BDAFFF7 tx-rate=48Mbps
Output si very well suited for parsing via PHP explode function.
And you can get much more informations:
802.1x-port-enabled client-tx-limit frames hw-frames p-throughput rx-ccq tx-frames-timed-out
ack-timeout comment framing-current-size interface packed-bytes rx-rate tx-rate
ap compression framing-limit last-activity packed-frames signal-strength tx-signal-strength
ap-tx-limit distance framing-mode last-ip packets signal-to-noise uptime
authentication-type encryption group-encryption mac-address radio-name strength-at-rates wds
bytes frame-bytes hw-frame-bytes nstreme routeros-version tx-ccq wmm-enabled