Integrate php with openfire for one to one chat

hi all,

how to integrate php with openfire for one to one chat?

Is there any changes in admin console in openifre or need for ssl certificate?