The full page example at the bottom of the page you linked shows all the parts needed to implement web chat in your page. Keep in mind that a PHP page is a server-side script, and the web chat scripts are client-side JavaScript. You won't write any PHP code that interfaces directly with web chat, you'll just include the appropriate JavaScript and HTML in the rendered page for it to function client side.
Assistance with customizing wordpress is outside the scope of this forum. If you need general development assistance, Genesys PS may be hired to assist with implementing web chat, though I can't guarantee they have a wordpress development skillset. You may need to hire wordpress development assistance from outside of Genesys. If you wish to engage Genesys PS, your Sales or Customer Success contact can begin that process.
No problem Tim, was just looking for some tips on how to add the widget code to a dynamic content management system, like wordpress.
I think I am getting somewhere, slowly.