Skip to content

This class provides some simple PHP helper functions for implementing Zendesk within your website.

License

Notifications You must be signed in to change notification settings

marcwitteveen/zendesk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zendesk

This class provides some simple PHP helper function for implementing Zendesk within your website.

Getting Started

You can install this package using Composer by adding this line to your composer.json require statement.

"marcwitteveen/zendesk": "dev-master"

And then run from terminal:

sudo composer update

Code Sample

use MarcWitteveen\Zendesk\Zendesk;

Zendesk::widget('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', true);

/* This will render the following code:
<!-- Start of Zendesk Widget script -->
<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"> </script>
<!-- End of Zendesk Widget script -->
*/

Methods:

  • Zendesk::widget($key = "", $enabled = false)

widget Method

Description

Renders a Zendesk chat widget, the call needs to be placed as close as possible to the tag.

Parameters

  • $key (required): The Zendesk key. You can get this value from Zendesk widget interface.
  • $enabled (required): When set to true the widgets is rendered.

About

This class provides some simple PHP helper functions for implementing Zendesk within your website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages