Step 4(optional): In case, you want to create a user for the chat, you just need to call the setUser() function with $user array as a parameter.
Example.
Step 5: Now, you need to include iFlyChat HTML code in your website. As an example, check out basic-example.php (inside iflychat-php/examples folder). To do so, add the following line of code before printing anything on the webpage:
Step 6: Make sure to use the above code before printing any content via PHP, otherwise you will get an error. Next, use the following code anywhere in your PHP file (preferably before body tag ends) to render the chat: